ChefKissInc / NootRX

The rDNA 2 dGPU support patch kext. No commercial use.
https://chefkissinc.github.io/applehax/nootrx/
Other
595 stars 110 forks source link

No Signal Past Userspace Handoff | RESOLVED #57

Closed pmnlla closed 6 months ago

pmnlla commented 6 months ago

macOS Version

Sonoma

What is your CPU's model?

AMD Ryzen 7 5800X3D

What is your GPU's model?

AMD Radeon RX 6700 XT Reference

Please describe the behaviour in detail.

Continuation of #55. It would be better to document it here rather than as a discussion.

When using NootRX and booting MacOS Sonoma 14.4.1, after the kernel's verbose logging, the GPU outputs no signal. This occurs no matter what input is used, DP or HDMI.

My config.plist is attached. Please note that, as of now, I am using whatevergreen and swapping GPUs to an RX 580 whenever I need to use MacOS. However, I do not use NootRX and whatevergreen at the same time. This is known to cause problems There are no other changes to the EFI. If it's required to rebuild and retest with NootRX, let me know.

Steps I've done to attempt to remedy the situation:

What should've happened instead?

MacOS should be booting past the kernel-userspace handoff, and displaying the login interface.

If applicable, attach the .gpuRestart, .panic, etc file related to this issue.

No response

Bug report submission terms

VisualEhrmanntraut commented 6 months ago

rip

pmnlla commented 6 months ago

fym rip 💀

hg13bs commented 6 months ago

@pmnlla I don't think you need this section in your DeviceProperties fr

   <dict>
    <key>framebuffer-con0-type = 00080000</key>
    <data>AAgAAA==</data>
    <key>framebuffer-con2-type = 00080000</key>
    <string>00080000</string>
    <key>framebuffer-con1-type = 00080000</key>
    <string>00080000</string>
   </dict>
pmnlla commented 6 months ago

That got it! Thanks @hg13bs! But now my card is detected as a Navi 23 card and I don't have hardware accel. Victorious About This Mac prompt attached.

Screenshot 2024-05-20 at 1 16 38 PM

hg13bs commented 6 months ago

@pmnlla do you have NootRX kext? and remove WhateverGreen.kext if still there

VisualEhrmanntraut commented 6 months ago

@pmnlla this config does not have NootRX but WhateverGreen instead in it

Screenshot 2024-05-20 at 20 19 20
pmnlla commented 6 months ago

@pmnlla this config does not have NootRX but WhateverGreen instead in it

Screenshot 2024-05-20 at 20 19 20

Mentioned this already. I'm using nootRX right now. Will upload nrx config.

pmnlla commented 6 months ago

config (2).zip @VisualEhrmanntraut @hg13bs Here's the config with nootRX.

VisualEhrmanntraut commented 6 months ago

@pmnlla are you sure ALL your kexts are up to date

pmnlla commented 6 months ago

I'm fairly sure the kexts are up to date. image

VisualEhrmanntraut commented 6 months ago

WhateverName.app isn't a kext. Also, I suggest you remove AMDRCPUPM and SMCAMDP because they cause issues with clock speeds amongst other things, see https://chefkissinc.github.io/guide/guide-differences#amdryzencpupowermanagement-and-smcamdprocessor.

pmnlla commented 6 months ago

WhateverName is there so I remember where it was and don't go looking for it hysterically once I have usb stuff set up. AMDCPUPM and SMCAMDP are removed now. Will reboot and test.

VisualEhrmanntraut commented 6 months ago

WhateverName is not useful for us, you can just throw it to the bin.

pmnlla commented 6 months ago

Yup, it's gone. Regardless, acceleration still isn't here. Should I try the adgpmod flags again?

hg13bs commented 6 months ago

@pmnlla lol those flags don't exist in NootRX per what Visual said

VisualEhrmanntraut commented 6 months ago

No, as I've mentioned in prior discussions this boot argument does not exist in NootRX as I strive for a Drag&Drop experience. Can you tell me which device ID your card has? I don't think anyone has tested a reference card with the kext.

pmnlla commented 6 months ago

That's what I was thinking. But I'm desperate enough to try them again. IIRC NootRX automatically deals with that graphics stuff, whereas WhateverGreen required these flags be explicitly specified.

pmnlla commented 6 months ago

No, as I've mentioned in prior discussions this boot argument does not exist in NootRX as I strive for a Drag&Drop experience. Can you tell me which device ID your card has? I don't think anyone has tested a reference card with the kext.

