Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
1576339561032.png

I tried shikigva=480
ShikiGVAPatches {
// Remove forceOfflineRenderer from AppleGVA Info.plist.
// This is required to allow hardware acceleration on several mac models with discrete GPUs
// when only IGPU is available.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
ForceOnlineRenderer = 1,
// Remve hweBGRA from AppleGVA Info.plist.
// hweBGRA is not supported by NVIDIA GPUs, so the patch is sometimes required when using NVIDIA
// in a mac model meant to be used with AMD or Intel.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
AllowNonBGRA = 2,
// Prior to 10.13.4 certain GPU+CPU combinations were not meant to provide hardware acceleration and had to be patched.
// The overall problematic configuration list is: NVIDIA+BDW, NVIDIA+SKL, NVIDIA+KBL, AMD+IVB, NVIDIA+SNB.
// Enabled automatically if shikigva is *NOT* passed on 10.13.3 and earlier. All are fixed in 10.13.4.
ForceCompatibleRenderer = 4,
// Unlike 10.12.6 without security updates and earlier, on 10.13 and latest 10.12.6 AppleGVA patches
// do not apply to all processes, and each process needs to be patched explicitly. This is a bug
// in Lilu, which needs to be explored and fixed. For now this bit ensures that the processes present
// in WHITELIST section of Patches.plist will definitely get the fixes even on 10.13 and 10.12.6.
// On 10.12.6 and 10.13 this must be used if any of the following bits are used:
// - ForceOnlineRenderer
// - AllowNonBGRA
// - ForceCompatibleRenderer
// - ReplaceBoardID
// - FixSandyBridgeClassName
// It is enabled automatically on 10.12 and 10.13 if shikigva is *NOT* passed and ForceCompatibleRenderer or
// FixSandyBridgeClassName are automatically enabled.
AddExecutableWhitelist = 8,
// Use hardware DRM decoder (normally AMD) by pretending to be iMacPro in apps that require it.
// For example, in Music.app or TV.app for TV+.
UseHwDrmDecoder = 16,
// Replace board-id used by AppleGVA and AppleVPA by a different board-id.
// Sometimes it is feasible to use different GPU acceleration settings from the main mac model.
// By default Mac-27ADBB7B4CEE8E61 (iMac14,2) will be used, but you can override this via shiki-id boot-arg.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
ReplaceBoardID = 32,
// Attempt to support fps.2_1 (FairPlay 2.x) in Safari with hardware decoder. Works on most modern AMD GPUs.
// Note, AMD Polaris Ellesmere is broken in 10.15 (e.g. RX 590), whereas AMD Polaris Baffin (e.g. RX 460) is fine.
// Easiest check is to run WebKitMediaKeys.isTypeSupported("com.apple.fps.2_1", "video/mp4") in Safari Web Console.
// Broken GPU driver will just freeze the system with .gpuRestart crash.
UseHwDrmStreaming = 64,
// Disables software decoder unlock patches for FairPlay 1.0.
// This will use AMD decoder if available, but currently requires IGPU to be either not present or disabled.
UseLegacyHwDrmDecoder = 128,
// Enables software decoder unlock patches for FairPlay 4.0.
// This will use software decoder, but currently requires IGPU to be either not present or disabled.
UseSwDrmDecoder = 256,
};
[automerge]1576340345[/automerge]

1576340326638.png

Firefox and Opera
[automerge]1576340679[/automerge]
1576340624400.png

Unfortunately the screen is black during playback.(safari)
 
Last edited:
  • Like
