From: Robert Hooker <sarvatt@ubuntu.com>
To: intel-gfx@lists.freedesktop.org
Cc: Robert Hooker <robert.hooker@canonical.com>
Subject: [PATCH] drm/i915: Add support for mobile Haswell SDVs.
Date: Mon, 23 Jul 2012 20:11:46 -0400 [thread overview]
Message-ID: <1343088706-15830-1-git-send-email-sarvatt@ubuntu.com> (raw)
From: Robert Hooker <robert.hooker@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@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
next reply other threads:[~2012-07-24 0:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-24 0:11 Robert Hooker [this message]
2012-07-24 4:46 ` [PATCH] drm/i915: Add support for mobile Haswell SDVs Robert Hooker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1343088706-15830-1-git-send-email-sarvatt@ubuntu.com \
--to=sarvatt@ubuntu.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=robert.hooker@canonical.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.