diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-07 23:03:47 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-07 23:03:47 -0500 |
commit | 3ff99164f67aae78a2bd2313f65ad55bddb1ffea (patch) | |
tree | d6bba03616d1be6ab9e6d9e92641a6f4047e1e15 /drivers/char | |
parent | 1bd049fa895f9c6743f38b52ce14775f5a31ea63 (diff) | |
parent | f2b115e69d46344ae7afcaad5823496d2a0d8650 (diff) |
Merge remote branch 'anholt/drm-intel-next' into drm-linus
This merges the upstream Intel tree and fixes up numerous conflicts
due to patches merged into Linus tree later in -rc cycle.
Conflicts:
drivers/char/agp/intel-agp.c
drivers/gpu/drm/drm_dp_i2c_helper.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_suspend.c
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 3cb56a049e24..37678550b3eb 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -36,10 +36,10 @@ | |||
36 | #define PCI_DEVICE_ID_INTEL_82965GME_IG 0x2A12 | 36 | #define PCI_DEVICE_ID_INTEL_82965GME_IG 0x2A12 |
37 | #define PCI_DEVICE_ID_INTEL_82945GME_HB 0x27AC | 37 | #define PCI_DEVICE_ID_INTEL_82945GME_HB 0x27AC |
38 | #define PCI_DEVICE_ID_INTEL_82945GME_IG 0x27AE | 38 | #define PCI_DEVICE_ID_INTEL_82945GME_IG 0x27AE |
39 | #define PCI_DEVICE_ID_INTEL_IGDGM_HB 0xA010 | 39 | #define PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB 0xA010 |
40 | #define PCI_DEVICE_ID_INTEL_IGDGM_IG 0xA011 | 40 | #define PCI_DEVICE_ID_INTEL_PINEVIEW_M_IG 0xA011 |
41 | #define PCI_DEVICE_ID_INTEL_IGDG_HB 0xA000 | 41 | #define PCI_DEVICE_ID_INTEL_PINEVIEW_HB 0xA000 |
42 | #define PCI_DEVICE_ID_INTEL_IGDG_IG 0xA001 | 42 | #define PCI_DEVICE_ID_INTEL_PINEVIEW_IG 0xA001 |
43 | #define PCI_DEVICE_ID_INTEL_G33_HB 0x29C0 | 43 | #define PCI_DEVICE_ID_INTEL_G33_HB 0x29C0 |
44 | #define PCI_DEVICE_ID_INTEL_G33_IG 0x29C2 | 44 | #define PCI_DEVICE_ID_INTEL_G33_IG 0x29C2 |
45 | #define PCI_DEVICE_ID_INTEL_Q35_HB 0x29B0 | 45 | #define PCI_DEVICE_ID_INTEL_Q35_HB 0x29B0 |
@@ -50,20 +50,20 @@ | |||
50 | #define PCI_DEVICE_ID_INTEL_B43_IG 0x2E42 | 50 | #define PCI_DEVICE_ID_INTEL_B43_IG 0x2E42 |
51 | #define PCI_DEVICE_ID_INTEL_GM45_HB 0x2A40 | 51 | #define PCI_DEVICE_ID_INTEL_GM45_HB 0x2A40 |
52 | #define PCI_DEVICE_ID_INTEL_GM45_IG 0x2A42 | 52 | #define PCI_DEVICE_ID_INTEL_GM45_IG 0x2A42 |
53 | #define PCI_DEVICE_ID_INTEL_IGD_E_HB 0x2E00 | 53 | #define PCI_DEVICE_ID_INTEL_EAGLELAKE_HB 0x2E00 |
54 | #define PCI_DEVICE_ID_INTEL_IGD_E_IG 0x2E02 | 54 | #define PCI_DEVICE_ID_INTEL_EAGLELAKE_IG 0x2E02 |
55 | #define PCI_DEVICE_ID_INTEL_Q45_HB 0x2E10 | 55 | #define PCI_DEVICE_ID_INTEL_Q45_HB 0x2E10 |
56 | #define PCI_DEVICE_ID_INTEL_Q45_IG 0x2E12 | 56 | #define PCI_DEVICE_ID_INTEL_Q45_IG 0x2E12 |
57 | #define PCI_DEVICE_ID_INTEL_G45_HB 0x2E20 | 57 | #define PCI_DEVICE_ID_INTEL_G45_HB 0x2E20 |
58 | #define PCI_DEVICE_ID_INTEL_G45_IG 0x2E22 | 58 | #define PCI_DEVICE_ID_INTEL_G45_IG 0x2E22 |
59 | #define PCI_DEVICE_ID_INTEL_G41_HB 0x2E30 | 59 | #define PCI_DEVICE_ID_INTEL_G41_HB 0x2E30 |
60 | #define PCI_DEVICE_ID_INTEL_G41_IG 0x2E32 | 60 | #define PCI_DEVICE_ID_INTEL_G41_IG 0x2E32 |
61 | #define PCI_DEVICE_ID_INTEL_IGDNG_D_HB 0x0040 | 61 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB 0x0040 |
62 | #define PCI_DEVICE_ID_INTEL_IGDNG_D_IG 0x0042 | 62 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_D_IG 0x0042 |
63 | #define PCI_DEVICE_ID_INTEL_IGDNG_M_HB 0x0044 | 63 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB 0x0044 |
64 | #define PCI_DEVICE_ID_INTEL_IGDNG_MA_HB 0x0062 | 64 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB 0x0062 |
65 | #define PCI_DEVICE_ID_INTEL_IGDNG_MC2_HB 0x006a | 65 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB 0x006a |
66 | #define PCI_DEVICE_ID_INTEL_IGDNG_M_IG 0x0046 | 66 | #define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG 0x0046 |
67 | 67 | ||
68 | /* cover 915 and 945 variants */ | 68 | /* cover 915 and 945 variants */ |
69 | #define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \ | 69 | #define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \ |
@@ -83,22 +83,22 @@ | |||
83 | #define IS_G33 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G33_HB || \ | 83 | #define IS_G33 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G33_HB || \ |
84 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q35_HB || \ | 84 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q35_HB || \ |
85 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q33_HB || \ | 85 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q33_HB || \ |
86 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDGM_HB || \ | 86 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \ |
87 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDG_HB) | 87 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_HB) |
88 | 88 | ||
89 | #define IS_IGD (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDGM_HB || \ | 89 | #define IS_PINEVIEW (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \ |
90 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDG_HB) | 90 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_HB) |
91 | 91 | ||
92 | #define IS_G4X (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGD_E_HB || \ | 92 | #define IS_G4X (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_EAGLELAKE_HB || \ |
93 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q45_HB || \ | 93 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q45_HB || \ |
94 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G45_HB || \ | 94 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G45_HB || \ |
95 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_GM45_HB || \ | 95 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_GM45_HB || \ |
96 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G41_HB || \ | 96 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G41_HB || \ |
97 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_B43_HB || \ | 97 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_B43_HB || \ |
98 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDNG_D_HB || \ | 98 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB || \ |
99 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDNG_M_HB || \ | 99 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || \ |
100 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDNG_MA_HB || \ | 100 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB || \ |
101 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDNG_MC2_HB) | 101 | agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB) |
102 | 102 | ||
103 | extern int agp_memory_reserved; | 103 | extern int agp_memory_reserved; |
104 | 104 | ||
@@ -653,7 +653,7 @@ static void intel_i830_init_gtt_entries(void) | |||
653 | size = 512; | 653 | size = 512; |
654 | } | 654 | } |
655 | size += 4; /* add in BIOS popup space */ | 655 | size += 4; /* add in BIOS popup space */ |
656 | } else if (IS_G33 && !IS_IGD) { | 656 | } else if (IS_G33 && !IS_PINEVIEW) { |
657 | /* G33's GTT size defined in gmch_ctrl */ | 657 | /* G33's GTT size defined in gmch_ctrl */ |
658 | switch (gmch_ctrl & G33_PGETBL_SIZE_MASK) { | 658 | switch (gmch_ctrl & G33_PGETBL_SIZE_MASK) { |
659 | case G33_PGETBL_SIZE_1M: | 659 | case G33_PGETBL_SIZE_1M: |
@@ -669,7 +669,7 @@ static void intel_i830_init_gtt_entries(void) | |||
669 | size = 512; | 669 | size = 512; |
670 | } | 670 | } |
671 | size += 4; | 671 | size += 4; |
672 | } else if (IS_G4X || IS_IGD) { | 672 | } else if (IS_G4X || IS_PINEVIEW) { |
673 | /* On 4 series hardware, GTT stolen is separate from graphics | 673 | /* On 4 series hardware, GTT stolen is separate from graphics |
674 | * stolen, ignore it in stolen gtt entries counting. However, | 674 | * stolen, ignore it in stolen gtt entries counting. However, |
675 | * 4KB of the stolen memory doesn't get mapped to the GTT. | 675 | * 4KB of the stolen memory doesn't get mapped to the GTT. |
@@ -1352,15 +1352,15 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size) | |||
1352 | { | 1352 | { |
1353 | switch (agp_bridge->dev->device) { | 1353 | switch (agp_bridge->dev->device) { |
1354 | case PCI_DEVICE_ID_INTEL_GM45_HB: | 1354 | case PCI_DEVICE_ID_INTEL_GM45_HB: |
1355 | case PCI_DEVICE_ID_INTEL_IGD_E_HB: | 1355 | case PCI_DEVICE_ID_INTEL_EAGLELAKE_HB: |
1356 | case PCI_DEVICE_ID_INTEL_Q45_HB: | 1356 | case PCI_DEVICE_ID_INTEL_Q45_HB: |
1357 | case PCI_DEVICE_ID_INTEL_G45_HB: | 1357 | case PCI_DEVICE_ID_INTEL_G45_HB: |
1358 | case PCI_DEVICE_ID_INTEL_G41_HB: | 1358 | case PCI_DEVICE_ID_INTEL_G41_HB: |
1359 | case PCI_DEVICE_ID_INTEL_B43_HB: | 1359 | case PCI_DEVICE_ID_INTEL_B43_HB: |
1360 | case PCI_DEVICE_ID_INTEL_IGDNG_D_HB: | 1360 | case PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB: |
1361 | case PCI_DEVICE_ID_INTEL_IGDNG_M_HB: | 1361 | case PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB: |
1362 | case PCI_DEVICE_ID_INTEL_IGDNG_MA_HB: | 1362 | case PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB: |
1363 | case PCI_DEVICE_ID_INTEL_IGDNG_MC2_HB: | 1363 | case PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB: |
1364 | *gtt_offset = *gtt_size = MB(2); | 1364 | *gtt_offset = *gtt_size = MB(2); |
1365 | break; | 1365 | break; |
1366 | default: | 1366 | default: |
@@ -2340,14 +2340,14 @@ static const struct intel_driver_description { | |||
2340 | NULL, &intel_g33_driver }, | 2340 | NULL, &intel_g33_driver }, |
2341 | { PCI_DEVICE_ID_INTEL_Q33_HB, PCI_DEVICE_ID_INTEL_Q33_IG, 0, "Q33", | 2341 | { PCI_DEVICE_ID_INTEL_Q33_HB, PCI_DEVICE_ID_INTEL_Q33_IG, 0, "Q33", |
2342 | NULL, &intel_g33_driver }, | 2342 | NULL, &intel_g33_driver }, |
2343 | { PCI_DEVICE_ID_INTEL_IGDGM_HB, PCI_DEVICE_ID_INTEL_IGDGM_IG, 0, "IGD", | 2343 | { PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB, PCI_DEVICE_ID_INTEL_PINEVIEW_M_IG, 0, "Pineview", |
2344 | NULL, &intel_g33_driver }, | 2344 | NULL, &intel_g33_driver }, |
2345 | { PCI_DEVICE_ID_INTEL_IGDG_HB, PCI_DEVICE_ID_INTEL_IGDG_IG, 0, "IGD", | 2345 | { PCI_DEVICE_ID_INTEL_PINEVIEW_HB, PCI_DEVICE_ID_INTEL_PINEVIEW_IG, 0, "Pineview", |
2346 | NULL, &intel_g33_driver }, | 2346 | NULL, &intel_g33_driver }, |
2347 | { PCI_DEVICE_ID_INTEL_GM45_HB, PCI_DEVICE_ID_INTEL_GM45_IG, 0, | 2347 | { PCI_DEVICE_ID_INTEL_GM45_HB, PCI_DEVICE_ID_INTEL_GM45_IG, 0, |
2348 | "Mobile IntelĀ® GM45 Express", NULL, &intel_i965_driver }, | 2348 | "GM45", NULL, &intel_i965_driver }, |
2349 | { PCI_DEVICE_ID_INTEL_IGD_E_HB, PCI_DEVICE_ID_INTEL_IGD_E_IG, 0, | 2349 | { PCI_DEVICE_ID_INTEL_EAGLELAKE_HB, PCI_DEVICE_ID_INTEL_EAGLELAKE_IG, 0, |
2350 | "Intel Integrated Graphics Device", NULL, &intel_i965_driver }, | 2350 | "Eaglelake", NULL, &intel_i965_driver }, |
2351 | { PCI_DEVICE_ID_INTEL_Q45_HB, PCI_DEVICE_ID_INTEL_Q45_IG, 0, | 2351 | { PCI_DEVICE_ID_INTEL_Q45_HB, PCI_DEVICE_ID_INTEL_Q45_IG, 0, |
2352 | "Q45/Q43", NULL, &intel_i965_driver }, | 2352 | "Q45/Q43", NULL, &intel_i965_driver }, |
2353 | { PCI_DEVICE_ID_INTEL_G45_HB, PCI_DEVICE_ID_INTEL_G45_IG, 0, | 2353 | { PCI_DEVICE_ID_INTEL_G45_HB, PCI_DEVICE_ID_INTEL_G45_IG, 0, |
@@ -2356,14 +2356,14 @@ static const struct intel_driver_description { | |||
2356 | "B43", NULL, &intel_i965_driver }, | 2356 | "B43", NULL, &intel_i965_driver }, |
2357 | { PCI_DEVICE_ID_INTEL_G41_HB, PCI_DEVICE_ID_INTEL_G41_IG, 0, | 2357 | { PCI_DEVICE_ID_INTEL_G41_HB, PCI_DEVICE_ID_INTEL_G41_IG, 0, |
2358 | "G41", NULL, &intel_i965_driver }, | 2358 | "G41", NULL, &intel_i965_driver }, |
2359 | { PCI_DEVICE_ID_INTEL_IGDNG_D_HB, PCI_DEVICE_ID_INTEL_IGDNG_D_IG, 0, | 2359 | { PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB, PCI_DEVICE_ID_INTEL_IRONLAKE_D_IG, 0, |
2360 | "IGDNG/D", NULL, &intel_i965_driver }, | 2360 | "Ironlake/D", NULL, &intel_i965_driver }, |
2361 | { PCI_DEVICE_ID_INTEL_IGDNG_M_HB, PCI_DEVICE_ID_INTEL_IGDNG_M_IG, 0, | 2361 | { PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB, PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG, 0, |
2362 | "IGDNG/M", NULL, &intel_i965_driver }, | 2362 | "Ironlake/M", NULL, &intel_i965_driver }, |
2363 | { PCI_DEVICE_ID_INTEL_IGDNG_MA_HB, PCI_DEVICE_ID_INTEL_IGDNG_M_IG, 0, | 2363 | { PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB, PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG, 0, |
2364 | "IGDNG/MA", NULL, &intel_i965_driver }, | 2364 | "Ironlake/MA", NULL, &intel_i965_driver }, |
2365 | { PCI_DEVICE_ID_INTEL_IGDNG_MC2_HB, PCI_DEVICE_ID_INTEL_IGDNG_M_IG, 0, | 2365 | { PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB, PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG, 0, |
2366 | "IGDNG/MC2", NULL, &intel_i965_driver }, | 2366 | "Ironlake/MC2", NULL, &intel_i965_driver }, |
2367 | { 0, 0, 0, NULL, NULL, NULL } | 2367 | { 0, 0, 0, NULL, NULL, NULL } |
2368 | }; | 2368 | }; |
2369 | 2369 | ||
@@ -2545,8 +2545,8 @@ static struct pci_device_id agp_intel_pci_table[] = { | |||
2545 | ID(PCI_DEVICE_ID_INTEL_82945G_HB), | 2545 | ID(PCI_DEVICE_ID_INTEL_82945G_HB), |
2546 | ID(PCI_DEVICE_ID_INTEL_82945GM_HB), | 2546 | ID(PCI_DEVICE_ID_INTEL_82945GM_HB), |
2547 | ID(PCI_DEVICE_ID_INTEL_82945GME_HB), | 2547 | ID(PCI_DEVICE_ID_INTEL_82945GME_HB), |
2548 | ID(PCI_DEVICE_ID_INTEL_IGDGM_HB), | 2548 | ID(PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB), |
2549 | ID(PCI_DEVICE_ID_INTEL_IGDG_HB), | 2549 | ID(PCI_DEVICE_ID_INTEL_PINEVIEW_HB), |
2550 | ID(PCI_DEVICE_ID_INTEL_82946GZ_HB), | 2550 | ID(PCI_DEVICE_ID_INTEL_82946GZ_HB), |
2551 | ID(PCI_DEVICE_ID_INTEL_82G35_HB), | 2551 | ID(PCI_DEVICE_ID_INTEL_82G35_HB), |
2552 | ID(PCI_DEVICE_ID_INTEL_82965Q_HB), | 2552 | ID(PCI_DEVICE_ID_INTEL_82965Q_HB), |
@@ -2557,15 +2557,15 @@ static struct pci_device_id agp_intel_pci_table[] = { | |||
2557 | ID(PCI_DEVICE_ID_INTEL_Q35_HB), | 2557 | ID(PCI_DEVICE_ID_INTEL_Q35_HB), |
2558 | ID(PCI_DEVICE_ID_INTEL_Q33_HB), | 2558 | ID(PCI_DEVICE_ID_INTEL_Q33_HB), |
2559 | ID(PCI_DEVICE_ID_INTEL_GM45_HB), | 2559 | ID(PCI_DEVICE_ID_INTEL_GM45_HB), |
2560 | ID(PCI_DEVICE_ID_INTEL_IGD_E_HB), | 2560 | ID(PCI_DEVICE_ID_INTEL_EAGLELAKE_HB), |
2561 | ID(PCI_DEVICE_ID_INTEL_Q45_HB), | 2561 | ID(PCI_DEVICE_ID_INTEL_Q45_HB), |
2562 | ID(PCI_DEVICE_ID_INTEL_G45_HB), | 2562 | ID(PCI_DEVICE_ID_INTEL_G45_HB), |
2563 | ID(PCI_DEVICE_ID_INTEL_G41_HB), | 2563 | ID(PCI_DEVICE_ID_INTEL_G41_HB), |
2564 | ID(PCI_DEVICE_ID_INTEL_B43_HB), | 2564 | ID(PCI_DEVICE_ID_INTEL_B43_HB), |
2565 | ID(PCI_DEVICE_ID_INTEL_IGDNG_D_HB), | 2565 | ID(PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB), |
2566 | ID(PCI_DEVICE_ID_INTEL_IGDNG_M_HB), | 2566 | ID(PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB), |
2567 | ID(PCI_DEVICE_ID_INTEL_IGDNG_MA_HB), | 2567 | ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB), |
2568 | ID(PCI_DEVICE_ID_INTEL_IGDNG_MC2_HB), | 2568 | ID(PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB), |
2569 | { } | 2569 | { } |
2570 | }; | 2570 | }; |
2571 | 2571 | ||