]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: to make vgpu ppgtt notificaiton as atomic operation
authorXiaolin Zhang <xiaolin.zhang@intel.com>
Fri, 23 Aug 2019 06:57:31 +0000 (14:57 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Aug 2019 11:12:34 +0000 (12:12 +0100)
commitbbe8c7ebb1cc6eb9a10a9d7a1f2f7913031746bf
tree4d50787dc149dae8b67a90835e7ce1d6cb391a11
parentb251a96b11fbc544ea18bf0da63cf662c0ddd5e5
drm/i915: to make vgpu ppgtt notificaiton as atomic operation

vgpu ppgtt notification was split into 2 steps, the first step is to
update PVINFO's pdp register and then write PVINFO's g2v_notify register
with action code to tirgger ppgtt notification to GVT side.

currently these steps were not atomic operations due to no any protection,
so it is easy to enter race condition state during the MTBF, stress and
IGT test to cause GPU hang.

the solution is to add a lock to make vgpu ppgtt notication as atomic
operation.

Cc: stable@vger.kernel.org
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/1566543451-13955-1-git-send-email-xiaolin.zhang@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_vgpu.c