Jump to content

GenericUSBXHCI USB 3.0 driver for OS X with source

xHC USB 3.0

  • Please log in to reply
568 replies to this topic

#201
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,700 posts
  • Gender:Male
  • Location:Italy

If you still have that problem with failed sleep under 10.9DP1, could you try 1.2.5d2 and let me know if it makes any difference?

Ok, now sleep work in Mavericks 10.9 DP1:

 

 

before putting in Sleep: Attached File  Pandora's box 06-20-13_1750.html.zip   7.59KB   14 downloads

 

After resuming from Sleep: Attached File  Pandora's box 06-20-13_1751.html.zip   8.86KB   12 downloads

 

Only one problem: device were not expelled properly.
 
However, sleep works.
 
I put this kext into Pandora for 10.9 (We are going to publish the new Beta 2 in a few minutes). Any updates will be immediate if available!
 
thank you very much
 
Micky


#202
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

It's something about that xhci-ehci port switching mechanism.  See this

Wake reason = power-button
RestoreControllerStateFromSleep(XHCI Root Hub USB 2.0 Simulation): Port 1 on bus 0xa connected: portSC(0xe020ae1)
USBF:    181.816    AppleUSBEHCI: setPowerState - PCI device still has PMS status bit set. PMCSR is 0x8000
RestoreControllerStateFromSleep(XHCI Root Hub USB 2.0 Simulation): Port 3 on bus 0xa connected: portSC(0xe0206e1)
RestoreControllerStateFromSleep(XHCI Root Hub USB 2.0 Simulation): Port 4 on bus 0xa connected: portSC(0xe0206e1)
The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)

The xhci controller is reporting that all 3 devices were disconnected and reconnected during sleep.  That's why you see the ejection messages.  The ehci controller is reporting at the same time that it woke the system - even though it was the power button that woke the system.  This is some hardware glitch.  The thing that confuses me is why this wasn't happening under OS 10.8.4, because as far as xhci - nothing related has changed.

Can you review the bios settings for xhci to see if the bios is set to switch ports 1-4 to xhci during boot?  Different bioses list this option in different ways.

 

Only one problem: device were not expelled properly.


#203
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,700 posts
  • Gender:Male
  • Location:Italy

