]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Fix port number for BDW on EDID region setup
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Sep 2020 03:03:02 +0000 (11:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Sep 2020 08:44:39 +0000 (16:44 +0800)
commit7f357b01928edd81d2e94a4825f2c4967facf0b8
tree8dd0c09e5c10648c3fb059ad9e53c0abf8d35c96
parent5f8d50dbc5f1c7fa4ab43a5beb80371b906f91b3
drm/i915/gvt: Fix port number for BDW on EDID region setup

Current BDW virtual display port is initialized as PORT_B, so need
to use same port for VFIO EDID region, otherwise invalid EDID blob
pointer is assigned which caused kernel null pointer reference. We
might evaluate actual display hotplug for BDW to make this function
work as expected, anyway this is always required to be fixed first.

Reported-by: Alejandro Sior <aho@sior.be>
Cc: Alejandro Sior <aho@sior.be>
Fixes: 77af159e5ce7 ("drm/i915/gvt: Enable vfio edid for all GVT supported platform")
Reviewed-by: Hang Yuan <hang.yuan@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200914030302.2775505-1-zhenyuw@linux.intel.com
drivers/gpu/drm/i915/gvt/vgpu.c