[Intel-gfx] [PATCH] drm/i915: Add support for mobile Haswell SDVs.

Robert Hooker sarvatt at ubuntu.com
Tue Jul 24 02:11:46 CEST 2012


From: Robert Hooker <robert.hooker at canonical.com>

Mobile variants have a different pci id. Add it, and mark the previous
pci id as a desktop variant.

Signed-off-by: Robert Hooker <robert.hooker at canonical.com>
---
 drivers/char/agp/intel-agp.h    |    3 ++-
 drivers/char/agp/intel-gtt.c    |    4 +++-
 drivers/gpu/drm/i915/i915_drv.c |    1 +
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/char/agp/intel-agp.h b/drivers/char/agp/intel-agp.h
index 8e2d914..1fcd728 100644
--- a/drivers/char/agp/intel-agp.h
+++ b/drivers/char/agp/intel-agp.h
@@ -248,7 +248,8 @@
 #define PCI_DEVICE_ID_INTEL_HASWELL_S_HB			0x0408 /* Server */
 #define PCI_DEVICE_ID_INTEL_HASWELL_S_GT1_IG		0x040a
 #define PCI_DEVICE_ID_INTEL_HASWELL_S_GT2_IG		0x041a
-#define PCI_DEVICE_ID_INTEL_HASWELL_SDV		0x0c16 /* SDV */
+#define PCI_DEVICE_ID_INTEL_HASWELL_D_SDV		0x0c16 /* Desktop SDV */
+#define PCI_DEVICE_ID_INTEL_HASWELL_M_SDV		0x0c26 /* Mobile SDV */
 #define PCI_DEVICE_ID_INTEL_HASWELL_E_HB			0x0c04
 
 int intel_gmch_probe(struct pci_dev *pdev,
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index 1237e75..1f756dc 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -1501,7 +1501,9 @@ static const struct intel_gtt_driver_description {
 	    "Haswell", &sandybridge_gtt_driver },
 	{ PCI_DEVICE_ID_INTEL_HASWELL_S_GT2_IG,
 	    "Haswell", &sandybridge_gtt_driver },
-	{ PCI_DEVICE_ID_INTEL_HASWELL_SDV,
+	{ PCI_DEVICE_ID_INTEL_HASWELL_D_SDV,
+	    "Haswell", &sandybridge_gtt_driver },
+	{ PCI_DEVICE_ID_INTEL_HASWELL_M_SDV,
 	    "Haswell", &sandybridge_gtt_driver },
 	{ 0, NULL, NULL }
 };
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 9fe9ebe..f4fe01c 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -358,6 +358,7 @@ static const struct pci_device_id pciidlist[] = {		/* aka */
 	INTEL_VGA_DEVICE(0x0406, &intel_haswell_m_info), /* GT1 mobile */
 	INTEL_VGA_DEVICE(0x0416, &intel_haswell_m_info), /* GT2 mobile */
 	INTEL_VGA_DEVICE(0x0c16, &intel_haswell_d_info), /* SDV */
+	INTEL_VGA_DEVICE(0x0c26, &intel_haswell_m_info), /* Mobile SDV */
 	{0, 0, 0}
 };
 
-- 
1.7.9.5




More information about the Intel-gfx mailing list