Yep. Can I do it through macOS with Hackintool?

VisualEhrmanntraut commented 6 months ago

Maybe?

pmnlla commented 6 months ago

Worth a shot. Worst case scenario I'll do it through Windows.

VisualEhrmanntraut commented 6 months ago

You can always look at the IOKit registry, either with Apple's IORegistryExplorer, IOBrowser or the built-in ioreg tool

pmnlla commented 6 months ago

PCI\VEN_1002&DEV_73DF&SUBSYS_0E361002&REV_C1 - what Windows Device Manager gave me under Hardware IDs. What else should I search for?

VisualEhrmanntraut commented 6 months ago

0x73DF is indeed the Navi 22 device ID. Don't see why your acceleration doesn't work, in that case.

VisualEhrmanntraut commented 6 months ago

Hmm... how about you disable AppleALC and AirportItlwm just as a test?

pmnlla commented 6 months ago

Let's give that a shot.

pmnlla commented 6 months ago

Nada. Still no acceleration. Let me try to boot to the Ventura installer to see if that one works. I don't recall many breaking changes between Ventura and Sonoma though.

VisualEhrmanntraut commented 6 months ago

The installer has no graphical acceleration, that's Apple's design choice. Let's try an older version of NootRX instead.

VisualEhrmanntraut commented 6 months ago

@pmnlla try this build https://github.com/ChefKissInc/NootRX/actions/runs/8771044723/artifacts/1432956986

pmnlla commented 6 months ago

Will do. What build are you thinking?

pmnlla commented 6 months ago

Didn't help. Tried an nvram reset on the way too.

VisualEhrmanntraut commented 6 months ago

Okay, let's go another commit behind: https://github.com/ChefKissInc/NootRX/actions/runs/8490422295/artifacts/1371441675

pmnlla commented 6 months ago

Nada. Do you mind unbanning me from the telegram chat, so we can go through this troubleshooting while keeping this issue clean? I personally don't mind documenting it here but I figured I'd ask regardless.

My gut feeling is that there's some kind of fallback occurring that's forcing use of an integrated GPU which doesn't exist. But I haven't seen anyone reference that as an occurrence in macOS.

VisualEhrmanntraut commented 6 months ago

nah that's not happening. Is your motherboard's firmware up to date? Did you disable CSM/Legacy Boot?

pmnlla commented 6 months ago

Fair enough. Mobo firmware is up to date, and CSM is disabled. I do have a custom driver installed to force rebar on Turing cards, but I doubt that's interfering here.

VisualEhrmanntraut commented 6 months ago

RBAR? If you have that enabled in the motherboard's settings, macOS does not play well with that at all.

pmnlla commented 6 months ago

RBAR is disabled, actually. I used to have it enabled, then disabled it because I doubt I need it as of now. Don't I need a specific boot flag to tell macOS it's disabled enough?

VisualEhrmanntraut commented 6 months ago

Above 4G Decoding is not Resizable BAR, although enabling the former can enable the latter. Also, npci cannot be used with Above 4G and if you have Resizable BAR enabled you need to set ResizeAppleGpuBars to 0

pmnlla commented 6 months ago

Above 4G doesn't appear in my bios settings, although RBAR does. RBAR is disabled. I'm guessing it means Above 4G is disabled too?

VisualEhrmanntraut commented 6 months ago

That likely means it's force enabled, so you should try without the npci boot arg.

pmnlla commented 6 months ago

Will try.

pmnlla commented 6 months ago

Frozen on PCIe Configuration Begin.

VisualEhrmanntraut commented 6 months ago

Try in addition enabling ReBAR and setting ResizeAppleGpuBars to 0

pmnlla commented 6 months ago

Was just about to. Will report with results.

pmnlla commented 6 months ago

Zilch.

VisualEhrmanntraut commented 6 months ago

🤷🏼‍♂️ the only next troubleshooting steps I have in mind now is to debug the driver, however I am too tired for that, maybe tomorrow. Maybe @hg13bs or someone else watching has any ideas.

pmnlla commented 6 months ago

All good. Will have a look at the amd-osx discord. Let me know if you wanna debug it anytime soon.

pmnlla commented 6 months ago

Came up with an idea. since macOS seems to be incorrectly detecting my card, should I try to spoof it to another PCIe ID? maybe 73ce?

pmnlla commented 6 months ago

Rude 💀