Reactions: h9826790

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
View attachment 882736
I tried shikigva=480
ShikiGVAPatches {
// Remove forceOfflineRenderer from AppleGVA Info.plist.
// This is required to allow hardware acceleration on several mac models with discrete GPUs
// when only IGPU is available.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
ForceOnlineRenderer = 1,
// Remve hweBGRA from AppleGVA Info.plist.
// hweBGRA is not supported by NVIDIA GPUs, so the patch is sometimes required when using NVIDIA
// in a mac model meant to be used with AMD or Intel.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
AllowNonBGRA = 2,
// Prior to 10.13.4 certain GPU+CPU combinations were not meant to provide hardware acceleration and had to be patched.
// The overall problematic configuration list is: NVIDIA+BDW, NVIDIA+SKL, NVIDIA+KBL, AMD+IVB, NVIDIA+SNB.
// Enabled automatically if shikigva is *NOT* passed on 10.13.3 and earlier. All are fixed in 10.13.4.
ForceCompatibleRenderer = 4,
// Unlike 10.12.6 without security updates and earlier, on 10.13 and latest 10.12.6 AppleGVA patches
// do not apply to all processes, and each process needs to be patched explicitly. This is a bug
// in Lilu, which needs to be explored and fixed. For now this bit ensures that the processes present
// in WHITELIST section of Patches.plist will definitely get the fixes even on 10.13 and 10.12.6.
// On 10.12.6 and 10.13 this must be used if any of the following bits are used:
// - ForceOnlineRenderer
// - AllowNonBGRA
// - ForceCompatibleRenderer
// - ReplaceBoardID
// - FixSandyBridgeClassName
// It is enabled automatically on 10.12 and 10.13 if shikigva is *NOT* passed and ForceCompatibleRenderer or
// FixSandyBridgeClassName are automatically enabled.
AddExecutableWhitelist = 8,
// Use hardware DRM decoder (normally AMD) by pretending to be iMacPro in apps that require it.
// For example, in Music.app or TV.app for TV+.
UseHwDrmDecoder = 16,
// Replace board-id used by AppleGVA and AppleVPA by a different board-id.
// Sometimes it is feasible to use different GPU acceleration settings from the main mac model.
// By default Mac-27ADBB7B4CEE8E61 (iMac14,2) will be used, but you can override this via shiki-id boot-arg.
// See /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist for more details.
ReplaceBoardID = 32,
// Attempt to support fps.2_1 (FairPlay 2.x) in Safari with hardware decoder. Works on most modern AMD GPUs.
// Note, AMD Polaris Ellesmere is broken in 10.15 (e.g. RX 590), whereas AMD Polaris Baffin (e.g. RX 460) is fine.
// Easiest check is to run WebKitMediaKeys.isTypeSupported("com.apple.fps.2_1", "video/mp4") in Safari Web Console.
// Broken GPU driver will just freeze the system with .gpuRestart crash.
UseHwDrmStreaming = 64,
// Disables software decoder unlock patches for FairPlay 1.0.
// This will use AMD decoder if available, but currently requires IGPU to be either not present or disabled.
UseLegacyHwDrmDecoder = 128,
// Enables software decoder unlock patches for FairPlay 4.0.
// This will use software decoder, but currently requires IGPU to be either not present or disabled.
UseSwDrmDecoder = 256,
};
[automerge]1576340345[/automerge]


View attachment 882742
Firefox and Opera
[automerge]1576340679[/automerge]
View attachment 882744
Unfortunately the screen is black during playback.(safari)

I tried self build latest Lilu and WEG, shikigva=256, not better than 64. Safari DRM streaming still broken.
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
So you have to set iMac Pro ID implicitly.

It's even worse if I use 288 and add shiki-id=Mac-7BA5B2D9E42DDD94 back into the boot argument.

Safari won't even start to load Netflix video, but redirect to that "Silverlight required" page.

I will try other arguments, but I still doubt if any combination can work.
 

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
Apparently, Netflix depends on FairPlay 2.1, which according to the Shiki notes, can be tested easily: First, enable the Develop menu in Safari (Preferences and then Advanced). Second, select "Show JavaScript Console." And third enter the following command at the prompt:
Code:
WebKitMediaKeys.isTypeSupported("com.apple.fps.2_1", "video/mp4")
You want to see true.
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
Apparently, Netflix depends on FairPlay 2.1, which according to the Shiki notes, can be tested easily: First, enable the Develop menu in Safari (Preferences and then Advanced). Second, select "Show JavaScript Console." And third enter the following command at the prompt:
Code:
WebKitMediaKeys.isTypeSupported("com.apple.fps.2_1", "video/mp4")
You want to see true.

