Ryzen 7000 Testing

fabiosun

Guru
Guru
AMD OS X Member
Joined
Oct 9, 2022
Messages
470

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
yep I misunderstood from a link given on AMD discord (I meant about the genesis of that boot arg)
We described all of those boot args here:

kIOPCIConfiguratorDefaultETF is the second one from the end of the list.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
Shaneee merged it, can you do one final test to make sure it works fine?
It is 2:50am — just sipping my morning coffee in front of the fireplace. My Zen moment before the world around me wakes up. :)

Will retest soon.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269

fabiosun

Guru
Guru
AMD OS X Member
Joined
Oct 9, 2022
Messages
470
@CaseySJ @ExtremeXT

some users using clover boot loader and MSI board could benefit of your work
1668510595625.png

if you have no objection I would like to put the patch in the Clover AMD Vanilla patches repo
Patch also works fine in Clover boot loader

Code:
17:514  0:001  OC: Prelinked patch [1] com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)
17:516  0:001  Replace E6117206 by E6117306 at ofs:7289
17:532  0:015  OCAK: 64-bit com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0) replace count - 1
17:533  0:001  OC: Prelinked patcher result 1 for com.apple.iokit.IOPCIFamily (com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)) - Success

thanks
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
@CaseySJ @ExtremeXT

some users using clover boot loader and MSI board could benefit of your work
View attachment 8291

if you have no objection I would like to put the patch in the Clover AMD Vanilla patches repo
Patch also works fine in Clover boot loader

Code:
17:514  0:001  OC: Prelinked patch [1] com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)
17:516  0:001  Replace E6117206 by E6117306 at ofs:7289
17:532  0:015  OCAK: 64-bit com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0) replace count - 1
17:533  0:001  OC: Prelinked patcher result 1 for com.apple.iokit.IOPCIFamily (com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)) - Success

thanks
I have no problem, if Casey agrees you can PR it to the repo, don't forget to edit the README as well.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
It shouldn't be needed for the 4 byte patch.
There’s a higher chance of conflict with future macOS updates as the number of “Find” bytes decreases. Adding ‘base’ reduces those chances. It also allows OpenCore to jump quickly to the base function (via symbol map in binary file), hence faster.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
@CaseySJ @ExtremeXT

some users using clover boot loader and MSI board could benefit of your work
View attachment 8291

if you have no objection I would like to put the patch in the Clover AMD Vanilla patches repo
Patch also works fine in Clover boot loader

Code:
17:514  0:001  OC: Prelinked patch [1] com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)
17:516  0:001  Replace E6117206 by E6117306 at ofs:7289
17:532  0:015  OCAK: 64-bit com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0) replace count - 1
17:533  0:001  OC: Prelinked patcher result 1 for com.apple.iokit.IOPCIFamily (com.apple.iokit.IOPCIFamily (CaseySJ - probeBusGated Disable 10 bit tags - 12.0/13.0)) - Success

thanks
No objection from me either.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
There’s a higher chance of conflict with future macOS updates as the number of “Find” bytes decreases. Adding ‘base’ reduces those chances. It also allows OpenCore to jump quickly to the base function (via symbol map in binary file), hence faster.
PR that to the repo and ping Shaneee.
 

backinblackx86

Member
AMD OS X Member
Joined
Nov 10, 2022
Messages
56
smashing
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
Has anyone been able to inject this in Ventura? I'm still trying, but no success so far.
Yes, it should work by just injecting it with OpenCore.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
Yes, it should work by just injecting it with OpenCore.
The I225 device got disabled when I tried this yesterday. Will give it another go shortly.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
The Gigabyte AM5 user whom I posted the screenshot a few pages back has an ALC897 codec instead of ALC4080 (USB audio) and their audio is 99% perfect with Speedkeeper, I wonder if it's related to the USB audio.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
The I225 device got disabled when I tried this yesterday. Will give it another go shortly.
Unfortunately no success with AppleIntelI210Ethernet in Ventura. I've tried:
  • Raising Probe Score to 4000 (DriverKit-AppleEthernetE2000 is 3000)
  • Using e1000=0
  • Using device-id = 0xF3158680
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
The Gigabyte AM5 user whom I posted the screenshot a few pages back has an ALC897 codec instead of ALC4080 (USB audio) and their audio is 99% perfect with Speedkeeper, I wonder if it's related to the USB audio.
It's 99% perfect with SpeedKeeper on this system as well. That's what I mean when I say audio from all sources is virtually perfect when SpeedKeeper is enabled.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
It's 99% perfect with SpeedKeeper on this system as well. That's what I mean when I say audio from all sources is virtually perfect when SpeedKeeper is enabled.
Could you record a sample coming from the internal audio with and without Speedkeeper?
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,269
About audio, I found this in an old custom kernel for High Sierra (Screenshot 1). My idea would be to either:
1. Make a kext that calculates the TSC and FSB Frequency values
2. Find an easy way to get these values from the OS and make a script that calculates them. With the proper values, the user can manually input these values into the InitialTSC and FSBFrequency fields in the config.plist
I am positive that it would work if done properly, since it seems to be the same problem as on AMD APUs.
...

With PCI issues resolved, now seems like a good time to reopen the audio discussion.

Let's consider various strategies for tackling this problem before we embark on any particular strategy.

If we agree that obtaining correct FSB and TSC frequencies is the key, then the first few questions are:
  • Should we discount or ignore the frequencies reported by sysctl -a | grep tsc and sysctl -a | grep freq ?
  • Should we discount or ignore the frequencies reported in OpenCore boot log?
  • If we cannot trust the values from both sysctl and OpenCore, how can we still get reliable or usable values from the OS?
  • What parameters would we need to obtain from the OS that will allow us to calculate TSC and FSB frequencies?
 
Back
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.