My bios is set to boot in pre-OS the controller USB 3.0 as USB 2.0, and after switch in USB 3.0 mode when OS is loaded, otherwise nothing works.. :(

 

- even though it was the power button that woke the system

 

yep, from the patch into the dsdt at post  #196

 

Micky



#204
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

Well, this is probably the cause.  If you boot with kernel flag "-gux_defer_usb2", the highspeed ports 1-4 are left to ehci when OS is loaded and should resolve these spurious disconnects in sleep.  The superspeed ports continue to function with xhci.

Not sure why it doesn't work if pre-OS highspeed ports are switched to xhci and left to xhci when OS is loaded... :unsure:

My bios is set to boot in pre-OS the controller USB 3.0 as USB 2.0, and after switch in USB 3.0 mode when OS is loaded, otherwise nothing works.. :(



#205
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,700 posts
  • Gender:Male
  • Location:Italy
Thanks anyway, however when I have time I do other tests.
...I was very curious .. I found that in 10.8.4 everything was working properly, but perhaps it is also the fault of the DSDT, as already happened to others, Mavericks does not seem like normal ACPI tables used in the previous OSes.
 
Micky


#206
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,700 posts
  • Gender:Male
  • Location:Italy

@Zenith432 take a look for the Pandora Beta 2 now available, ....including your kexts :)

..and thanks for your Work!

 

Micky



#207
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,053 posts
  • Gender:Male
  • Location:UK

Thank you for the time and hard work you have spent developing this Zenith432.



#208
King Dale

King Dale

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts

We luv u Zenith432  :rolleyes:  :thumbsup_anim:  :angel:  :P  :whistle: 

USB 3.0 fully functional in 10.8.4

 

Fresco Logic FL1009-200 DriveStation SuperSpeed USB 3.0 PCI Express Card

 

http://www.amazon.co...0?ie=UTF8&psc=1

 

MSI P55-GD80



#209
genzai

genzai

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
  • Location:San Francisco

Hello Zenith,

First want to thank you again for amazing work. I use the driver with an highpoint asmedia 4 bus controller and it works wonders right alongside the native z77 one when i set ioprobe to -1.

 

This weekend i was helping a friend update his pro tools hack to 10.8.4 and decided to use your driver for his USB 3.0 card as well. I am having an issue where the USB 3.0 works initially and when i plug in a drive it mounts. Once i start using the drive however, it functions for a time and then "stalls". for instance a finder copy will just stall in the procedure, or mounting a large dmg will stall during verification. Some drives seem to sit there indefinitely in the stalled state while others eventually register a hard eject. In any case once the stall occurs the port no longer works to reconnect the device or any other device.

 

Please have a look at the xhcidumps i made. I am afraid i don't know what to look for.

Also this is a nec based chipset device (looks like D720200F1), 2 ports on a mpcie card.

 

Very much looking forward to your assistance.

 

Note:

file 1 is after boot before any device gets attached

file 2 is after attaching a USB 3.0 HDD and seeing it mount on desktop

file 3 is after compressing a disk image onto the hdd, which works for about a minute and then stalls. i ran the commands twice in case anything was changing during the stall state.

file 4 is after attempting to reconnect the drive, it does not mount again until a reboot is performed.

 

Thanks,

g\

Attached Files



#210
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

genzai: It says "Host System Error Detected" - is a fatal hardware condition with the xHC on its PCIe link, and can only be recovered from by system power-cycle or reset-button.  Probably faulty hardware.  Try same xHC with a different drive or same drive with a different xHC.

Also try updating firmware on xHC and drive (if there is one.)



#211
genzai

genzai

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
  • Location:San Francisco

genzai: It says "Host System Error Detected" - is a fatal hardware condition with the xHC on its PCIe link, and can only be recovered from by system power-cycle or reset-button.  Probably faulty hardware.  Try same xHC with a different drive or same drive with a different xHC.

Also try updating firmware on xHC and drive (if there is one.)

Huge thanks for the very fast reply. I have tried it with multiple drives from different vendors and they all have the same issue with either stalling or stalling and then disconnecting. I also use these drives regularly with my own system (your driver on asmedia, or apple driver on intel) and the drives are OK.

 

Could this be a hardware problem with the card in his system? Is there any other tests i can perform to track the issue?

Please let me know, i will have the system for at least a couple more days and i can do any tests you advise.

Cheers,

g\

 

EDIT: the µPD720200 does appear to be the very first USB 3.0 host controller in general release, and maybe its less compatible. but options for mpcie are very limited. 

Comply spec to: PCIe 2.0 Base Spec
USB3.0 rev1.0 (USB-IF certified: Test ID = 380000000)
Intel xHCI rev0.96

compare this to the 201 versions and other more recent controllers which claim intel xHCI rev 1.0 compliance, could this be part of the issue?



#212
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male


Could this be a hardware problem with the card in his system? Is there any other tests i can perform to track the issue?

Yes, repeating HSE indicates the PCIe link between the card and southbridge on motherboard in unreliable.

 

 

Please let me know, i will have the system for at least a couple more days and i can do any tests you advise.

None really - as the consistently reproducible HSEs are enough.  Update the firmware.  You may try cleaning the PCIe connector and making sure it's plugged in right - but if problem remains - it's a faulty card.

 

 

 

the µPD720200 does appear to be the very first USB 3.0 host controller in general release, and maybe its less compatible.

It's still one of the best.  The 0.96 doesn't make any difference.  Anyhow, you have the F1 version - and I'm pretty sure there have been others on this thread with this chip which did work - so it's this particular card.



#213
genzai

genzai

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
  • Location:San Francisco

It's still one of the best.  The 0.96 doesn't make any difference.  Anyhow, you have the F1 version - and I'm pretty sure there have been others on this thread with this chip which did work - so it's this particular card.

Ok, i did update firmware just now, using windows, to 3.0.3.4 which i believe is the latest. verified firmware update was successful. Back in OS X the stall issue still occurred. I guess now that i have a windows option i can try seeing if it stalls there too. But i will also try reseating and cleaning the pcie connection. And if that doesn't work i found a mpci card with the 720202 version of the chip, and i will order that.

 

Thanks for all!

g\



#214
mac.HoBONG

mac.HoBONG

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts

This is The Prefect Kext for USB 3.0
After download GenericUSBXHCI_1.2.1 and put it on /S/L/E repair permission with Kext Utillity.
I can Connect the Iphone 4s On this USB port and Also External Hard Drive
My Device is 0x0194 Vendor 0x1033 Nec on Dell Vostro 3350 ML 1.8.3

Thank You Very Much
:thumbsup_anim: :thumbsup_anim: :thumbsup_anim: :thumbsup_anim: :thumbsup_anim:

Tagged As Favourite

Is There any way to make my USB 2 working  ? please ?



#215
Johnny V

Johnny V

    InsanelyMac Sage

  • Donators
  • 369 posts

Just a quick thanks to Zenith432. The last version v1.2.4 fixed all my USB3 issues on my build running 10.8.4. You complete me! Ot at least my Hackintosh!

 

GA-Z68XP-UD3 / i7 3.49 GHz / GeForce GTX 560 2048 MB / 32 GB 1600 MHz DDR3 / Crucial M4 256gb SSD / Bios F10

 

NIce seeing you blackosx!



#216
Johnny V

Johnny V

    InsanelyMac Sage

  • Donators
  • 369 posts

>You complete me! Ot at least my Hackintosh!

 

After spending the night with v1.2.4 the love affair is over!  :hysterical: 

 

Front USB3 will not power a self powered HD but the rear USB3 will. Getting a couple warning windows after sleep that the HD was not ejected properly, but external HD is still visible on desktop and working.

 

v1.2.3 would cycle power on/off continuously. The previous kext ( v1.2.1? ) powered self-powered HD fine but with many "Not ejected properly..." windows.

 

Running: 10.8.4 - GA-Z68XP-UD3

 

How can I help out?

 

Thanks,

 

JV



#217
czczyx

czczyx

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hello!

 

I Upgrading to OS X 10.8.5 12F9 (beta) after, GenericUSBXHCI.kext ver1.2.4 invalid, please help me, thank you!



#218
denismll

denismll

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Installed this Kext v.1.2.4 on my GA-Z77X-UD5H. At the moment  everything looks Ok. 

 

I have  a portable disk eGo USB 3.0.  

 

Works for me the sleep mode.

 

Thanks. 

Attached Files



#219
Rampage Dev

Rampage Dev

    InsanelyMac Deity

  • Local Moderators
  • 1,953 posts
  • Gender:Male

No wake on sleep... is that a kext or DSDT issue? Wanted to know what you tested. Thanks again. 



#220
thebridgeninja

thebridgeninja

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Thank you kind sirs for your work in this area!

 

My first build was around the GA-Z77X-UP4 TH

I know don't punch me in the face, I didn't do the best research and should have gone with something else.

 

My question is, do you think this new usb3.0 driver will bring back my usb3.0 functionality?








6 user(s) are reading this topic

3 members, 3 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy