Contribute
Register

MaciASL Object does not exist (PR2S) on GA-H87N-WIFI F8

Status
Not open for further replies.
Joined
Apr 10, 2012
Messages
144
Motherboard
Gigabyte GA-H87N-WIFI
CPU
i5-4670K
Graphics
RX 580
I'm trying to create a new DSDT so I can have my HDMI sound to work, plus more USB power. I added PJALM Gygabyte patch specifically for my motherboard GA-H87N-WIFI and resolved all errors, but this one remains and comes up with 10 counts. It says "Object does not exist (PR2S)". I have the latest Clover bootloader and no DSDT booted at the moment. Does anyone know how to fix that? I can't find anything on Google. Thanks!


Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
{
Name (UPCP, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
If (LNot (And (PR2S (0x0B), PR2)))
{
Store (Zero, Index (UPCP, Zero))
}

Return (UPCP)
}
 
Here is the original file and the System DSDT that I'm trying to compile. The patches I applied are these:

# Maintained by: PJALM ([email protected]) for: http://pjalm.info/repos/gigabyte/
# Maintained by: PJALM ([email protected]) for: http://pjalm.com/repos/gigabyte/

# These patches are the registered property of PJALM.COM and can not be
# redistributed or modified without the written consent of PJALM.COM.
# Links to these patches are allowed so long as the link details that
# they come from PJALM.COM

# Patch Name : H87N-WIFI
# Patch Version : 1.0

# Add the DTGP method
into method label DTGP remove_entry;
into definitionblock code_regex . insert begin
Method (DTGP, 5, NotSerialized)\n
{\n
If (LEqual (Arg0, Buffer (0x10)\n
{\n
/* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,\n
/* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
}))\n
{\n
If (LEqual (Arg1, One)) {\n
If (LEqual (Arg2, Zero)) {\n
Store (Buffer (One) { 0x03 }, Arg4)\n
Return (One)\n
}\n
If (LEqual (Arg2, One)) {\n
Return (One)\n
}\n
}\n
}\n
Store (Buffer (One) { 0x00 }, Arg4)\n
Return (Zero)\n
}
end;

# Add Darwin to the supported operating systems
into method label _INI code_regex \{(\s+)(If\s\(_OSI\s\("Windows\s2001"\)\)) replace_matched begin {\n
If (_OSI ("Darwin"))\n
{\n
Store (0x2710, OSYS)\n
}\n
\n
$2
end;

#Gigabyte Haswell Additional Fixes

into_all all code_regex _T_([0-6]) replaceall_matched begin T_%1 end;
into device label EC0 set_label begin EC end;
into_all all code_regex EC0 replaceall_matched begin EC end;
into method label _REG parent_label EC remove_entry;
into device label COPR set_label begin MATH end;
into_all all code_regex COPR replaceall_matched begin MATH end;
into_all all code_regex 0x000EC00 replaceall_matched begin 0x000EC000 end;
into_all all code_regex 0xFEC0000 replaceall_matched begin 0xFEC00000 end;
into_all all code_regex (Name\s\(_HID,\s"ABCDEFGH") replace_matched begin Name (_HID, EisaId ("PNP0C15") end;
into device label SIO1 code_regex 0x00(,\s+//\s+L) replaceall_matched begin 0x01%1 end;
into_all all code_regex (Acquire\s\(MUT0,\s0x)....\) replace_matched begin %1FFFF) end;
into_all all code_regex pnp0c14 replaceall_matched begin PNP0C14 end;
into method label _CRS parent_label PCI0 code_regex CreateDWordField\s\(BUF0,\s\\_SB.PCI0._Y0F._LEN,\sMSLN\) replace_matched begin CreateQWordField (BUF0, \\_SB.PCI0._Y0F._LEN, MSLN) end;
into_all all code_regex (Return\s\(Package\s\()0x00(\)\s\{\}\)) replace_matched begin %1Zero%2 end;
into_all all code_regex (Name\s\(XMPT,\sBuffer\s\()0x0000(\)\s\{\}\)) replace_matched begin %1Zero%2 end;
into method label RDGI parent_label _SB insert begin Return (Zero) end;
into method label RDGP parent_label _SB insert begin Return (Zero) end;
into method label SPL1 insert begin Return (Zero) end;
into method label _DEP parent_label PRT1 code_regex (Return\s\(Package\s\()0x00(\)\s\{\}\)) replace_matched begin %1Zero%2 end;
into method label _HID parent_label _SB.TPM code_regex (Return\s\(Zero\)\s*) removeall_matched;
into method label _HID parent_label _SB.TPM insert begin Return (Zero) end;

into definitionblock code_regex External\s\(_SB_.PCI0.PEG0\) removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEG1\) removeall_matched;
into definitionblock code_regex External\s\(_SB_.PCI0.PEG2\) removeall_matched;

into method label _DEP parent_label XHC remove_entry;
into method label PR2S parent_label XHC remove_entry;
into method label _PS0 parent_label XHC remove_entry;
into method label _PS3 parent_label XHC remove_entry;

into method label _E1E parent_label _GPE insert begin Return (Zero) end;

#into method label RDGI parent_label _SB code_regex Return\s\(Zero\) remove_matched;
#into method label RDGP parent_label _SB code_regex Return\s\(Zero\) remove_matched;

into method label ADBG parent_label PRT1 code_regex (Return\s\(Package\s\()0x00(\)\s\{\}\)) remove_matched;
into method label ADBG replace_content begin
If (CondRefOf (MDBG))\n
{\n
Return (MDBG)\n
}\n
Return (Zero)\n
end;

into device label SAT0 set_label begin SATA end;
into_all all code_regex SAT0 replaceall_matched begin SATA end;
into device label SAT1 remove_entry;
into method label _DSM parent_label SATA remove_entry;
into device label SATA insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x08) {\n
"AAPL,slot-name", "Built In",\n
"name", "Intel AHCI Controller",\n
"model", Buffer (0x2D) {"Intel 8 Series Chipset Family SATA Controller"},\n
"device_type", Buffer (0x0F) {"AHCI Controller"},\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;

# Fix HDEF device for the Realtek ALC892 audio codec
into method label _DSM parent_label HDEF remove_entry;
into device label HDEF insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x10) {\n
"AAPL,slot-name", "Built In",\n
"name", "Realtek Audio Controller",\n
"model", Buffer () {"Realtek ALC892 Audio Controller"},\n
"device_type", Buffer (0x10) {"Audio Controller"},\n
"layout-id", Buffer (0x04) {0x01,0x00,0x00,0x00},\n
"PinConfigurations", Buffer (Zero) {},\n
"MaximumBootBeepVolume", Buffer(One) {0x40},\n
"hda-gfx", Buffer (0x0A) {"onboard-1"}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;

# Fixes 'Built-in' status for Intel Gigabit Ethernet
into method label _DSM parent_label GLAN remove_entry;
into device label GLAN insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x0C) {\n
"AAPL,slot-name", "Built In",\n
"name", "Intel Ethernet Controller",\n
"model", "Intel I217-V Gigabit Network Controller",\n
"device_type", Buffer (0x13) {"Ethernet Controller"},\n
"built-in", Buffer (One) {0x01},\n
"location", Buffer (0x02) {"1"}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;

# Patches the Intel USB3 on Intel 8 Series chipsets to allow more power output
#Fix EHC1
into method label _DSM parent_label EHC1 remove_entry;
into device label EHC1 insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x15) {\n
"AAPL,slot-name", "Built In",\n
"name", "Intel EHCI Controller",\n
"model", Buffer(0x3E) {"Intel 8 Series Chipset Family USB Enhanced Host Controller #1"},\n
"device_type", Buffer (0x0E) {"USB Controller"},\n
"AAPL,current-available", 0x0834,\n
"AAPL,current-extra", 0x0A8C,\n
"AAPL,current-in-sleep", 0x03E8,\n
"AAPL,current-extra-in-sleep", 0x0834,\n
"AAPL,max-port-current-in-sleep", 0x0A8C,\n
"AAPL,device-internal", 0x02,\n
Buffer (One) {0x00}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;

#Fix EHC2
into method label _DSM parent_label EHC2 remove_entry;
into device label EHC2 insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x15) {\n
"AAPL,slot-name", "Built In",\n
"name", "Intel EHCI Controller",\n
"model", Buffer (0x3E) {"Intel 8 Series Chipset Family USB Enhanced Host Controller #2"},\n
"device_type", Buffer (0x0E) {"USB Controller"},\n
"AAPL,current-available", 0x0834,\n
"AAPL,current-extra", 0x0A8C,\n
"AAPL,current-in-sleep", 0x03E8,\n
"AAPL,current-extra-in-sleep", 0x0834,\n
"AAPL,max-port-current-in-sleep", 0x0A8C,\n
"AAPL,device-internal", 0x02,\n
Buffer (One) {0x00}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;

#Fix XHC1
into device label XHC set_label begin XHC1 end;
into_all all code_regex XHC(?=\W) replaceall_matched begin XHC1 end;
into method label _DSM parent_label XHC1 remove_entry;
into device label XHC1 insert begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package (0x15) {\n
"AAPL,slot-name", "Built In",\n
"name", "Intel XHCI Controller",\n
"model", Buffer (0x37) {"Intel 8 Series Chipset Family USB xHCI Host Controller"},\n
"device_type", Buffer (0x0E) {"USB Controller"},\n
"AAPL,current-available", 0x0834,\n
"AAPL,current-extra", 0x0A8C,\n
"AAPL,current-in-sleep", 0x03E8,\n
"AAPL,current-extra-in-sleep", 0x0834,\n
"AAPL,max-port-current-in-sleep", 0x0A8C,\n
"AAPL,device-internal", 0x02,\n
Buffer (One) {0x00}\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}
end;
 

Attachments

  • System DSDT.zip
    31.4 KB · Views: 128
  • Original DSDT.zip
    34.2 KB · Views: 96
Status
Not open for further replies.
Back
Top