From patchwork Wed May 29 09:06:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenyu Wang X-Patchwork-Id: 10966533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F5DD15E6 for ; Wed, 29 May 2019 09:07:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80354288BF for ; Wed, 29 May 2019 09:07:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 747DA288CF; Wed, 29 May 2019 09:07:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B84B288BF for ; Wed, 29 May 2019 09:07:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 653EB6E095; Wed, 29 May 2019 09:07:30 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C0476E03C; Wed, 29 May 2019 09:07:29 +0000 (UTC) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2019 02:07:28 -0700 X-ExtLoop1: 1 Received: from zhen-hp.sh.intel.com (HELO zhen-hp) ([10.239.13.116]) by orsmga006.jf.intel.com with ESMTP; 29 May 2019 02:07:26 -0700 Date: Wed, 29 May 2019 17:06:08 +0800 From: Zhenyu Wang To: Joonas Lahtinen , "Vivi, Rodrigo" , Jani Nikula Message-ID: <20190529090608.GB3211@zhen-hp.sh.intel.com> MIME-Version: 1.0 User-Agent: Mutt/1.10.0 (2018-05-17) Subject: [Intel-gfx] [PULL] gvt-fixes X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Zhenyu Wang Cc: intel-gfx , intel-gvt-dev , "Lv, Zhiyuan" , "Yuan, Hang" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Hi, Here's more gvt fixes for 5.2. This includes fixes for recently seen arbitrary DMA map fault with sane gtt entry initialization, and several enforcement fixes for e.g ggtt range validation, some mode register handler and one cmd length fix for parser. Thanks --- The following changes since commit 591c39ffac4ab1ddf2ea6d49331cb614e0682b28: drm/i915/gvt: Fix an error code in ppgtt_populate_spt_by_guest_entry() (2019-05-21 10:58:16 +0800) are available in the Git repository at: https://github.com/intel/gvt-linux tags/gvt-fixes-2019-05-29 for you to fetch changes up to 66b5cfa043e44eb15bcfd6488db7664ce7b3ac80: drm/i915/gvt: Fix cmd length of VEB_DI_IECP (2019-05-28 17:53:45 +0800) ---------------------------------------------------------------- gvt-fixes-2019-05-29 - Fix gtt entry update with sane initialization (Tina) - Fix missed RING_HEAD/RING_TAIL update for vgpu state (Xiaolin) - Fix force-to-nonpriv warning from recent guest (Colin) - Fix GFX_MODE and CSFE_CHICKEN1_REG handler for host only control (Colin) - GGTT range validation enforced (Xiong) - Fix cmd length for VEB_DI_IECP (Fred) ---------------------------------------------------------------- Colin Xu (3): drm/i915/gvt: Update force-to-nonpriv register whitelist drm/i915/gvt: Fix GFX_MODE handling drm/i915/gvt: Fix vGPU CSFE_CHICKEN1_REG mmio handler Gao, Fred (1): drm/i915/gvt: Fix cmd length of VEB_DI_IECP Tina Zhang (1): drm/i915/gvt: Initialize intel_gvt_gtt_entry in stack Xiaolin Zhang (1): drm/i915/gvt: save RING_HEAD into vreg when vgpu switched out Xiong Zhang (1): drm/i915/gvt: refine ggtt range validation drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 +- drivers/gpu/drm/i915/gvt/gtt.c | 26 ++++++++++++++++--------- drivers/gpu/drm/i915/gvt/handlers.c | 36 ++++++++++++++++++++++++++++++++++- drivers/gpu/drm/i915/gvt/scheduler.c | 4 ++++ 4 files changed, 57 insertions(+), 11 deletions(-)