Ryzen 7000 Testing

mariettosun

Well-known member
AMD OS X Member
Joined
Oct 9, 2022
Messages
465

mariettosun

Well-known member
AMD OS X Member
Joined
Oct 9, 2022
Messages
465
1669920189982.png

@CaseySJ beta 4 on ...Aquantia works still well :)
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
** Compact Version of Aquantia Driver Patches **

Description:
We can use the six previously-listed driver patches or we can make use of OpenCore's Mask and ReplaceMask features to reduce the number of patches to simply two. Only one set of patches should be applied, and we can use either the full set of 6 or the compact set of 2.

The compact driver patches are listed below and have also been added to the bottom of the original driver post.

Patch 1: Fix alloc_dma_buffer
  • Arch: x86_64
  • Identifier: com.apple.driver.AppleEthernetAquantiaAqtion
  • Comment: CaseySJ - Fix alloc_dma_buffer
  • Find: 4C89E741 B8030000 00
  • Replace: 4C89F741 B8130000 00
  • Mask: FFFFE7FF FFFFFFFF FF
  • ReplaceMask: 00000000 00100000 00
  • MinKernel: 21.0.0
  • MaxKernel: 22.99.99
  • Count: 3
  • Enabled: True
Patch 2: Fix IOBufferMemoryDescriptor::withOptions
  • Arch: x86_64
  • Identifier: com.apple.driver.AppleEthernetAquantiaAqtion
  • Comment: CaseySJ - Fix IOBufferMemoryDescriptor::withOptions
  • Find: BA000000 00BF0000 0000
  • Replace: BA000200 00BF1300 0000
  • Mask: FFFF00FF FFFFF0FF FFFF
  • ReplaceMask: 00000000 00001000 0000
  • MinKernel: 21.0.0
  • MaxKernel: 22.99.99
  • Count: 3
  • Enabled: True
 

DarkSilentSC

Active member
AMD OS X Member
Joined
Jun 4, 2021
Messages
122
** Compact Version of Aquantia Driver Patches **

Description:
We can use the six previously-listed driver patches or we can make use of OpenCore's Mask and ReplaceMask features to reduce the number of patches to simply two. Only one set of patches should be applied, and we can use either the full set of 6 or the compact set of 2.

The compact driver patches are listed below and have also been added to the bottom of the original driver post.

Patch 1: Fix alloc_dma_buffer
  • Arch: x86_64
  • Identifier: com.apple.driver.AppleEthernetAquantiaAqtion
  • Comment: CaseySJ - Fix alloc_dma_buffer
  • Find: 4C89E741 B8030000 00
  • Replace: 4C89F741 B8130000 00
  • Mask: FFFFE7FF FFFFFFFF FF
  • ReplaceMask: 00000000 00100000 00
  • MinKernel: 21.0.0
  • MaxKernel: 22.99.99
  • Count: 3
  • Enabled: True
Patch 2: Fix IOBufferMemoryDescriptor::withOptions
  • Arch: x86_64
  • Identifier: com.apple.driver.AppleEthernetAquantiaAqtion
  • Comment: CaseySJ - Fix IOBufferMemoryDescriptor::withOptions
  • Find: BA000000 00BF0000 0000
  • Replace: BA000200 00BF1300 0000
  • Mask: FFFF00FF FFFFF0FF FFFF
  • ReplaceMask: 00000000 00001000 0000
  • MinKernel: 21.0.0
  • MaxKernel: 22.99.99
  • Count: 3
  • Enabled: True
Confirmed yet again!
 

mariettosun

Well-known member
AMD OS X Member
Joined
Oct 9, 2022
Messages
465
Aquantia Compact driver Patches work!
Thank you @CaseySJ

Attached a plist file with Aquantia Compact driver Patches

Edit:
added in latest OCAT's app commit
1669973307377.png
 

Attachments

  • Aquantia Compact Patches.plist.zip
    1.2 KB · Views: 12
