Skip to content

Commit 74b2c72

Browse files
kraxelgregkh
authored andcommitted
drm/i915: refine qemu south bridge detection
commit f2e305108faba0c85eb4ba4066599decb675117e upstream. The test for the qemu q35 south bridge added by commit "39bfcd52 drm/i915: more virtual south bridge detection" also matches on real hardware. Having the check for virtual systems last in the list is not enough to avoid that ... Refine the check by additionally verifying the pci subsystem id to see whenever it *really* is qemu. [ v2: fix subvendor tyops ] Reported-and-tested-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Bruno Wolff III <bruno@wolff.to> Cc: drm-intel-fixes@lists.freedesktop.org Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1453719748-10944-1-git-send-email-kraxel@redhat.com (cherry picked from commit 1e859111c128265f8d62b39ff322e42b1ddb5a20) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bdfa7f6 commit 74b2c72

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/i915/i915_drv.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ void intel_detect_pch(struct drm_device *dev)
532532
DRM_DEBUG_KMS("Found SunrisePoint LP PCH\n");
533533
WARN_ON(!IS_SKYLAKE(dev));
534534
} else if ((id == INTEL_PCH_P2X_DEVICE_ID_TYPE) ||
535-
(id == INTEL_PCH_QEMU_DEVICE_ID_TYPE)) {
535+
((id == INTEL_PCH_QEMU_DEVICE_ID_TYPE) &&
536+
pch->subsystem_vendor == 0x1af4 &&
537+
pch->subsystem_device == 0x1100)) {
536538
dev_priv->pch_type = intel_virt_detect_pch(dev);
537539
} else
538540
continue;

0 commit comments

Comments
 (0)