aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/agp')
-rw-r--r--drivers/char/agp/intel-agp.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index 9a551bc34c39..918e484f41b7 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -66,6 +66,8 @@
66#define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG 0x0046 66#define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG 0x0046
67#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB 0x0100 67#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB 0x0100
68#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG 0x0102 68#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG 0x0102
69#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB 0x0104
70#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_IG 0x0106
69 71
70/* cover 915 and 945 variants */ 72/* cover 915 and 945 variants */
71#define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \ 73#define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \
@@ -101,7 +103,8 @@
101 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || \ 103 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || \
102 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB || \ 104 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB || \
103 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB || \ 105 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB || \
104 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB) 106 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB || \
107 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB)
105 108
106extern int agp_memory_reserved; 109extern int agp_memory_reserved;
107 110
@@ -317,7 +320,9 @@ static void intel_agp_insert_sg_entries(struct agp_memory *mem,
317 int i, j; 320 int i, j;
318 u32 cache_bits = 0; 321 u32 cache_bits = 0;
319 322
320 if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB) { 323 if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB ||
324 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB)
325 {
321 cache_bits = I830_PTE_SYSTEM_CACHED; 326 cache_bits = I830_PTE_SYSTEM_CACHED;
322 } 327 }
323 328
@@ -732,8 +737,8 @@ static void intel_i830_init_gtt_entries(void)
732 gtt_entries = 0; 737 gtt_entries = 0;
733 break; 738 break;
734 } 739 }
735 } else if (agp_bridge->dev->device == 740 } else if (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB ||
736 PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB) { 741 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB) {
737 /* 742 /*
738 * SandyBridge has new memory control reg at 0x50.w 743 * SandyBridge has new memory control reg at 0x50.w
739 */ 744 */
@@ -1449,6 +1454,7 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size)
1449 case PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB: 1454 case PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB:
1450 case PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB: 1455 case PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB:
1451 case PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB: 1456 case PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB:
1457 case PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB:
1452 *gtt_offset = *gtt_size = MB(2); 1458 *gtt_offset = *gtt_size = MB(2);
1453 break; 1459 break;
1454 default: 1460 default:
@@ -2456,6 +2462,8 @@ static const struct intel_driver_description {
2456 "HD Graphics", NULL, &intel_i965_driver }, 2462 "HD Graphics", NULL, &intel_i965_driver },
2457 { PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB, PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG, 0, 2463 { PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB, PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG, 0,
2458 "Sandybridge", NULL, &intel_i965_driver }, 2464 "Sandybridge", NULL, &intel_i965_driver },
2465 { PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB, PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_IG, 0,
2466 "Sandybridge", NULL, &intel_i965_driver },
2459 { 0, 0, 0, NULL, NULL, NULL } 2467 { 0, 0, 0, NULL, NULL, NULL }
2460}; 2468};
2461 2469
@@ -2663,6 +2671,7 @@ static struct pci_device_id agp_intel_pci_table[] = {
2663 ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB), 2671 ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB),
2664 ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB), 2672 ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB),
2665 ID(PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB), 2673 ID(PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB),
2674 ID(PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB),
2666 { } 2675 { }
2667}; 2676};
2668 2677