drm/i915/gvt: Fix vfio_edid issue for BXT/APL
authorColin Xu <colin.xu@intel.com>
Tue, 1 Dec 2020 06:03:29 +0000 (14:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 6 Jan 2021 03:19:15 +0000 (11:19 +0800)
commit4ceb06e7c336f4a8d3f3b6ac9a4fea2e9c97dc07
tree92a93a782fdec244180409b49c90f1151659c80d
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
drm/i915/gvt: Fix vfio_edid issue for BXT/APL

BXT/APL has different isr/irr/hpd regs compared with other GEN9. If not
setting these regs bits correctly according to the emulated monitor
(currently a DP on PORT_B), although gvt still triggers a virtual HPD
event, the guest driver won't detect a valid HPD pulse thus no full
display detection will be executed to read the updated EDID.

With this patch, the vfio_edid is enabled again on BXT/APL, which is
previously disabled.

Fixes: 642403e3599e ("drm/i915/gvt: Temporarily disable vfio_edid for BXT/APL")
Signed-off-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201201060329.142375-1-colin.xu@intel.com
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/vgpu.c