~ubuntu-branches/ubuntu/precise/libdrm/precise-proposed

« back to all changes in this revision

Viewing changes to debian/patches/fix-hsw-gt3-names.diff

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-06-19 10:24:58 UTC
  • Revision ID: package-import@ubuntu.com-20130619102458-mgo60tk6i26cctj0
Tags: 2.4.43-0ubuntu0.0.2
* Added patches to add/fix Haswell pci-id's (LP: #1175533)
  - fix-hsw-crw-ids.diff
  - fix-hsw-gt3-names.diff
  - add-more-reserved-hsw-ids.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 150c3555e7ba53f6ad2d3970cca8e4d5970410aa
 
2
Author: Rodrigo Vivi <rodrigo.vivi@gmail.com>
 
3
Date:   Mon May 13 17:48:39 2013 -0300
 
4
 
 
5
    intel: Fix Haswell GT3 names.
 
6
    
 
7
    When publishing first HSW ids we weren't allowed to use "GT3" codname.
 
8
    But this is the correct codname and Mesa is using it already.
 
9
    So to avoid people getting confused why in Mesa it is called GT3 and here
 
10
    it is called GT2_PLUS let's fix this name in a standard and correct way.
 
11
    
 
12
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
 
13
    Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
 
14
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
 
15
 
 
16
diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
 
17
index 5aea3f2..3350def 100644
 
18
--- a/intel/intel_chipset.h
 
19
+++ b/intel/intel_chipset.h
 
20
@@ -90,40 +90,40 @@
 
21
 
 
22
 #define PCI_CHIP_HASWELL_GT1           0x0402 /* Desktop */
 
23
 #define PCI_CHIP_HASWELL_GT2           0x0412
 
24
-#define PCI_CHIP_HASWELL_GT2_PLUS      0x0422
 
25
+#define PCI_CHIP_HASWELL_GT3           0x0422
 
26
 #define PCI_CHIP_HASWELL_M_GT1         0x0406 /* Mobile */
 
27
 #define PCI_CHIP_HASWELL_M_GT2         0x0416
 
28
-#define PCI_CHIP_HASWELL_M_GT2_PLUS    0x0426
 
29
+#define PCI_CHIP_HASWELL_M_GT3         0x0426
 
30
 #define PCI_CHIP_HASWELL_S_GT1         0x040A /* Server */
 
31
 #define PCI_CHIP_HASWELL_S_GT2         0x041A
 
32
-#define PCI_CHIP_HASWELL_S_GT2_PLUS    0x042A
 
33
+#define PCI_CHIP_HASWELL_S_GT3         0x042A
 
34
 #define PCI_CHIP_HASWELL_SDV_GT1       0x0C02 /* Desktop */
 
35
 #define PCI_CHIP_HASWELL_SDV_GT2       0x0C12
 
36
-#define PCI_CHIP_HASWELL_SDV_GT2_PLUS  0x0C22
 
37
+#define PCI_CHIP_HASWELL_SDV_GT3       0x0C22
 
38
 #define PCI_CHIP_HASWELL_SDV_M_GT1     0x0C06 /* Mobile */
 
39
 #define PCI_CHIP_HASWELL_SDV_M_GT2     0x0C16
 
40
-#define PCI_CHIP_HASWELL_SDV_M_GT2_PLUS        0x0C26
 
41
+#define PCI_CHIP_HASWELL_SDV_M_GT3     0x0C26
 
42
 #define PCI_CHIP_HASWELL_SDV_S_GT1     0x0C0A /* Server */
 
43
 #define PCI_CHIP_HASWELL_SDV_S_GT2     0x0C1A
 
44
-#define PCI_CHIP_HASWELL_SDV_S_GT2_PLUS        0x0C2A
 
45
+#define PCI_CHIP_HASWELL_SDV_S_GT3     0x0C2A
 
46
 #define PCI_CHIP_HASWELL_ULT_GT1       0x0A02 /* Desktop */
 
47
 #define PCI_CHIP_HASWELL_ULT_GT2       0x0A12
 
48
-#define PCI_CHIP_HASWELL_ULT_GT2_PLUS  0x0A22
 
49
+#define PCI_CHIP_HASWELL_ULT_GT3       0x0A22
 
50
 #define PCI_CHIP_HASWELL_ULT_M_GT1     0x0A06 /* Mobile */
 
51
 #define PCI_CHIP_HASWELL_ULT_M_GT2     0x0A16
 
52
-#define PCI_CHIP_HASWELL_ULT_M_GT2_PLUS        0x0A26
 
53
+#define PCI_CHIP_HASWELL_ULT_M_GT3     0x0A26
 
54
 #define PCI_CHIP_HASWELL_ULT_S_GT1     0x0A0A /* Server */
 
55
 #define PCI_CHIP_HASWELL_ULT_S_GT2     0x0A1A
 
56
-#define PCI_CHIP_HASWELL_ULT_S_GT2_PLUS        0x0A2A
 
57
+#define PCI_CHIP_HASWELL_ULT_S_GT3     0x0A2A
 
58
 #define PCI_CHIP_HASWELL_CRW_GT1       0x0D02 /* Desktop */
 
59
 #define PCI_CHIP_HASWELL_CRW_GT2       0x0D12
 
60
-#define PCI_CHIP_HASWELL_CRW_GT2_PLUS  0x0D22
 
61
+#define PCI_CHIP_HASWELL_CRW_GT3       0x0D22
 
62
 #define PCI_CHIP_HASWELL_CRW_M_GT1     0x0D06 /* Mobile */
 
63
 #define PCI_CHIP_HASWELL_CRW_M_GT2     0x0D16
 
64
-#define PCI_CHIP_HASWELL_CRW_M_GT2_PLUS        0x0D26
 
65
+#define PCI_CHIP_HASWELL_CRW_M_GT3     0x0D26
 
66
 #define PCI_CHIP_HASWELL_CRW_S_GT1     0x0D0A /* Server */
 
67
 #define PCI_CHIP_HASWELL_CRW_S_GT2     0x0D1A
 
68
-#define PCI_CHIP_HASWELL_CRW_S_GT2_PLUS        0x0D2A
 
69
+#define PCI_CHIP_HASWELL_CRW_S_GT3     0x0D2A
 
70
 
 
71
 #define PCI_CHIP_VALLEYVIEW_PO         0x0f30 /* VLV PO board */
 
72
 #define PCI_CHIP_VALLEYVIEW_1          0x0f31
 
73
@@ -230,22 +230,23 @@
 
74
                                 (devid) == PCI_CHIP_HASWELL_ULT_S_GT2 || \
 
75
                                 (devid) == PCI_CHIP_HASWELL_CRW_GT2 || \
 
76
                                 (devid) == PCI_CHIP_HASWELL_CRW_M_GT2 || \
 
77
-                                (devid) == PCI_CHIP_HASWELL_CRW_S_GT2 || \
 
78
-                                (devid) == PCI_CHIP_HASWELL_GT2_PLUS || \
 
79
-                                (devid) == PCI_CHIP_HASWELL_M_GT2_PLUS || \
 
80
-                                (devid) == PCI_CHIP_HASWELL_S_GT2_PLUS || \
 
81
-                                (devid) == PCI_CHIP_HASWELL_SDV_GT2_PLUS || \
 
82
-                                (devid) == PCI_CHIP_HASWELL_SDV_M_GT2_PLUS || \
 
83
-                                (devid) == PCI_CHIP_HASWELL_SDV_S_GT2_PLUS || \
 
84
-                                (devid) == PCI_CHIP_HASWELL_ULT_GT2_PLUS || \
 
85
-                                (devid) == PCI_CHIP_HASWELL_ULT_M_GT2_PLUS || \
 
86
-                                (devid) == PCI_CHIP_HASWELL_ULT_S_GT2_PLUS || \
 
87
-                                (devid) == PCI_CHIP_HASWELL_CRW_GT2_PLUS || \
 
88
-                                (devid) == PCI_CHIP_HASWELL_CRW_M_GT2_PLUS || \
 
89
-                                (devid) == PCI_CHIP_HASWELL_CRW_S_GT2_PLUS)
 
90
+                                (devid) == PCI_CHIP_HASWELL_CRW_S_GT2)
 
91
+#define IS_HSW_GT3(devid)      ((devid) == PCI_CHIP_HASWELL_GT3 || \
 
92
+                                (devid) == PCI_CHIP_HASWELL_M_GT3 || \
 
93
+                                (devid) == PCI_CHIP_HASWELL_S_GT3 || \
 
94
+                                (devid) == PCI_CHIP_HASWELL_SDV_GT3 || \
 
95
+                                (devid) == PCI_CHIP_HASWELL_SDV_M_GT3 || \
 
96
+                                (devid) == PCI_CHIP_HASWELL_SDV_S_GT3 || \
 
97
+                                (devid) == PCI_CHIP_HASWELL_ULT_GT3 || \
 
98
+                                (devid) == PCI_CHIP_HASWELL_ULT_M_GT3 || \
 
99
+                                (devid) == PCI_CHIP_HASWELL_ULT_S_GT3 || \
 
100
+                                (devid) == PCI_CHIP_HASWELL_CRW_GT3 || \
 
101
+                                (devid) == PCI_CHIP_HASWELL_CRW_M_GT3 || \
 
102
+                                (devid) == PCI_CHIP_HASWELL_CRW_S_GT3)
 
103
 
 
104
 #define IS_HASWELL(devid)      (IS_HSW_GT1(devid) || \
 
105
-                                IS_HSW_GT2(devid))
 
106
+                                IS_HSW_GT2(devid) || \
 
107
+                                IS_HSW_GT3(devid))
 
108
 
 
109
 #define IS_9XX(dev)            (IS_GEN3(dev) || \
 
110
                                 IS_GEN4(dev) || \