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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2020 06:02:54 +0000 (08:02 +0200)
commitecd72c95c2786d4eb73786922964ec0b707f1c3e
tree014cb37e42d801c42a86cc8268f404cbd38d5143
parent115b0aed8b749e9435210d5b1d23ac16fa6658ef
drm/i915/gvt: Fix port number for BDW on EDID region setup

commit 28284943ac94014767ecc2f7b3c5747c4a5617a0 upstream.

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: 0178f4ce3c3b ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gvt/vgpu.c