bugtracker icon indicating copy to clipboard operation
bugtracker copied to clipboard

Mobile Icelake issues

Open MVDB0110 opened this issue 4 years ago • 176 comments

After some Troubleshooting I got rid of most of the ACPI errors by adding compiled SSDTs. And came further in the boot process. Now I hang at Still Waiting for Root Device. Now I think the problem has to do with USB, because this laptop uses only USB-C/Thunderbolt, which are initialized but still I get the error Waiting for Root Device. Also I get the error of appleusbxhci unsupported speed mantissa. I get ACPI error: _SB.PCI0.XHC.RHUB.HS09 is in DSDT but cannot be loaded on boot (I'm still in install phase). For current EFI and photos of the error https://www.tonymacx86.com/threads/will-macos-run-on-the-xps-13-7390.285414/page-2#post-2123507

MVDB0110 avatar May 17 '20 17:05 MVDB0110

Yeah somewhat known issue with Icelake, had a user hit that roadblock a while back but disappeared before we could get a fix. So my guess are either:

  • USBInjectAll failing with newer SMBIOS
    • may need to try an older SMBIOS and see, iirc MacBookAir8,1 should be supported
  • Apple's XHCI drivers aren't matching with yours
    • If you can get the PCI ID of your XHCI controller(can find it in windows), I could make a quick kext to shove support in

Also issues tab is for guide issues and not personal hack issues, I'm throwing in this issue as "fix Icelake guide" as the Icelake platform has issues that need to be resolved but for future reference these kinds of issues should be in forums only

khronokernel avatar May 17 '20 17:05 khronokernel

Okay first ill try the InjectAll way and then I will make an USB Map and share with other XPS owners.

MVDB0110 avatar May 17 '20 18:05 MVDB0110

The older SMBIOS MacBookAir8,1 isn't changing anything. My XHCI Controller dortania/vanilla-laptop-guide#1 is "\VEN_8086&DEV_34ED&SUBSYS_08B01028&REV_30\3&11583659&0&A0" dortania/vanilla-laptop-guide#2 is "\VEN_8086&DEV_8A13&SUBSYS_00000000&REV_03\3&11583659&0&68". You are my hero if you can make that kext for me.

MVDB0110 avatar May 17 '20 18:05 MVDB0110

Try this guy:

Edit: It's a plist-only kext, so no executable is needed when adding to your config.plist

khronokernel avatar May 17 '20 18:05 khronokernel

I have tried the kext. It did not boot up and got the same Still waiting for root device error. When I imported the kext in to config.plist it got no ExecutablePath is that the way it should be?

MVDB0110 avatar May 17 '20 18:05 MVDB0110

Hmm, only other thing that could affect USB off the top of my head is IRQ conflicts. Try running SSDTime's HEPT/IRQ patcher

khronokernel avatar May 17 '20 18:05 khronokernel

It still won't pass the Still waiting for root device. The SSDTime patcher output is here: http://www.mediafire.com/file/836jgn0bg5hr2kh/patches_OC.zip/file

MVDB0110 avatar May 17 '20 19:05 MVDB0110

Maybe the OpenCore log helps: 00:000 00:000 AAPL: [EB|#LOG:INIT] 2020-05-17T21:33:31 00:117 00:117 AAPL: [EB|#VERSION] bootbase.efi 422.100.16~14 (Official), built 2020-02-29T16:54:28-0800 00:226 00:108 AAPL: [EB|#BUILD] BUILD-INFO[310]:{"DisplayName":"bootbase.efi","DisplayVersion":"422.100.16~14","RecordUuid":"0D6170BC-EA81-4EE7-B3B5-1D6A5DDB253B","BuildTime":"2020-02-29T16:54:28-0800","ProjectName":"efiboot","ProductName":"bootbase.efi","SourceVersion":"422.100.16","BuildVersion":"14","BuildConfiguration":"Release","BuildType":"Official"} 00:340 00:113 AAPL: [EB|H:IS] Err(0xE) @ GV boot-signature 00:446 00:106 AAPL: [EB|H:IS] Err(0xE) @ GV boot-image-key 00:554 00:107 AAPL: [EB|#H:IS] 0 00:670 00:116 AAPL: [EB|#WL:MODE] 0 00:782 00:111 AAPL: [EB|#CONFIG:SRC] <default> 00:890 00:108 AAPL: [EB|#CONFIG| 0] boot-save-log : 0x0000000000000002 (0x0000000000000002 < 0xFFFFFFFFFFFFFFFF) <default> 00:998 00:108 AAPL: [EB|#CONFIG| 1] wake-save-log : 0x0000000000000002 (0x0000000000000002 < 0x0000000000000002) <default> 01:109 00:111 AAPL: [EB|#CONFIG| 2] console : 0x0000000000000001 (0x0000000000000001 < 0x0000000000000001) <default> 01:215 00:105 AAPL: [EB|#CONFIG| 3] serial : 0x0000000000000000 (0x0000000000000000 < 0x0000000000000000) <default> 02:287 01:072 AAPL: [EB|#CONFIG| 4] embed-log-dt : 0x0000000000000000 (0x0000000000000000 < 0x0000000000000000) <default> 02:398 00:111 AAPL: [EB|#CONFIG| 5] timestamps : 0x0000000000000000 (0x0000000000000000 < 0xFFFFFFFFFFFFFFFF) <default> 02:506 00:107 AAPL: [EB|#CONFIG| 6] log-level : 0x0000000000000001 (0x0000000000000001 & 0x0000000000000001) <default> 02:614 00:108 AAPL: [EB|#CONFIG| 7] breakpoint : 0x0000000000000000 (0x0000000000000000 & 0x0000000000000000) <default> 02:723 00:108 AAPL: [EB|#CONFIG| 8] kc-read-size : 0x0000000000100000 (0x0000000000100000 < 0xFFFFFFFFFFFFFFFF) <default> 02:835 00:111 AAPL: [EB|#WL|0] 0x01 0x01 0 0x00 02:941 00:106 AAPL: [EB|#BRD:NV] Mac-827FAC58A8FDFA22 03:051 00:110 AAPL: [EB|#WL|1] 0x01 0x01 2 0x00 03:161 00:109 AAPL: [EB|BST:IDT] { 03:267 00:106 AAPL: [EB|BST:IDT] } 03:375 00:108 AAPL: [EB|#WL|2] 0x01 0x01 3 0x00 03:484 00:108 AAPL: [EB|#WL|3] 0x01 0x01 4 0x00 03:595 00:111 AAPL: [EB|#BRD:NV] Mac-827FAC58A8FDFA22 04:675 01:079 AAPL: [EB|#WL|4] 0x01 0x01 5 0x00 04:782 00:107 AAPL: [EB|H:CHK] BM: 0x0000000000000000 04:894 00:111 AAPL: [EB|H:CHK] Err(0xE) @ GV boot-signature 05:000 00:105 AAPL: [EB|#WL|5] 0x01 0x01 23 0x0E 05:109 00:108 AAPL: [EB|H:CPM] Err(0xE), (24, 24) @ GV Persistent-memory-note 05:219 00:110 AAPL: [EB|SB:EN] Err(0xE) @ LocP 24B73556-2197-4702-82A8-3E1337DAFBF2 05:333 00:113 AAPL: [EB|#LIMG:DP] Acpi(PNP0A03,0)/Pci(14|0)/Usb(8, 0)/HD(Part2,Sig11259E18) 05:448 00:115 AAPL: [EB|#LIMG:FP] \System\Library\CoreServices\boot.efi 05:554 00:105 AAPL: [EB|#LIMG:OPT] () 05:673 00:119 AAPL: [EB|#RPS] R?0 P?0 S?0 05:790 00:116 AAPL: [EB|OPT:LXF] 'LF (\System\Library\CoreServices\com.apple.Boot.plist) 05:898 00:108 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: \\System\\Library\\CoreServices\\com.apple.Boot.plist, DP: 0 06:982 01:083 AAPL: [EB|LD:OFS] Err(0xE) @ OPEN (\System\Library\CoreServices\com.apple.Boot.plist) 07:087 00:104 AAPL: [EB|OPT:LXF] Err(0xE) @ 'LF 07:195 00:108 AAPL: [EB|OPT:LXF] 'LF (Library\Preferences\SystemConfiguration\com.apple.Boot.plist) 07:307 00:111 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: Library\\Preferences\\SystemConfiguration\\com.apple.Boot.plist, DP: 0 07:435 00:128 AAPL: [EB:#KF] () 07:540 00:105 AAPL: [EB|#MBA:CL] () 07:654 00:113 AAPL: [EB|#MBA:NV] (-v keepsyms=1 debug=0x100 alcid=1) 07:763 00:109 AAPL: [EB|#MBA:KF] () 07:868 00:105 AAPL: [EB|#MBA:OUT] (-v keepsyms=1 debug=0x100 alcid=1) 07:977 00:108 AAPL: [EB|#LOG:VERBOSE] 2020-05-17T21:33:39 08:102 00:125 AAPL: [EB|#RBFU] F: 15 U: 0x0000000000008000 08:211 00:108 AAPL: [EB|#OPT:BM] 0x24083 08:318 00:106 AAPL: [EB|OPT:LXF] 'LF (\System\Library\CoreServices\PlatformSupport.plist) 09:403 01:085 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: \\System\\Library\\CoreServices\\PlatformSupport.plist, DP: 0 09:545 00:142 AAPL: [EB|#B:VAw] 09:652 00:107 AAPL: [EB|CS:CSKSD] { 09:760 00:108 AAPL: [EB|CS:CSKSD] Err(0xE) @ GV 8D63D4FE-BD3C-4AAD-881D-86FD974BC1DF:boot-info-payload 09:866 00:105 AAPL: [EB|G:CS] } Ok(0) 09:971 00:105 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: <null string>, DP: 1 10:136 00:164 AAPL: [EB|B:SBS] SZ: 617016 10:247 00:111 AAPL: [EB|#B:SHA] fe9e48a334db5bca8b8d8f3d0aa3f18b7dc5ad24 10:351 00:103 AAPL: [EB|WL:PWLFNV] Err(0x5) @ GV wake-failure 10:455 00:104 AAPL: [EB|WL:DT] Err(0x5) @ WL:PWLFNV 10:560 00:105 AAPL: [EB|LD:LKC] BM:R -> (System\Library\PrelinkedKernels\prelinkedkernel) 15:100 04:539 AAPL: [EB|LD:LKFS] } Ok(0) 16:212 01:112 AAPL: [EB|LD:LKC] } Ok(0) 17:305 01:092 AAPL: [EB|#FWFM] 0xFF9FFF3F 17:409 00:104 AAPL: [EB|#FWFT] 0xFD8FF42E 17:514 00:104 AAPL: [EB|#CSR:IN] 0x00000067 17:622 00:108 AAPL: [EB|#CSR:OUT] 0x00000067 17:742 00:119 AAPL: [EB|BST:FBS] { 17:854 00:112 AAPL: [EB|BST:FBS] BA.ADSZ: 0 17:958 00:104 AAPL: [EB|BST:FBS] BA.KSDSZ: 0 18:070 00:111 AAPL: [EB|B:WFDW] Err(0xE), 0 @ LocHB 71B4903C-14EC-42C4-BDC6-CE1449930E49 18:175 00:105 AAPL: [EB|#LOG:DT] 2020-05-17T21:33:49 18:284 00:108 AAPL: [EB|#LOG:EXITBS:START] 2020-05-17T21:33:49

MVDB0110 avatar May 17 '20 19:05 MVDB0110

I also see some unsupported speed mantissa errors for several XHCI ports. With USBInjectAll or with your kext.

MVDB0110 avatar May 17 '20 19:05 MVDB0110

Same Problems with the Razer Blade Stealth 13 Late 2019 with the same CPU

danielehrhardt avatar May 19 '20 19:05 danielehrhardt

@MVDB0110 Came across an AppleLife post regarding Z490 and the issue of _UPC and _PLD being a bit screwed up. Curious if it's the same situation here, can you provide a full ACPI dump?(not just DSDT, would like the SSDTs and such as well)

khronokernel avatar May 29 '20 15:05 khronokernel

Here is my whole usb + DSDT dump: https://drive.google.com/file/d/1d2eGrsXcwI2YihPgQFbPlClSM0xxkGah/view?usp=sharing I hope this is what you need.

MVDB0110 avatar Jun 03 '20 18:06 MVDB0110

@MVDB0110 I need all the ACPI tables, not just the DSDT

khronokernel avatar Jun 03 '20 18:06 khronokernel

Here is my ACPI Dump on Windows: https://drive.google.com/file/d/1t3u0XSFGX7kg0gsgohFtdKYNzrtWSGyB/view?usp=sharing

MVDB0110 avatar Jun 03 '20 18:06 MVDB0110

Can you provide the individual tables instead of one large txt file?

khronokernel avatar Jun 03 '20 18:06 khronokernel

Here is the acpidump in separated .dat files. https://drive.google.com/file/d/19Wg9xaGyd3naukEYn49fpeBLwRa7GLTx/view?usp=sharing

MVDB0110 avatar Jun 03 '20 18:06 MVDB0110

Awesome thank you, so here's a few things to try:

  • Drop xh_Dell_
  • Drop xh_Dell_ and use USBInjectAll from Shiki's repo
  • Set PCI0.XHC_.RHUB's STA to 0 so macOS is forced to rebuild ports, would need USBInjectAll from Shiki's repo
  • Drop xh_Dell_, use USBInjectAll and PCI0.XHC_.RHUB's STA to 0

Dropping xh_Dell_: ACPI -> Delete

All | Boolean | YES Comment | String | Delete xh_Dell_ Enabled | Boolean | True OemTableId | Data | 78685f44656c6c5f TableLength | Number | 0 TableSignature | Data | 53534454

USBInjectAll: See here: https://github.com/Sniki/OS-X-USB-Inject-All/releases

You cannot use the MacBookAir SMBIOS as Sniki hasn't added them yet, I recommend MacBookAir8,1 until USB has been mapped though they should build by themselves without USBInjectAll's help

SSDT-RHUB-STA:

Use this guy:

SSDT-RHUB-OFF.aml.zip

khronokernel avatar Jun 03 '20 19:06 khronokernel

Do you have a Windows installation or are you able to install Windows by any chance?

dhinakg avatar Jun 03 '20 19:06 dhinakg

@khronokernel My USB problem is solved! But now my problem lies with AppleIntelFramebuffer/AppleIntelClocks.cpp "Wrong CD clock frequency 0x249f0000 set by EFI".

MVDB0110 avatar Jun 03 '20 19:06 MVDB0110

Photo of the kernel panic. https://drive.google.com/file/d/1f7Z6MzVGzz5XheeRXD3ZcpCFl7QQoPAy/view?usp=sharing

MVDB0110 avatar Jun 03 '20 19:06 MVDB0110

My USB problem is solved!

Yay! What fixed it specifically?

And regarding clockID, shit. See here: https://github.com/acidanthera/bugtracker/issues/942

We can do a bit more troubleshooting, try -igfxvesa in boot-args to see if it'll go any further

Btw: Your SMBIOS is somehow DELL8215,1, I wanna give a cookie for even being able to boot macOS with that ;p

Have a feeling it's a corrupt SMBIOS table, try these:

  • Kernel -> Quirk -> CustomSMBIOSGuid -> True
  • PlatformInfo -> UpdateSMBIOSMode -> Custom

khronokernel avatar Jun 03 '20 19:06 khronokernel

Okay you are a hero. It is booting in the installer (My touchpad isn't recognized tho), so for the installation I will have to use my Dell WD19 (Keyboard/Mouse and Ethernet).

MVDB0110 avatar Jun 03 '20 19:06 MVDB0110

Awesome! Though please do report back on what actually fixed the USB issue. Pretty sure USBInjectAll did jack shit but thinking my SSDT was the answer

khronokernel avatar Jun 03 '20 19:06 khronokernel

Well without USBInjectAll, My XHC ports aren't recognized and I don't proceed in the boot process. But with the SSDT and the blocking of xh_dell all error seem to dissappear except unsupported speed mantissa but I don't believe that is a real error, because the boot process succeeds. I'm installing in russian haha, any idea how to fix that?

MVDB0110 avatar Jun 03 '20 19:06 MVDB0110

I'm installing in russian haha, any idea how to fix that?

Troubleshooting page says ;p:

https://dortania.github.io/OpenCore-Desktop-Guide/troubleshooting/troubleshooting.html#macos-installer-in-russian

khronokernel avatar Jun 03 '20 20:06 khronokernel

Do u want my EFI as-is for your icelake vanilla guide?

MVDB0110 avatar Jun 03 '20 20:06 MVDB0110

Nah I'm alright, though will likely do a write up in the ACPI guide on the STA and Table dropping. I'm likely gonna close this issue as the USB's been fixed though would like to figure out the Clock ID mess on the iGPU

khronokernel avatar Jun 03 '20 20:06 khronokernel

Do you need anything from me for the Clock ID mess?

MVDB0110 avatar Jun 03 '20 20:06 MVDB0110

Okay I have installed MacOS on the laptop but now I have another problem with the iGPU. It says Could not register with IOFB. GPU SKU: 0. Unsupported ICL sku.

MVDB0110 avatar Jun 03 '20 20:06 MVDB0110

Now I got into MacOS, but my graphics card doesn't get a kext in system summary it says 35mb and in Ubuntu it says "00:02.0 0300: 8086:8a52 (rev 07)", which means I got the right device id and aapl platformid. Any ideas on how to fix it?

MVDB0110 avatar Jun 04 '20 07:06 MVDB0110