]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Adding ACTHD mmio read handler
authorXiong Zhang <xiong.y.zhang@intel.com>
Fri, 13 Oct 2017 22:34:47 +0000 (06:34 +0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 26 Oct 2017 18:29:44 +0000 (11:29 -0700)
commit03eb41bbe28a6fe1d111ffc40fe502ace7066b52
tree2b43211770d496499b0a122ab278164cb5e65bef
parent46e394ad307e52e51d39df0e4914bd27c0191bb1
drm/i915/gvt: Adding ACTHD mmio read handler

When a workload is too heavy to finish it in gpu hang check timer
intervals(1.5), gpu hang check function will check ACTHD register
value to decide whether gpu is real dead or not. On real hw,
ACTHD is updated by HW when workload is running, then host kernel
won't think it is gpu hang. while guest kernel always read a constant
ACTHD value as GVT doesn't supply ACTHD emulate handler, then
guest kernel detects a fake gpu hang.

To remove such guest fake gpu hang, this patch supply ACTHD
mmio read handler which read real HW ACTHD register directly.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b4c9a097-3e62-124e-6856-b0c37764df7b@intel.com
drivers/gpu/drm/i915/gvt/handlers.c