Last edited:

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Interim Update #20:
  • In our quest to develop a patch for the Aquantia 10GbE driver, we discovered what makes the new generation driver dependent on VT-d
  • This may enable us to patch other drivers that behave or are implemented the same way
  • OpenCore 0.8.7 is due to be formally released this coming Monday, and will include the TSC/FSB fix for AMD CPUs and APUs
  • The next formal release of OCAT (OpenCore Auxiliary Tools) will be able to insert latest AMD-OSX and Aquantia patches from a simple right-click menu
  • One known issue with Aquantia 10GbE is the inability for various (not all) AMD and Intel hacks to enter and maintain sleep state when a cable is connected to the port
  • Not sure whether we can find a solution for this, but we should probably give it a try
 
Last edited:

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Asus released BIOS 0805 a couple of weeks ago. We were too busy to notice. :)
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
Anyone up to trying to fix microphones with AppleALC on AMD machines? We know that:
  • The microphone shows up as an Input Device, but it doesn't receive any input.
  • The microphone works with the inferior audio driver VoodooHDA.

I have tried to make a custom AppleALC layout, but I'm not sure if I did it right. I can attach my motherboard's sound schematic image.
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Anyone up to trying to fix microphones with AppleALC on AMD machines? We know that:
  • The microphone shows up as an Input Device, but it doesn't receive any input.
  • The microphone works with the inferior audio driver VoodooHDA.

I have tried to make a custom AppleALC layout, but I'm not sure if I did it right. I can attach my motherboard's sound schematic image.
Sure — let’s take a look at this issue.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843

Attachments

  • Gigabyte_B450M_DS3H_AUDIO.zip
    37.5 KB · Views: 7

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
If you open a new thread in Ventura post-installation support and provide all the relevant details including the troubleshooting steps you've taken, then we can follow-up with you there.
 

hvv_

Member
AMD OS X Member
Joined
Sep 8, 2022
Messages
30
Very nice work @CaseySJ you are truly a god, but which patch of Aquantia do I use best the long or the short? Is there a difference between the two? I personally don't think there is but wanted to ask just to be sure?
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Very nice work @CaseySJ you are truly a god, but which patch of Aquantia do I use best the long or the short? Is there a difference between the two? I personally don't think there is but wanted to ask just to be sure?
I was wondering when that question would arise!

The 6 patches target 4 specific functions, and each of those functions is fairly small. This means there are fewer bytes for OpenCore to search through. So four functions are searched a total of 6 times (two functions are searched twice, and the other two are searched once).

The compact patches do not target (and cannot target) a specific function because 4 functions are affected. So OpenCore has to begin searching from the first byte of the driver until it finds 3 instances of the first patch and makes the replacement. Then it starts again for the second compact patch and stops when 3 replacements have been made.

If the last replacement occurs near the end of the file then of course a lot more bytes had to be searched. If the last replacement occurs closer to the beginning of the file then fewer total bytes have to be searched.

I haven’t done the math to determine which of the two sets is more computationally expensive…

I personally prefer the 6 patches because they target very specific parts of the driver and are more likely to remain compatible with newer versions of the driver. But the compact patches have a beauty all their own.

So there you have it — decisions, decisions.
 

backinblackx86

Member
AMD OS X Member
Joined
Nov 10, 2022
Messages
56
Sounds about time for me to build another AM5, specifically for MacOS use
 

hvv_

Member
AMD OS X Member
Joined
Sep 8, 2022
Messages
30
@CaseySJ wouldn't it be a good idea to create a Github repo with patches in PLIST format and so on or is that already there?
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Here are my files, let me know if you have any ideas.
After parsing through codec_dump, here are some manually extracted verbs and path maps:

Green Line Out on Rear I/O Panel
  • Node 0x14
  • Original Pin Config: 10400101
  • Modified Pin Config: 10400100
  • Has EAPD
  • Verbs:
    • 01471C10
    • 01471D40
    • 01471E01
    • 01471F00
    • 01470C02
Pink Mic In on Rear I/O Panel
  • Node 0x18
  • Original Pin Config: 4090A101
  • Modified Pin Config: 4090A190 Update: Should be 4090A090
  • Verbs:
    • 01871C40
    • 01871D90
    • 01871EA0
    • 01871F90
