Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

I did not spoof it, it is recognized natively. see my config.plist
Scuse me, my bad. I have a Wishkey lake. I have graphics acceleration work perfect. all work fine. But I get a kernel panic at boot and then boot fine. The only way to resolve is to remove, I2C controllers, or to remove OSI to XOSI.
I don't know what to try. I've tried to delete flags and polish config.plist here and there, change some ACPI files,pnlf, DSDT, spoofing a lot of ig-id but nothing to do.

A famous guy of this forum @ben9923 have tried to help me, but maybe. it's too messed. And the thing that make me really frustrated is that I work on it since three days with no sleep with any luck.


Anonymous UUID: C16B5682-4C3A-CBE7-0D9F-861C46A5B72B

Thu Jul 25 15:00:41 2019

*** Panic Report ***
panic(cpu 4 caller 0xffffff80004db92d): Kernel trap at 0xffffff7f80c5a4c1, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000100, CR3: 0x0000000015c5f000, CR4: 0x00000000003626e0
RAX: 0xffffff7f80c5bd80, RBX: 0x0000000000000000, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffff811c51bdf0, RBP: 0xffffff811c51be30, RSI: 0x0000000000000000, RDI: 0x0000000000000000
R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000000, R13: 0x0000000000000000, R14: 0xffffff8025016100, R15: 0xffffff7f80c63670
RFL: 0x0000000000010246, RIP: 0xffffff7f80c5a4c1, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000000100, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 0, VF: 1

Backtrace (CPU 4), Frame : Return Address
0xffffff811c51b8c0 : 0xffffff80003aea2d mach_kernel : _handle_debugger_trap + 0x47d
0xffffff811c51b910 : 0xffffff80004e9e95 mach_kernel : _kdp_i386_trap + 0x155
0xffffff811c51b950 : 0xffffff80004db70a mach_kernel : _kernel_trap + 0x50a
0xffffff811c51b9c0 : 0xffffff800035bb40 mach_kernel : _return_from_trap + 0xe0
0xffffff811c51b9e0 : 0xffffff80003ae447 mach_kernel : _panic_trap_to_debugger + 0x197
0xffffff811c51bb00 : 0xffffff80003ae293 mach_kernel : _panic + 0x63
0xffffff811c51bb70 : 0xffffff80004db92d mach_kernel : _kernel_trap + 0x72d
0xffffff811c51bce0 : 0xffffff800035bb40 mach_kernel : _return_from_trap + 0xe0
0xffffff811c51bd00 : 0xffffff7f80c5a4c1 org.coolstar.VoodooGPIO : __ZN10VoodooGPIO32intel_gpio_community_irq_handlerEP15intel_community + 0x3b
0xffffff811c51be30 : 0xffffff7f80c5a7b6 org.coolstar.VoodooGPIO : __ZN10VoodooGPIO22interruptOccurredGatedEv + 0x2e
0xffffff811c51be60 : 0xffffff8000a59df8 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffff811c51bed0 : 0xffffff8000a5827c mach_kernel : __ZN22IOInterruptEventSource12checkForWorkEv + 0x13c
0xffffff811c51bf30 : 0xffffff8000a56362 mach_kernel : __ZN10IOWorkLoop15runEventSourcesEv + 0x1e2
0xffffff811c51bf70 : 0xffffff8000a558bc mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x2c
0xffffff811c51bfa0 : 0xffffff800035b0ce mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
org.coolstar.VoodooGPIO(1.1)[F56452A5-3644-3927-832D-74D30E0617B6]@0xffffff7f80c58000->0xffffff7f80c6dfff
dependency: com.apple.iokit.IOACPIFamily(1.4)[D039545F-9B61-3B0D-8F90-CCCAE5BD7A52]@0xffffff7f80c4f000

BSD process name corresponding to current thread: kernel_task
Boot args: -cdfon lilucpu=10 -igfxmlr keepsyms=1

Mac OS version:
18F132

Kernel version:
Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
Kernel UUID: 7C8BB636-E593-3CE4-8528-9BD24A688851
__HIB text base: 0xffffff8000100000
System model name: MacBookPro15,2 (Mac-827FB448E656EC26)

System uptime in nanoseconds: 4820165112
last loaded kext at 4819372032: com.apple.driver.AppleOSXWatchdog 1 (addr 0xffffff7f839f0000, size 28672)
 
this error during my compile work
when I determine to active my trackpad
and disassmble DSDT.aml into dsl file
then try to fix skl ,skl+ ,they are patched
last to compile DSDT.dsl I got this error.
somebody please help me :clap::clap:
my laptop is dell 14 Inspiron 5480 ,no discrete video card,i5 8265u,1t mechanism drive