It shows true, however, only audio and subtitle playing correctly, video is pure red.
Screenshot 2019-12-15 at 2.52.41 AM.png

[automerge]1576349812[/automerge]
My test so far, really nothing changed (up to shikigva=512). No matter add shiki-id=Mac-7BA5B2D9E42DDD94 or not, use shikigva 128 or 256. Nothing better than SMBIOS spoofing + shikigva=64.
 

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
It shows true, however, only audio and subtitle playing correctly, video is pure red.

Interesting. It's false in my case. I've actually never been able to get past the HTML5 Player and Silverlight page.
[automerge]1576350351[/automerge]
Nothing better than SMBIOS spoofing + shikigva=64.

Does this get you Netflix, though?
 
Last edited:

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
On my machines, I see false = $1 (Mac Pro) and true = $1 (MacBook).
 

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,656
8,587
Hong Kong
Interesting. It's false in my case. I've actually never been able to get past the HTML5 Player and Silverlight page.
[automerge]1576350351[/automerge]


Does this get you Netflix, though?

No, the video is pure red
 
  • Like
Reactions: cdf

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
So I have 2 Catalina's. One patched by dosdude's installer and the other one clean. First I removed the MCEreporter kext from dosdude's patched Catalina and it booted properly with spoofed SMBIOS. Now I removed the same file from the clean Catalina and I got KP again:
{"macOSProcessedStackshotData":"bm8gb24gZGlzayBvciBzbGVlcC93YWtlIGZhaWx1cmUgcGFuaWMgc3RhY2tzaG90IGZvdW5k","macOSPanicString":"mp_kdp_enter() timed-out on cpu 4, NMI-ing\nmp_kdp_enter() NMI pending on cpus: 0 6\nmp_kdp_enter() timed-out during locked wait after NMI;expected 24 acks but received 23 after 32791374 loops in 1728999779 ticks\npanic(cpu 4 caller 0xffffff8014a6520a): Kernel trap at 0x0000000000000000, type 14=page fault, registers:\nCR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x00000000178c3000, CR4: 0x00000000000226e0\nRAX: 0x0000000000000000, RBX: 0xffffff8106e5c800, RCX: 0x0000000000000000, RDX: 0x0000000000000000\nRSP: 0xffffff8e2e8fbbf8, RBP: 0xffffff8e2e8fbc50, RSI: 0xffffff7f95a32968, RDI: 0xffffff8106e5c800\nR8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0x0000000000000051, R11: 0xffffff81063d8310\nR12: 0xaaaaaaaaaaaaaaaa, R13: 0x0000000000000000, R14: 0xffffff8106e5c800, R15: 0xffffff8e2e8fbd04\nRFL: 0x0000000000010286, RIP: 0x0000000000000000, CS: 0x0000000000000008, SS: 0x0000000000000000\nFault CR2: 0x0000000000000000, Error code: 0x0000000000000010, Fault CPU: 0x4, PL: 0, VF: 1\n\nBacktrace (CPU 4), Frame : Return Address\n0xffffff8e2e8fb650 : 0xffffff801493bb1b mach_kernel : _handle_debugger_trap + 0x47b\n0xffffff8e2e8fb6a0 : 0xffffff8014a733e5 mach_kernel : _kdp_i386_trap + 0x155\n0xffffff8e2e8fb6e0 : 0xffffff8014a64e5e mach_kernel : _kernel_trap + 0x4ee\n0xffffff8e2e8fb730 : 0xffffff80148e2a40 mach_kernel : _return_from_trap + 0xe0\n0xffffff8e2e8fb750 : 0xffffff801493b207 mach_kernel : _DebuggerTrapWithState + 0x17\n0xffffff8e2e8fb850 : 0xffffff801493b5eb mach_kernel : _panic_trap_to_debugger + 0x21b\n0xffffff8e2e8fb8a0 : 0xffffff80150d24f9 mach_kernel : _panic + 0x61\n0xffffff8e2e8fb910 : 0xffffff8014a6520a mach_kernel : _sync_iss_to_iks + 0x2aa\n0xffffff8e2e8fba90 : 0xffffff8014a64f08 mach_kernel : _kernel_trap + 0x598\n0xffffff8e2e8fbae0 : 0xffffff80148e2a40 mach_kernel : _return_from_trap + 0xe0\n0xffffff8e2e8fbb00 : 0x0 \n0xffffff8e2e8fbc50 : 0xffffff7f95a29fbe com.apple.driver.usb.AppleUSBUHCI : __ZN16AppleUSBUHCIPort11getPortTypeEv + 0x1a\n0xffffff8e2e8fbc70 : 0xffffff7f95a29f4c com.apple.driver.usb.AppleUSBUHCI : __ZN16AppleUSBUHCIPort18getPortStatusGatedERj + 0x16\n0xffffff8e2e8fbc90 : 0xffffff80150421a8 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138\n0xffffff8e2e8fbcf0 : 0xffffff7f95594a4d com.apple.iokit.IOUSBHostFamily : __ZN16AppleUSBHostPort13getPortStatusEv + 0x4b\n0xffffff8e2e8fbd10 : 0xffffff7f95594a8a com.apple.iokit.IOUSBHostFamily : __ZN16AppleUSBHostPort17interruptOccurredEP22IOInterruptEventSourcei + 0x34\n0xffffff8e2e8fbd90 : 0xffffff7f95a29ec7 com.apple.driver.usb.AppleUSBUHCI : __ZN16AppleUSBUHCIPort17interruptOccurredEP22IOInterruptEventSourcei + 0x11ab\n0xffffff8e2e8fbe20 : 0xffffff8015040ccd mach_kernel : __ZN22IOInterruptEventSource12checkForWorkEv + 0x17d\n0xffffff8e2e8fbe70 : 0xffffff7f9558b120 com.apple.iokit.IOUSBHostFamily : __ZN29IOUSBPortInterruptEventSource17checkForWorkGatedEv + 0x12e\n0xffffff8e2e8fbec0 : 0xffffff80150421a8 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138\n0xffffff8e2e8fbf20 : 0xffffff7f9558afe5 com.apple.iokit.IOUSBHostFamily : __ZN29IOUSBPortInterruptEventSource12checkForWorkEv + 0x2d\n0xffffff8e2e8fbf30 : 0xffffff801503f612 mach_kernel : __ZN10IOWorkLoop15runEventSourcesEv + 0x192\n0xffffff8e2e8fbf70 : 0xffffff801503eb9c mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x2c\n0xffffff8e2e8fbfa0 : 0xffffff80148e213e mach_kernel : _call_continuation + 0x2e\n Kernel Extensions in backtrace:\n com.apple.iokit.IOUSBHostFamily(1.2)[C0C182A7-012B-3484-8AE0-5C383BD3EDB1]@0xffffff7f9556f000->0xffffff7f95667fff\n dependency: com.apple.driver.AppleBusPowerController(1.0)[47522661-FFD4-378B-B5C1-F68D05AC6F7D]@0xffffff7f95555000\n dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[9A875EBB-4432-3A19-A58B-1DD5A1067EAC]@0xffffff7f9555d000\n dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[B28E651B-348A-3884-B27A-A87B110E037C]@0xffffff7f9556b000\n com.apple.driver.usb.AppleUSBUHCI(1.2)[CC974981-38D3-39AB-93BC-07CF7FE4DA07]@0xffffff7f95a20000->0xffffff7f95a41fff\n dependency: com.apple.driver.usb.AppleUSBEHCI(1.2)[CEBDD3A9-BC15-3F9B-89BC-01C51AA914A8]@0xffffff7f95852000\n dependency: com.apple.iokit.IOUSBHostFamily(1.2)[C0C182A7-012B-3484-8AE0-5C383BD3EDB1]@0xffffff7f9556f000\n dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[9A875EBB-4432-3A19-A58B-1DD5A1067EAC]@0xffffff7f9555d000\n\nBSD process name corresponding to current thread: kernel_task\nBoot args: -v keepsyms=1 -liludbgall liludump=10 debug=0x144 -no_compat_check -wegtree shikigva=64 shiki-id=Mac-7BA5B2D9E42DDD94\n\nMac OS version:\nNot yet set\n\nKernel version:\nDarwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20\/RELEASE_X86_64\nKernel UUID: C3E7E405-C692-356B-88D3-C30041FD1E72\nKernel slide: 0x0000000014600000\nKernel text base: 0xffffff8014800000\n__HIB text base: 0xffffff8014700000\nSystem model name: MacPro5,1 (Mac-F221BEC8)\nSystem shutdown begun: NO\nPanic diags file available: NO (0xe00002bc)\n\nSystem uptime in nanoseconds: 13002188962\n\n\n"}

