drm/i915: more virtual south bridge detection
Subsystems (2)
PATCH 1/1 drm/i915: more virtual south bridge detection
Commit "30c964a drm/i915: Detect virtual south bridge" detects and handles the southbridge emulated by vmware esx. Add the ich9 south bridge emulated by 'qemu -M q35'.
Signed-off-by Gerd Hoffmann <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.c | 3 ++- drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.c +2 -1
@@ -531,7 +531,8 @@ void intel_detect_pch(struct drm_device *dev) dev_priv->pch_type =PCH_SPT ;DRM_DEBUG_KMS ("Found SunrisePoint LP PCH\n" );WARN_ON (!IS_SKYLAKE (dev)); - }else if (id ==INTEL_PCH_P2X_DEVICE_ID_TYPE ) { + }else if ((id ==INTEL_PCH_P2X_DEVICE_ID_TYPE ) || + (id ==INTEL_PCH_QEMU_DEVICE_ID_TYPE )) { dev_priv->pch_type =intel_virt_detect_pch (dev); }else continue ;
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -2604,6 +2604,7 @@ struct drm_i915_cmd_table {#define INTEL_PCH_SPT_DEVICE_ID_TYPE 0xA100#define INTEL_PCH_SPT_LP_DEVICE_ID_TYPE 0x9D00#define INTEL_PCH_P2X_DEVICE_ID_TYPE 0x7100 +#define INTEL_PCH_QEMU_DEVICE_ID_TYPE 0x2900/* qemu q35 has 2918 */ #define INTEL_PCH_TYPE (dev) (__I915__(dev)->pch_type)#define HAS_PCH_SPT (dev) (INTEL_PCH_TYPE(dev) == PCH_SPT)
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 5 lines · Gerd Hoffmann
Commit "30c964a drm/i915: Detect virtual south bridge" detects and handles the southbridge emulated by vmware esx. Add the ich9 south bridge emulated by 'qemu -M q35'.
Signed-off-by Gerd Hoffmann <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 38 lines
--- drivers/gpu/drm/i915/i915_drv.c | 3 ++- drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_drv.c +2
-1@@ -531,7 +531,8 @@ void intel_detect_pch(struct drm_device *dev) dev_priv->pch_type =PCH_SPT ;DRM_DEBUG_KMS ("Found SunrisePoint LP PCH\n" );WARN_ON (!IS_SKYLAKE (dev)); - }else if (id ==INTEL_PCH_P2X_DEVICE_ID_TYPE ) { + }else if ((id ==INTEL_PCH_P2X_DEVICE_ID_TYPE ) || + (id ==INTEL_PCH_QEMU_DEVICE_ID_TYPE )) { dev_priv->pch_type =intel_virt_detect_pch (dev); }else continue ;drivers/gpu/drm/i915/i915_drv.h +1
-0@@ -2604,6 +2604,7 @@ struct drm_i915_cmd_table {#define INTEL_PCH_SPT_DEVICE_ID_TYPE 0xA100#define INTEL_PCH_SPT_LP_DEVICE_ID_TYPE 0x9D00#define INTEL_PCH_P2X_DEVICE_ID_TYPE 0x7100 +#define INTEL_PCH_QEMU_DEVICE_ID_TYPE 0x2900/* qemu q35 has 2918 */ #define INTEL_PCH_TYPE (dev) (__I915__(dev)->pch_type)#define HAS_PCH_SPT (dev) (INTEL_PCH_TYPE(dev) == PCH_SPT)Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel