drm/i915/gvt: addressed guest GPU hang with HWS index mode
authorXiaolin Zhang <xiaolin.zhang@intel.com>
Wed, 3 Apr 2019 08:28:04 +0000 (16:28 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 16 Apr 2019 08:52:13 +0000 (16:52 +0800)
commitac071578286ee9abd0243480631510d9f818144d
treef4a2033b041b25aab14dc6eb63d6c9bedb2a1261
parent95d002e0a34cb0f238abb39987f9980f325d8332
drm/i915/gvt: addressed guest GPU hang with HWS index mode

with the introduce of "switch to use HWS indices rather than address",
guest GPU hang observed when running workloads which will update the
seqno to the real HW HWSP, not vitural GPU HWSP and then cause GPU hang.

this patch is to revoke index mode in PIPE_CTRL and MI_FLUSH_DW and
patch guest GPU HWSP address value to these commands.

Fixes: 54939ea0bd85 ("drm/i915: Switch to use HWS indices rather than addresses")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c