-
Notifications
You must be signed in to change notification settings - Fork 938
/
SSDT-XCPM.dsl
31 lines (29 loc) · 1019 Bytes
/
SSDT-XCPM.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
// Inject plugin-type=1 on _PR.CPU0
// This is experimental to see how only injecting plugin-type with native CPU PM SSDTs
// works on various platforms.
//
// Results: OK on Haswell+, not so good on Ivy
// Notes:
// iMac17,1 and MacBook9,1 do not have APSS/ACST/APLF/etc
// others like MacBookPro12,x, MacBook11,x do have it, but it is possible they are not used
// likely any HWP enabled SMBIOS does not have APSS/ACST/APLF/etc and does not need it
// could be that any XCPM enabled SMBIOS needs only this plugin-type injection
//
// Newer KabyLake/KabyLake-R/CoffeeLake boards use _PR.PR00, or _PR.P000 as first CPU path.
// Adjust this code according to what you find for Processor objects in your own DSDT.
#ifndef NO_DEFINITIONBLOCK
DefinitionBlock("", "SSDT", 2, "hack", "_XCPM", 0)
{
#endif
Method(_PR.CPU0._DSM, 4)
{
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"plugin-type", 1
})
}
#ifndef NO_DEFINITIONBLOCK
}
#endif
//EOF