Scope (_SB)
{
Device (COEX)
{
Name (_HID, EisaId ("INT3519")) // _HID: Hardware ID
Name (_STR, Unicode ("CoExistence Manager")) // _STR: Description String
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LEqual (COEM, One))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}
 

Attachments

  • DSDT.dsl
    2 MB · Views: 109
This may be a dumb question (I couldn't find the answer elsewhere). But if I'm not injecting kexts (because I'm going to install them in /L/E) then do I need to install this ACPI patch somewhere on the system, or is Clover still going to take care of this part for me from the UEFI partition?
 
Hi @RehabMan , long time no see :)
Just dump ioreg from a new MacBook. Found something interesting in PNP0C01 for Haswell/Broadwell graphics:
OS X requires MEM2 instead of TPMX in DSDT. Without patching TPMX in DSDT, PNP0C01 will not be loaded correctly. And so does the IOAccelMemoryInfoUserClient. So, here's the patch I made:
Code:
#Credit syscl @ github.com/syscl: iGPU use MEM2 instead of TPMX, and r/w memory instead of r/o memory.
#syscl_iGPU_MEM2.txt

into device label TPMX remove_entry;
into device label PCI0 insert
begin
Device (MEM2) // iGPU use MEM2 instead of TPMX, and RW memory. syscl\n
{\n
    Name (_HID, EisaId ("PNP0C01"))\n
    Name (_UID, 0x02)\n
    Name (_STA, 0x0F)\n
    Name (_CRS, ResourceTemplate ()\n
    {\n
        Memory32Fixed (ReadWrite, 0x20000000, 0x00200000, )\n
        Memory32Fixed (ReadWrite, 0x40000000, 0x00200000, )\n
    })\n
}\n
end;

After applying the MEM2 patch, the PNP0C01 on various laptops will be loaded correctly by OS X, here's the screenshot of the change:
View attachment 200946
View attachment 200947
Can you upload this patch in your git(so popular) so that more people will benefit from it.
Best wishes,
syscl.

I can't find the difference between renaming and not renaming (No extra driver loading) .
 
Hi,

Can someone help me patch my DSDT. Here are the laptop specs:

Dell Latitude E6420
Chipset: Sandy Bridge
CPU: Mobile DualCore Intel Core i5-2540M, 3100 MHz
RAM: 16GB DDR3
Video: Optimus - Intel HD3000, NVIDIA NVS 4200M (512 MB)

I have extracted the DSDT with Optimus enabled, which shows both Intel and NVIDIA Cards in Clover. I'd like to disable the NVIDIA card in the DSDT, so that the installation uses the Intel adapter only. Thank you in advance.

Djuby
 

Attachments

  • Origin.zip
    70.5 KB · Views: 81
Hi,

Can someone help me patch my DSDT. Here are the laptop specs:

Dell Latitude E6420
Chipset: Sandy Bridge
CPU: Mobile DualCore Intel Core i5-2540M, 3100 MHz
RAM: 16GB DDR3
Video: Optimus - Intel HD3000, NVIDIA NVS 4200M (512 MB)

I have extracted the DSDT with Optimus enabled, which shows both Intel and NVIDIA Cards in Clover. I'd like to disable the NVIDIA card in the DSDT, so that the installation uses the Intel adapter only. Thank you in advance.

Djuby
As per rules, please update your hardware profile to allow others to help you easier

please read the faq for proper hardware profile setup:
 
Sorry about that. Profile updated.
 
Hi,

Can someone help me patch my DSDT. Here are the laptop specs:

Dell Latitude E6420
Chipset: Sandy Bridge
CPU: Mobile DualCore Intel Core i5-2540M, 3100 MHz
RAM: 16GB DDR3
Video: Optimus - Intel HD3000, NVIDIA NVS 4200M (512 MB)

I have extracted the DSDT with Optimus enabled, which shows both Intel and NVIDIA Cards in Clover. I'd like to disable the NVIDIA card in the DSDT, so that the installation uses the Intel adapter only. Thank you in advance.

Djuby

Anyone?
 
I'd like to disable the NVIDIA card in the DSDT, so that the installation uses the Intel adapter only. Thank you in advance.

If you don't want to use Nvidia, then make sure you have nv_disable=1 in your config.plist. Also in your clover boot up, you need to check the boot arguments. Lastly, make sure you have Intel video enabled in your bios.
 
If you don't want to use Nvidia, then make sure you have nv_disable=1 in your config.plist. Also in your clover boot up, you need to check the boot arguments. Lastly, make sure you have Intel video enabled in your bios.

I have the NVIDIA Optimus disabled in the BIOS. When I use nv_disable=1 then the system reboots. I guess it causes kernel panic, but it reboots very quickly before I can see what causes it.
 
Back
Top