]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix vGPU balloon for ggtt guard page
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 10 Mar 2017 02:22:38 +0000 (10:22 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 09:41:27 +0000 (09:41 +0000)
commitb26ee51ae601cd65d6c8240c684f3a80511f4b29
treeb631529de2373ae04c733040f9fd459a9c041dba
parent1d3d412491fe075eaeb54528d2f58a2a666bdd61
drm/i915: Fix vGPU balloon for ggtt guard page

From commit faf764301701 ("drm/i915: Use page coloring to provide the guard
page at the end of the GTT"), we no longer explicitly subtract guard page
at end for GGTT address space init, so shouldn't subtract that for vGPU
balloon too, as that will leave that end page to be available for
vGPU. Change balloon to cover full range too.

This fixes to use recent drm-intel tip kernel for guest OS. Found by GVT-g
cmd parser that guest kernel uses end page as scratch then try to run
MI_STORE_REG_MEM onto it.

v2: remove old comments

Cc: Terrence Xu <terrence.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170310022238.3191-1-zhenyuw@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_vgpu.c