Welcome to AMD OS X

Why not register now to gain full access.

Tutorials for the installation and post install.
User avatar
by: tikizondo94
#41369
ydeng wrote: Mon Jun 18, 2018 9:48 pm
tikizondo94 wrote:Excellent work finding this! Worked perfect on my x370 Gigabyte board. All usb 2.0, 3.0 and 3.1 ports seem to be working correctly now. And showing in system profiler. Much appreciated :)
tikizondo94 wrote:Excellent work finding this! Worked perfect on my x370 Gigabyte board. All usb 2.0, 3.0 and 3.1 ports seem to be working correctly now. And showing in system profiler. Much appreciated :)
What is your ioreg and dsdt? I get invalid opcode when I try this on x399 board?
Send me a copy of your DSDT and ioreg. Let me see what i can do...

 Advertising

User avatar
by: AlGrey
#41373
@Shaneee, bad news.. After mapping the ports in W10 with RW utility, I found that POT 1 and POT 2 are SS ports for POT5 and POT6 (HS ports). Same for PRT5 to PRT8 which are the SS ports to PRT1 - PRT4 (that explains why I see the unsupported 3.1 protocol error in verbose).
Post Merged
well that's a bit of progress, we see the 3.0 and 2.0 entry now ..but devices are not working (unlike the USB port on the case)
Post Merged
Maybe my USB hub is not detecting the devices properly like in the USB port on the case (POT6), but my 3.0 USB to SATA drive is detected fine when directly plugged in the PRT1-4/5-8 ports.
Post Merged
@Shaneee, actually I had 3.0 speed on rear ports for the pci1022,145c from the beginning with the patch. It's just my hub that doesn't want to work properly in the four ports.
Attachments
usb map.png
usb map.png (343.78 KiB) Viewed 773 times
Screen Shot 2018-06-23 at 8.17.33 PM.png
Screen Shot 2018-06-23 at 8.17.33 PM.png (342.69 KiB) Viewed 773 times
Screen Shot 2018-06-23 at 7.59.25 PM.png
Screen Shot 2018-06-23 at 7.59.25 PM.png (412.36 KiB) Viewed 775 times
Shaneee liked this
User avatar
by: ydeng
#41377
xhcdump from GenericUSB3 gives the following on pthx from x399:


MaxSlots 127, MaxIntrs 8, Rsvd(1) 0, MaxPorts 22
IST 2 frames, ERST Max 32768, Rsvd(2) 0, SPR Y, Max Scratchpad Bufs 31
U1 Device Exit Latency 10, Rsvd(3) 0, U2 Device Exit Latency 512
AC64 Y, BNC N, CSZ N, PPC N, PIND N, LHRC N, LTC N, NSS Y, Rsvd(4) 0xf, MaxPSASize 32768
xHC Extended Cap ID 1, Specific 0
Legacy CTLSTS 0x40010000
xHC Extended Cap ID 2, Specific 0x310
Supported Protocol Name 0x20425355 PortOffset 1 PortCount 2 ProtocolDefined 0
xHC Extended Cap ID 2, Specific 0x300
Supported Protocol Name 0x20425355 PortOffset 3 PortCount 6 ProtocolDefined 0
xHC Extended Cap ID 2, Specific 0x200
Supported Protocol Name 0x20425355 PortOffset 9 PortCount 14 ProtocolDefined 0x19
xHC Extended Cap ID 10, Specific 0
DBOff 0x1800
RTSOff 0x1000
PageSize 4096

I patched AppleXHCIPCI kext to ignore 3.1 but got solid infinite invalid opcodes.

On XHC controllers, root hub emulation is not done properly. None of the ports on those worked.

x399 is much harder to work with.

[email protected]=0xffffffff boot option might give more info.
User avatar
by: Shaneee
#41406
@AlGrey, For some reason the rear ports with ID 43bb are loading with AppleUSB20XHCI rather than AppleUSB30XHCI. I've tried all different DSDT configs to match with original mac DSDTs including the matching one for my SMBios. I've sent RehabMan a message, lets see if he'll respond.
User avatar
by: ydeng
#41408
This might be more relevant.
Code: Select all
https://pikeralpha.wordpress.com/2016/11/10/two-port-usb-3-1-gen-ii-pci-express-card/
Shaneee liked this
User avatar
by: hangsta
#41414
Thanks for the fix. Anything to reduce USB related crashes are awesome. I have an ASROCK X370 Gaming-ITX with a Ryzen 7 1700. After this fix, All USB ports work in 2.0 mode except for the special "Fatal1ty Mouse Port". None of the ports work in 3.0 mode, unfortunately. Where should I start looking to diagnose the problem?

I do see in dmesg the following:
[email protected]: AppleUSBXHCI::getCompanionPortGated: unsupported protocol USB 03.10
User avatar
by: ydeng
#41416
boot with

[email protected]=0xffffffff

paste output of

log show --last boot --predicate 'process == "kernel" and eventMessage contains "USB"' --info --debug
Post Merged
[email protected]=0xffffffff
User avatar
by: AlGrey
#41418
Shaneee wrote:@AlGrey, For some reason the rear ports with ID 43bb are loading with AppleUSB20XHCI rather than AppleUSB30XHCI. I've tried all different DSDT configs to match with original mac DSDTs including the matching one for my SMBios. I've sent RehabMan a message, lets see if he'll respond.
That's because we removed POT1 and POT2... they are the SSPx for ports 00300000 and 00400000
Post Merged
ydeng wrote:This might be more relevant.
Code: Select all
https://pikeralpha.wordpress.com/2016/11/10/two-port-usb-3-1-gen-ii-pci-express-card/
did you try it ?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]