forked from RehabMan/Intel-NUC-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
SSDT-IGPU.dsl
231 lines (228 loc) · 10.3 KB
/
SSDT-IGPU.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
// IGPU injection
//DefinitionBlock ("", "SSDT", 2, "hack", "_IGPU", 0)
//{
External(_SB.PCI0, DeviceObj)
External(RMGO, PkgObj)
Scope(_SB.PCI0)
{
External(IGPU, DeviceObj)
Scope(IGPU)
{
// need the device-id from PCI_config to inject correct properties
OperationRegion(RMIG, PCI_Config, 2, 2)
Field(RMIG, AnyAcc, NoLock, Preserve)
{
GDID,16
}
Name(GIDL, Package()
{
// Haswell/HD4200
0x0a1e, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x03, 0x00, 0x22, 0x0d },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 4200" },
"device-id", Buffer() { 0x12, 0x04, 0x00, 0x00 },
},
// Haswell/HD4400
0x0a16, 0x041e, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x03, 0x00, 0x22, 0x0d },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 4400" },
"device-id", Buffer() { 0x12, 0x04, 0x00, 0x00 },
},
// Haswell/HD4600 (mobile)
0x0416, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x03, 0x00, 0x22, 0x0d },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 4600" },
"device-id", Buffer() { 0x12, 0x04, 0x00, 0x00 },
},
// Haswell/HD4600 (desktop)
0x0412, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x03, 0x00, 0x22, 0x0d },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 4600" },
},
// Haswell/HD5000/HD5100/HD5200
0x0a26, 0x0a2e, 0x0d22, 0x0d26, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x03, 0x00, 0x22, 0x0d },
"hda-gfx", Buffer() { "onboard-1" },
},
// Broadwell/HD5300/HD5500/HD5600/HD6000
0x161e, 0x1616, 0x1612, 0x1622, 0x1626, 0x162a, 0x162b, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x16, 0x16 },
"hda-gfx", Buffer() { "onboard-1" },
},
// Skylake/HD530 mobile?
0x191b, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 530" },
//"RM,device-id", Buffer() { 0x1b, 0x19, 0x00, 0x00 },
//"AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
// Skylake/HD515
0x191e, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1e, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 515" },
//"RM,device-id", Buffer() { 0x1e, 0x19, 0x00, 0x00 },
//"AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
// Skylake/HD520
0x1916, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x16, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 520" },
//"RM,device-id", Buffer() { 0x16, 0x19, 0x00, 0x00 },
//"AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
// Skylake/HD530
0x1912, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x16, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 530" },
//"RM,device-id", Buffer() { 0x12, 0x19, 0x00, 0x00 },
//"AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
},
// Skylake/HD540
0x1926, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x26, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Graphics 540" },
//"RM,device-id", Buffer() { 0x26, 0x19, 0x00, 0x00 },
},
// Skylake/HD550
0x1927, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x26, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Graphics 550" },
//REVIEW: using 0x1926 because 0x1927 is not supported on 10.11.x
"device-id", Buffer() { 0x26, 0x19, 0x00, 0x00 },
//"RM,device-id", Buffer() { 0x26, 0x19, 0x00, 0x00 },
},
// Skylake/Iris Pro HD580
0x193b, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x05, 0x00, 0x3b, 0x19 },
//"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x26, 0x19 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Pro Graphics 580" },
//"AAPL,GfxYTile", Buffer() { 1, 0, 0, 0 },
//"RM,device-id", Buffer() { 0x3b, 0x19, 0x00, 0x00 },
//REVIEW: spoof HD540 for full screen QuickTime issue
// disabled for now due to it causing problems with popup menus in
// apps like GarageBand.app. QuickTime problem will need to find
// another fix.
//"RM,device-id", Buffer() { 0x26, 0x19, 0x00, 0x00 },
},
// Kaby Lake/HD615
0x591e, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1e, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 615" },
},
// Kaby Lake/HD620
0x5916, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x16, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 620" },
},
// Kaby Lake-R/HD620
0x5917, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x16, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel UHD Graphics 620" },
"device-id", Buffer() { 0x16, 0x59, 0x00, 0x00 },
},
// Kaby Lake/HD630
0x5912, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x12, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 630" },
},
// Kaby Lake/HD630
0x591b, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0x1b, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel HD Graphics 630" },
},
// Kaby Lake/HD640
0x5926, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x26, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Plus Graphics 640" },
},
// Kaby Lake/HD650
0x5927, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x02, 0x00, 0x26, 0x59 },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Plus Graphics 650" },
},
// Coffee Lake/UHD630 (not tested)
0x3e9b, 0x3e92, 0x3e91, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x07, 0x00, 0x9b, 0x3e },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel UHD Graphics 630" },
},
// Coffee Lake/UHD655
0x3ea5, 0, Package()
{
"AAPL,ig-platform-id", Buffer() { 0x00, 0x00, 0xa5, 0x3e },
"hda-gfx", Buffer() { "onboard-1" },
"model", Buffer() { "Intel Iris Plus Graphics 655" },
},
})
// inject properties for integrated graphics on IGPU
Method(_DSM, 4)
{
If (!Arg2) { Return (Buffer() { 0x03 } ) }
// search for matching device-id in device-id list
// if present, check RMGO override, then check GIDL
Local0 = Ones
For (,,)
{
If (CondRefOf(\RMGO))
{
// try override table in RMGO
Local1 = RMGO
Local0 = Match(Local1, MEQ, GDID, MTR, 0, 0)
If (Ones != Local0) { Break }
}
// search default table in GIDL
Local1 = GIDL
Local0 = Match(Local1, MEQ, GDID, MTR, 0, 0)
Break
}
// unrecognized device... inject nothing in this case
If (Ones == Local0) { Return (Package() { }) }
// start search for zero-terminator (prefix to injection package)
Local0 = DerefOf(Local1[Match(Local1, MEQ, 0, MTR, 0, Local0+1)+1])
// disable "hda-gfx" injection if \RMDA is present
If (CondRefOf(\RMDA)) { Local0[2] = "#hda-gfx" }
Return (Local0)
}
}
}
//}
//EOF