Pink Mic In on Front Panel of Case
  • Node 0x19
  • Original Pin Config: 5090A102
  • Modified Pin Config: 5090A102 Update: May need to change A1 to 81
  • Verbs:
    • 01971C50
    • 01971D90
    • 01971EA1
    • 01971F02
Blue Line In on Rear I/O Panel
  • Node 0x1A
  • Original Pin Config: 4F308101
  • Modified Pin Config: 20308101
  • Verbs:
    • 01A71C20
    • 01A71D30
    • 01A71E81
    • 01A71F01
Green Line Out on Front Panel of Case
  • Node 0x1B
  • Original Pin Config: 20402102
  • Modified Pin Config: 30402102
  • Has EADP
  • Verbs:
    • 01B71C30
    • 01B71D40
    • 01B71E21
    • 01B71F02
    • 01B70C02

Audio Output Path Maps:
  • 0x14 --> 0x0C --> 0x02
  • 0x1B --> 0x0F --> 0x05
Audio Input Path Maps:
  • 0x08 --> 0x23 --> 0x18
  • 0x08 --> 0x23 --> 0x1A
  • 0x08 --> 0x22 --> 0x19
 
Last edited:

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
After parsing through codec_dump, here are some manually extracted verbs and path maps:

Green Line Out on Rear I/O Panel
  • Node 0x14
  • Original Pin Config: 10400101
  • Modified Pin Config: 10400100
  • Has EAPD
  • Verbs:
    • 01471C10
    • 01471D40
    • 01471E01
    • 01471F00
    • 01470C02
Pink Mic In on Rear I/O Panel
  • Node 0x18
  • Original Pin Config: 4090A101
  • Modified Pin Config: 4090A190
  • Verbs:
    • 01871C40
    • 01871D90
    • 01871EA1
    • 01871F90
Pink Mic In on Front Panel of Case
  • Node 0x19
  • Original Pin Config: 5090A102
  • Modified Pin Config: 5090A102 (no change)
  • Verbs:
    • 01971C50
    • 01971D90
    • 01971EA1
    • 01971F02
Blue Line In on Rear I/O Panel
  • Node 0x1A
  • Original Pin Config: 4F308101
  • Modified Pin Config: 20308101
  • Verbs:
    • 01A71C20
    • 01A71D30
    • 01A71E81
    • 01A71F01
Green Line Out on Front Panel of Case
  • Node 0x1B
  • Original Pin Config: 20402102
  • Modified Pin Config: 30402102
  • Has EADP
  • Verbs:
    • 01B71C30
    • 01B71D40
    • 01B71E21
    • 01B71F02
    • 01B70C02

Audio Output Path Maps:
  • 0x14 --> 0x0C --> 0x02
  • 0x1B --> 0x0F --> 0x05
Audio Input Path Maps:
  • 0x08 --> 0x23 --> 0x18
  • 0x08 --> 0x23 --> 0x1A
  • 0x08 --> 0x22 --> 0x19
Honestly, I have no idea what these mean, would it be possible to send a compiled AppleALC to test? After we get it working, I'd like knowing how it works as well if that's good with you. :)
 

CaseySJ

Guru
Guru
Donator
Joined
May 10, 2020
Messages
1,265
Honestly, I have no idea what these mean, would it be possible to send a compiled AppleALC to test? After we get it working, I'd like knowing how it works as well if that's good with you. :)
Attached is a first test build of AppleALC 1.7.7 that includes a new Layout 15 for the ALC887-VD in Gigabyte B450M DS3H. Verbs and Path Maps from my previous post were used, which means this layout is implemented as follows:
  • It supports green Line Out on rear I/O and front panel of case
  • It supports pink Microphone In on rear IO and front panel of case
  • It supports blue Line In on rear IO
  • It assumes auto-sensing is available between rear and front Line Out (headphone)
  • It assumes auto-sensing is available between rear and front Microphone Input
  • Boot argument alcid=15 is need
Because this is a first test build, let's keep expectations low!!

— file deleted due to issue found in Layout15.xml —
 
Last edited:
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.