Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yellow screen in WhateverGreen on Ryzen systems when mtrr_update_action (fix PAT) is disabled #1137

Closed
memegauste opened this issue Sep 7, 2020 · 6 comments
Labels
invalid This doesn't seem right

Comments

@memegauste
Copy link

memegauste commented Sep 7, 2020

Hiya, I use OpenCore 0.6.0 (yes, I know I will test today release too) and we finally found culpirit in GPU performance on Ryzentoshes, the problem is in old patch called algrey - mtrr_update_action - fix PAT.
Also I know I shouldn't describe issue here, but maybe it fits and can be fixable in WhateverGreen.
image
image

So, basically this patch probably breaks MTRR caching causing some desync beetwen threads and slowdowns perf even about 500%:
AMD-OSX/bugtracker#5

BUT, if we disable the patch, people on discord (and me) are getting black screen, and after minute or two it becomes yellow (on system boot/startup). For some reason (probably not all) TRX40 systems does not need this patch anyway which was confirmed by Pavo-IM (this is why we know that this is the problem).
We are not sure what causes the yellow screen, so I will try to post logs when I will come to home from work. If this is not fixable in kexts/OC we gonna investigate patches probably.

AMD OSX patches:
https://github.com/AMD-OSX/AMD_Vanilla/blob/opencore/17h/patches.plist

Specific patch HEX override corresponds to:
image
image

Resources:
https://en.wikipedia.org/wiki/Memory_type_range_register
https://forums.developer.nvidia.com/t/mtrr-performance-gains-are-impressive-but-hard-to-achieve/31931
https://askubuntu.com/questions/48283/poor-graphics-performance-due-to-wrong-mtrr-settings

@memegauste
Copy link
Author

memegauste commented Sep 7, 2020

opencore-2020-09-07-133725.txt
opencore-2020-09-07-133418.txt
opencore-2020-09-07-133156.txt
opencore-2020-09-07-132933.txt
opencore-2020-09-07-132616.txt
opencore-2020-09-07-132354.txt

This are my log files after disabling/enabling various options in BIOS, including:

  • Changing CSM to UEFI and otherwise
  • Disabling/Enabling IOMMU, NX Pages and AMD-SVM
  • Enabling Above 4G CryptoMining
  • Changing GPU connection from/to Gen 2 from/to Gen 3

Not really sure which options are connected to which log, first log (see date in filename) is from my default config. Seems that errors are similar, everything is about GV wake failure.

My setup:

  • r5 3600
  • rx5700 XT
  • MSI B450-A PRO MAX
  • 3200mhz ddr4 16GB of RAM
  • macOS Catalina not Big Sur

@memegauste
Copy link
Author

opencore-2020-09-07-172256.txt

Log from 0.6.1

@tomnic79
Copy link

tomnic79 commented Sep 8, 2020

Hi HoshiYamazaki, I can boot when mtrr_update_action (fix PAT) is disabled (3950X with ASRock X570 Steel Legend) I need to wait some minutes to have a usable GUI and get some graphical glitches, but OpenGL test in Cinebench 15 went up at 130 fps as in proxmox, Minecraft works at 300 fps, just like in proxmox... this is the right direction to investigate!!!

@tomnic79
Copy link

tomnic79 commented Sep 8, 2020

IMG_20200908_144743

@tomnic79
Copy link

tomnic79 commented Sep 8, 2020

IMG_20200908_142534
1

@Andrey1970AppleLife
Copy link
Contributor

We don't support AMD CPU, though we empathy with its problems.

@Andrey1970AppleLife Andrey1970AppleLife added the invalid This doesn't seem right label Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Development

No branches or pull requests

3 participants