As you can see the offending kexts are :
com.apple.iokit.IOUSBHostFamily(1.2)
com.apple.driver.usb.AppleUSBCommon(1.0)
com.apple.driver.usb.AppleUSBUHCI(1.2)
com.apple.driver.AppleBusPowerController
com.apple.driver.usb.AppleUSBUHCI and so on...

If you ever installed dosdude's patch you would have noticed that by default it comes with USB patches for the cMP5,1 (optional but suggested). It looks like without those patches spoofing SMBIOS to iMac Pro on dual CPU's with removed MCEreporter continues panicking.
 

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
No, the video is pure red
With shikigva=64 and SMBIOS spoofing I got
true = $1
And the Netflix does not redirect me to HTML5, but it shows black screen:
Code:
Boot args: -v keepsyms=1 -liludbgall liludump=10 debug=0x144 -no_compat_check -wegtree shikigva=64 shiki-id=Mac-7BA5B2D9E42DDD94
 

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
With shikigva=96 and SMBIOS spoofing I got
false = $1
And the Netflix does not redirect me to HTML5, but it shows black screen
shikigva=448 and SMBIOS spoofing I got
true = $1
And the Netflix does not redirect me to HTML5, but it shows black screen
 
  • Like
Reactions: h9826790

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
Code:
-v keepsyms=1 -liludbgall liludump=10 debug=0x144 -no_compat_check -wegtree shikigva=32 shiki-id=Mac-7BA5B2D9E42DDD94
No SMBIOS spoofing, full HEVC decoding in FCPX, Quicktime and VLC. Black screen in Netflix.
false = $1
 
  • Like
Reactions: h9826790

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
Code:
-v keepsyms=1 -liludbgall liludump=10 debug=0x144 -no_compat_check -wegtree shikigva=288 shiki-id=Mac-7BA5B2D9E42DDD94
Same results as shikigva=32
Not sure what is 256 option supposed to change.
 
  • Like
Reactions: h9826790

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
Quick update on my testings:
Same setup does not perform the same way in Mojave. Safari still redirects to HTML in Netflix and FCPX uses CPU for decoding.
 

startergo

macrumors 603
Sep 20, 2018
5,021
2,283
shikigva=16 plays TV+ (DRM2.x) video but breaks HEVC decoding. 32, 96, 224, 480 HEVC decoding+ DRM1.x
shikigva=48 = Kernel Panic
 
  • Like
Reactions: h9826790

edgerider

macrumors 6502
Apr 30, 2018
281
149
it would be so sweet if @dosdude1 could do some black magic and adress that in his next catalina patcher!
Because I am a noob don’t really get why all those magician such as @tsialex , @dosdude1, @netkas @macvidcard and many more genius like this just built a company, work together and charge people like me for a pacher that adresses everything...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.