]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915/gvt: Fix vfio_edid issue for BXT/APL
authorColin Xu <colin.xu@intel.com>
Wed, 17 Mar 2021 02:55:04 +0000 (10:55 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 23 Apr 2021 09:48:28 +0000 (11:48 +0200)
commit3196d43d7a2fe03d90463042375f062da3f0506b
tree426748f28a437a2268ce50b0eb80842867b3683c
parent38ad1c5feded4b1a402d5c87ca36e1edd779ba64
drm/i915/gvt: Fix vfio_edid issue for BXT/APL

BugLink: https://bugs.launchpad.net/bugs/1923210
commit 4ceb06e7c336f4a8d3f3b6ac9a4fea2e9c97dc07 upstream

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>
(cherry picked from commit 4ceb06e7c336f4a8d3f3b6ac9a4fea2e9c97dc07)
Signed-off-by: Colin Xu <colin.xu@intel.com>
Cc: <stable@vger.kernel.org> # 5.4.y
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/vgpu.c