aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorJoonas Lahtinen <[email protected]>2017-10-23 15:32:09 +0000
committerJoonas Lahtinen <[email protected]>2017-10-25 14:24:59 +0000
commit22a8a4fc93b14b5a8cfc785edbdc6f7bd98bffb6 (patch)
tree3174ddf38a0a8c19c9ecffae9451463f9512f2e2 /drivers/gpu/drm/i915/intel_ringbuffer.c
parentRevert "drm/i915/selftests: Convert timers to use timer_setup()" (diff)
downloadkernel-22a8a4fc93b14b5a8cfc785edbdc6f7bd98bffb6.tar.gz
kernel-22a8a4fc93b14b5a8cfc785edbdc6f7bd98bffb6.zip
drm/i915: Disable lazy PPGTT page table optimization for vGPU
When running under virtualization (vGPU active), we must disable the lazy PPGTT page table initialization optimization introduced by commit 14826673247e ("drm/i915: Only initialize partially filled pagetables"). We must do this because GVT-g makes unduly assumptions about guest behaviour, which this optimization breaks. This results in following looking errors in the host: ERROR gvt: guest page write error -22, gfn 0x7ada8, pa 0x7ada89a8, var 0x6, len 1 The real fix is to not to depend on i915 driver behaviour, but instead either rely on only the contracts that i915 has with the hardware, or add some paravirtualization. While the real fix is en route, it won't be finished in time for 4.15, so the best option is to disable the optimization for now when vGPU is active to avoid breaking 4.15 guests in existing VM environments. Fixes: 14826673247e ("drm/i915: Only initialize partially filled pagetables") Suggested-by: Xiaolin Zhang <[email protected]> Signed-off-by: Xiaolin Zhang <[email protected]> [Joonas: Rewrote the commit message and added tags.] Signed-off-by: Joonas Lahtinen <[email protected]> Cc: Zhenyu Wang <[email protected]> Cc: Zhi Wang <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Matthew Auld <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Rodrigo Vivi <[email protected]> Acked-by: Chris Wilson <[email protected]> Acked-by: Zhenyu Wang <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
0 files changed, 0 insertions, 0 deletions