Jump to content

GenericUSBXHCI USB 3.0 driver for OS X with source


928 posts in this topic

Recommended Posts

I said try installing IOUSBFamily 12F37 on 10.8.5.  Not on 10.9.

Anyway, sounds like kernelcache is stale.  Boot with '-f' to force reload kexts.  Or boot single-user '-s' and delete kernelcache in /S/L/Caches/com.apple.kext...../Startup.

Oops. Sorry! 

Booted my 10.9 HDD with -f. No go. 

Booted my 10.9 HDD with -s Kernel panic. 

Booted in 10.8.5 on my main SSD and removed the kernel cache from /S/L/Caches/com.apple.kext...../Startup.

Booted from my 10.9 HDD. Still hangs at the apple screen. 

Should i do rebuild cache first (using Kextwizard), or rebuild permissions? 

Link to comment
Share on other sites

Sounds like you still have the wrong version of IOUSBFamily on the 10.9 system.

Boot the good 10.8.5 system.

remove GenericUSBXHCI.kext from /S/L/E on the 10.9 just to be safe.

check /S/L/E/IOUSBFamily.kext/Contents/Info.plist on the 10.9.  It should say version 650 something.  If it's not, find 650 from 10.9 and restore it there.

delete /S/L/Caches/com.apple.kext.../Startup/kernelcache on the 10.9.  You don't need to rebuild it.

When booting the 10.9, use '-v' so you can see the log messages.

Booted my 10.9 HDD with -f. No go. 

Booted my 10.9 HDD with -s Kernel panic. 

Booted in 10.8.5 on my main SSD and removed the kernel cache from /S/L/Caches/com.apple.kext...../Startup.

Booted from my 10.9 HDD. Still hangs at the apple screen. 

Should i do rebuild cache first (using Kextwizard), or rebuild permissions? 

Link to comment
Share on other sites

From IOUSBFamily.kext/Contents/Info.plist:
 
<key>CFBundleGetInfoString</key>
<string>650.4.4, Copyright © 2000-2013 Apple Inc. All rights reserved.</string>
 
So that looks like the good one. 
The kernel cache @ startup folder is still deleted from the 10.9 disk. Will do -v now. 
(thank you for your time btw!)
 

Sounds like you still have the wrong version of IOUSBFamily on the 10.9 system.

Boot the good 10.8.5 system.

remove GenericUSBXHCI.kext from /S/L/E on the 10.9 just to be safe.

check /S/L/E/IOUSBFamily.kext/Contents/Info.plist on the 10.9.  It should say version 650 something.  If it's not, find 650 from 10.9 and restore it there.

delete /S/L/Caches/com.apple.kext.../Startup/kernelcache on the 10.9.  You don't need to rebuild it.

When booting the 10.9, use '-v' so you can see the log messages.

Link to comment
Share on other sites

Hi Zenith432, is there any way to get proper PME working on ASM1042? I noticed a thread about a linux usb3 driver that stated that the asm1042 can't save/restore its state fast enough. The specific post can be found here: http://www.spinics.net/lists/linux-usb/msg65342.html

 

And the suggested patch:

---
 drivers/usb/host/xhci.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index afdc73e..73e8817 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -795,8 +795,8 @@ int xhci_suspend(struct xhci_hcd *xhci)
 	command = xhci_readl(xhci, &xhci->op_regs->command);
 	command |= CMD_CSS;
 	xhci_writel(xhci, command, &xhci->op_regs->command);
-	if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10*100)) {
-		xhci_warn(xhci, "WARN: xHC CMD_CSS timeout\n");
+	if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10 * 1000)) {
+		xhci_warn(xhci, "WARN: xHC save state timeout\n");
 		spin_unlock_irq(&xhci->lock);
 		return -ETIMEDOUT;
 	}
@@ -848,8 +848,8 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
 		command |= CMD_CRS;
 		xhci_writel(xhci, command, &xhci->op_regs->command);
 		if (handshake(xhci, &xhci->op_regs->status,
-			      STS_RESTORE, 0, 10*100)) {
-			xhci_dbg(xhci, "WARN: xHC CMD_CSS timeout\n");
+			      STS_RESTORE, 0, 10 * 1000)) {
+			xhci_warn(xhci, "WARN: xHC restore state timeout\n");
 			spin_unlock_irq(&xhci->lock);
 			return -ETIMEDOUT;
 		}
-- 
1.7.4.1

Also, has there been any progress with VLI810 internal hubs working? I can help provide any information necessary to try to get them to work.

 

Thank you for your great work!

Link to comment
Share on other sites

At boot i quickly noticed no kernel cache found  which is true! :-)

 

 Then i get the black screen and on top

failed to load kext blackmagic-design.desktopvideo.iokiot.framebufferdriver

 

Blackmagic is a video card i use for outputting video from ProTools. 

 

I have been this before when i tried something with this USB kexts on 10.9. I saw this "blackmagic" error before, and i manually deleted it then. It didn't help. Still KP.

I tried to reinstall this Blackmagic but it can only install on the disk it is booted from. I ended up reinstalling 10.9.

Now i, or we, are messing with this kext again i like to know why i can't boot again after a kext change.

 

Then there is some more text but i don't see any oddities as far as i can tell with my limited know how. 

Link to comment
Share on other sites

Hi Zenith432, is there any way to get proper PME working on ASM1042?

Hm, I don't have sleep issues on ASM1042 installed to ExpressCard slot on my MBP. System sleeps well with it under 10.8.5/10.9.

 

 

 

31.10.13 1:52:58,000 kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchSeriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/ST9750420AS Media/IOGUIDPartitionScheme/Macintosh HD@2
31.10.13 1:52:58,000 kernel[0]: BSD root: disk0s2, major 1, minor 3
31.10.13 1:52:58,000 kernel[0]: AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: device was reinitialized
31.10.13 1:52:58,000 kernel[0]: USBMSC Identifier (non-unique): AA011223130957223472 0x781 0x5580 0x10, 3
31.10.13 1:52:58,000 kernel[0]: hfs: mounted Mac HD on device root_device
31.10.13 1:52:58,000 kernel[0]: IO80211Controller::dataLinkLayerAttachComplete():  adding AppleEFINVRAM notification
31.10.13 1:52:58,000 kernel[0]: IO80211Interface::efiNVRAMPublished():  
31.10.13 1:52:59,000 kernel[0]: Previous Shutdown Cause: 5
31.10.13 1:52:59,000 kernel[0]: SMC::smcInitHelper ERROR: MMIO regMap == NULL - fall back to old SMC mode
31.10.13 1:52:59,000 kernel[0]: AGC: 3.4.12, HW version=1.9.24, flags:0, features:20600
31.10.13 1:52:59,000 kernel[0]: IOBluetoothUSBDFU::probe
31.10.13 1:52:59,000 kernel[0]: IOBluetoothUSBDFU::probe ProductID - 0x821A FirmwareVersion - 0x0042
31.10.13 1:52:59,000 kernel[0]: **** [iOBluetoothHostControllerUSBTransport][start] -- completed -- result = TRUE -- 0x1400 ****
31.10.13 1:52:59,000 kernel[0]: **** [broadcomBluetoothHostControllerUSBTransport][start] -- Completed -- 0x1400 ****
31.10.13 1:52:59,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
31.10.13 1:52:59,000 kernel[0]: init
31.10.13 1:52:59,000 kernel[0]: probe
31.10.13 1:52:59,000 kernel[0]: start
31.10.13 1:52:59,000 kernel[0]: [iOBluetoothHCIController][staticBluetoothHCIControllerTransportShowsUp] -- Received Bluetooth Controller register service notification -- 0x1400 
31.10.13 1:52:59,000 kernel[0]: [iOBluetoothHCIController][start] -- completed
31.10.13 1:52:59,000 kernel[0]: [iOBluetoothHCIController::setConfigState] calling registerService
31.10.13 1:52:59,000 kernel[0]: **** [iOBluetoothHCIController][protectedBluetoothHCIControllerTransportShowsUp] -- Connected to the transport successfully -- 0x1900 -- 0xd000 -- 0x1400 ****
31.10.13 1:52:59,000 kernel[0]: AMDTurksGraphicsAccelerator: ** Device in slot: SLOT--1 **
31.10.13 1:52:59,000 kernel[0]: DSMOS has arrived
31.10.13 1:53:01,000 kernel[0]: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
31.10.13 1:53:01,000 kernel[0]: VM Swap Subsystem is ON
31.10.13 1:53:05,000 kernel[0]: createVirtIf(): ifRole = 1
31.10.13 1:53:05,000 kernel[0]: in func createVirtualInterface ifRole = 1
31.10.13 1:53:05,000 kernel[0]: AirPort_Brcm4331_P2PInterface::init name <p2p0> role 1
31.10.13 1:53:05,000 kernel[0]: AirPort_Brcm4331_P2PInterface::init() <p2p> role 1
31.10.13 1:53:05,000 kernel[0]: Created virtif 0xffffff800fd3d000 p2p0
31.10.13 1:53:06,000 kernel[0]: AppleLMUController found an AG vendor product (0x9cd0), notifying SMC.
31.10.13 1:53:06,000 kernel[0]: en1: 802.11d country code set to 'DE'.
31.10.13 1:53:06,000 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
31.10.13 1:53:06,000 kernel[0]: MacAuthEvent en1   Auth result for: 00:1a:92:bb:71:d7  MAC AUTH succeeded
31.10.13 1:53:06,000 kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0
31.10.13 1:53:06,000 kernel[0]: AirPort: Link Up on en1
31.10.13 1:53:06,000 kernel[0]: en1: BSSID changed to 00:1a:92:bb:71:d7
31.10.13 1:53:06,000 kernel[0]: AirPort: RSN handshake complete on en1
31.10.13 1:53:07,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
31.10.13 1:53:16,000 kernel[0]: AppleKeyStore:Sending lock change 0
31.10.13 1:53:17,000 kernel[0]: hfs: mounted MDP-10.9 on device disk1s2
31.10.13 1:53:19,000 kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=229[GoogleSoftwareUp] final status 0x0, allow (remove VALID)ing page
31.10.13 1:53:50,000 kernel[0]: hfs: unmount initiated on MDP-10.9 on device disk1s2
31.10.13 1:53:57,000 kernel[0]: SMC::smcReadKeyAction ERROR: smcReadData8 failed for key B0PS (kSMCKeyNotFound)
31.10.13 1:53:57,000 kernel[0]: SMC::smcReadKeyAction ERROR: smcReadData8 failed for key B0OS (kSMCKeyNotFound)
31.10.13 1:53:57,000 kernel[0]: AirPort_Brcm43xx::powerChange: System Sleep 
31.10.13 1:54:01,000 kernel[0]: hibernate image path: /var/vm/sleepimage
31.10.13 1:54:01,000 kernel[0]: efi pagecount 43
31.10.13 1:54:01,000 kernel[0]: hibernate_page_list_setall(preflight 1) start 0xffffff806ead0000, 0xffffff806eaf0000
31.10.13 1:54:02,000 kernel[0]: hibernate_page_list_setall time: 95 ms
31.10.13 1:54:02,000 kernel[0]: pages 506607, wire 187698, act 128597, inact 654, cleaned 0 spec 106, zf 3638, throt 0, compr 0, xpmapped 0
31.10.13 1:54:02,000 kernel[0]: could discard act 15639 inact 16444 purgeable 5066 spec 148765 cleaned 0
31.10.13 1:54:02,000 kernel[0]: hibernate_page_list_setall preflight pageCount 320693 est comp 50 setfile 698961312 min 2147483648
31.10.13 1:54:02,000 kernel[0]: [0x109c806000, 0x40000000]
31.10.13 1:54:02,000 kernel[0]: [0x10dc806000, 0x40000000]
31.10.13 1:54:02,000 kernel[0]: [0x0, 0x0]
31.10.13 1:54:02,000 kernel[0]: kern_open_file_for_direct_io(0) took 31 ms
31.10.13 1:54:02,000 kernel[0]: Opened file /var/vm/sleepimage, size 2147483648, partition base 0x0, maxio 2000000 ssd 0
31.10.13 1:54:02,000 kernel[0]: hibernate image major 1, minor 0, blocksize 4096, pollers 5
31.10.13 1:54:02,000 kernel[0]: hibernate_alloc_pages act 149310, inact 20736, anon 4887, throt 0, spec 149173, wire 207492, wireinit 66152
31.10.13 1:54:02,000 kernel[0]: hibernate_setup(0) took 7 ms
31.10.13 1:54:02,000 kernel[0]: **** [iOBluetoothHostControllerUSBTransport][suspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0x1400 ****
31.10.13 1:54:09,000 kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff806ead0000, 0xffffff806eaf0000
31.10.13 1:54:09,000 kernel[0]: hibernate_page_list_setall time: 121 ms
31.10.13 1:54:09,000 kernel[0]: pages 504808, wire 185734, act 128450, inact 654, cleaned 0 spec 109, zf 3616, throt 0, compr 0, xpmapped 24668
31.10.13 1:54:09,000 kernel[0]: could discard act 15645 inact 16477 purgeable 5064 spec 149059 cleaned 0
31.10.13 1:54:09,000 kernel[0]: hibernate_page_list_setall found pageCount 318563
31.10.13 1:54:09,000 kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0
31.10.13 1:54:09,000 kernel[0]: IOHibernatePollerOpen(0)
31.10.13 1:54:09,000 kernel[0]: encryptStart 14010
31.10.13 1:54:09,000 kernel[0]: bitmap_size 0x1f5a0, previewSize 0x85e260, writing 316140 pages @ 0x891810
31.10.13 1:54:09,000 kernel[0]: encryptEnd 7396000
31.10.13 1:54:09,000 kernel[0]: image1Size 0x9eb1000, encryptStart1 0x14010, End1 0x7396000
31.10.13 1:54:09,000 kernel[0]: encryptStart 9eb1000
31.10.13 1:54:09,000 kernel[0]: encryptEnd 1a1a4000
31.10.13 1:54:09,000 kernel[0]: PMStats: Hibernate write took 5393 ms
31.10.13 1:54:09,000 kernel[0]: all time: 5393 ms, comp bytes: 1295273984 time: 850 ms 1452 Mb/s, crypt bytes: 392646640 time: 649 ms 576 Mb/s, 
31.10.13 1:54:09,000 kernel[0]: image 437927936 (20%), uncompressed 1295273984 (316229), compressed 426885952 (32%), sum1 629d5319, sum2 3824c874
31.10.13 1:54:09,000 kernel[0]: zeroPageCount 99946, wiredPagesEncrypted 146236, wiredPagesClear 37164, dirtyPagesEncrypted 132829
31.10.13 1:54:09,000 kernel[0]: hibernate_write_image done(0)
31.10.13 1:54:09,000 kernel[0]: sleep
31.10.13 1:54:09,000 kernel[0]: Wake reason: EC.LidOpen (User)
31.10.13 1:54:16,000 kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
31.10.13 1:54:16,000 kernel[0]: Previous Sleep Cause: 5
31.10.13 1:54:16,000 kernel[0]: [ PCI configuration begin ]
31.10.13 1:54:16,000 kernel[0]: [ PCI configuration end, bridges 13, devices 18 ]
31.10.13 1:54:16,000 kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0
31.10.13 1:54:16,000 kernel[0]: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
31.10.13 1:54:16,000 kernel[0]: en1: 802.11d country code set to 'X0'.
31.10.13 1:54:16,000 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165
31.10.13 1:54:16,000 kernel[0]: TBT W (1): 0 [x]
31.10.13 1:54:16,000 kernel[0]: **** [iOBluetoothHostControllerUSBTransport][suspendDevice] -- Resume -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0x1400 ****
31.10.13 1:54:16,000 kernel[0]: USBMSC Identifier (non-unique): AA011223130957223472 0x781 0x5580 0x10, 3
31.10.13 1:54:19,000 kernel[0]: hfs: mounted MDP-10.9 on device disk1s2
31.10.13 1:54:20,000 kernel[0]: en1: 802.11d country code set to 'DE'.
31.10.13 1:54:20,000 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
31.10.13 1:54:20,000 kernel[0]: MacAuthEvent en1   Auth result for: 00:1a:92:bb:71:d7  MAC AUTH succeeded
31.10.13 1:54:20,000 kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0
31.10.13 1:54:20,000 kernel[0]: AirPort: Link Up on en1
31.10.13 1:54:20,000 kernel[0]: en1: BSSID changed to 00:1a:92:bb:71:d7
31.10.13 1:54:20,000 kernel[0]: AirPort: RSN handshake complete on en1
31.10.13 1:54:20,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
31.10.13 1:54:24,000 kernel[0]: en1: BSSID changed to 00:1a:92:bb:71:d7
31.10.13 1:54:58,000 kernel[0]: **** [iOBluetoothHostControllerUSBTransport][suspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0x1400 ****

Link to comment
Share on other sites

The ASM1042 does not support save/restore.  It always returns an error on both operations.

VL810 needs a specialized hub driver.  I don't know what's needed to make it work - nor are sources for current AppleUSBHub available at the moment.

is there any way to get proper PME working on ASM1042?

Also, has there been any progress with VLI810 internal hubs working? I can help provide any information necessary to try to get them to work.
Link to comment
Share on other sites

Ok, i reinstalled Mavericks on my 10.9 disk. It was easier then repairing my system.

After MuBe6 i got the warning unidentified developer, so enabled 'anyware' in my security settings.

I installed this 30 oktober USB 1.2.7

Still my USB3 devices are unmounted at random.

 

You suggested a repair for 10.8.5 but its very likely i will start using 10.9 so its wiser to find a solution that works for Mavericks. Any suggestions i can do now?

Link to comment
Share on other sites

Hi guys,

I'm having an issue with my apple (wired) keyboard where it will not work after wake. I can wake the system with the keyboard but after that it's dead until I re-plug.
My older keyboard (Logitech Media) that recently got replaced by the apple keyboard works fine.
I've tried BIOS Legacy settings (ON/OFF/AUTO) and chameleon tweaks (darkwake=0 & USB Bus Fix) without result. I have also tried both v1.2.6 and v1.2.7 GenericUSBXHI kexts.
What's weird is that when the rig wakes with a keyboard stroke I don't get my login screen (stays black) until I move or tap my pen (tablet)
I'm not using DSDT and no chameleon tweaks except for timeout (same as with my ML install) 

Any help appreciated since I now have to go back to my old, loud and clumsy windows keyboard.

Thanks in advance

 

UPDATE: solved by updating my BIOS from F6 to F9 and then change the MIT - Advanced Frequency Settings - Advanced CPU Core Features - Internal CPU PLL overvoltage setting to DISABLED

Link to comment
Share on other sites

Hi,

 

My USB 3.0 only works for the first time I connect something to a USB 3.0 port, for instance, I plug a external HDD on the USB port, it works fine. If I eject it and plug it in again it is not recognized.

 

What could this be?

Link to comment
Share on other sites

does not work - where to start?

Please apologize, I am new to mac (but familiar with linux and commandline). On a genuine Mac Pro that has just been upgraded to Mavericks, I installed a no-name 1033:0194 board, and then started searching for a driver.

I could manually install the kext, and load it with kextload. However, "about my mac" was still showing the pci device without a driver.

After rebooting, the usb driver was not loaded.

Is there a way to view what is actually happening (such as verbose operation of kextload showing hardware probed for / detected)

 

Regards

Goldgraeber

 

Link to comment
Share on other sites

reading up on the apple docs for kexts, I noticed that the file permissions were wrong (I had followed some guide that suggested to chmod everything to 755)

Once I changed this, I could kextload the driver, and the system would also recognize a disk.

However, this does not survive a reboot. I had a look through system.log but could not see anything suspicious.

 

@Gringo Vermelho: how would I use IORegistryExplorerR

 

Regards

Goldgraeber

Link to comment
Share on other sites

Dear Zenith, first of all thank you for the amazing work on this!

I installed 1.2.7 on 10.9 on my laptop (Lenovo t431s, QM77, Ivy Bridge) and tried every possible combination of flags but the system wakes up immediately after going to sleep.. even when all USB devices are unplugged first.

In the system log I get these two messages..

11/17/13 10:55:30.000 AM kernel[0]: Wake reason: EHC2
11/17/13 10:55:30.000 AM kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)
 
Do you have a suggestion on how I should start troubleshooting this issue?
My kernel flags at the moment are "darkwake=0 -gux_defer_usb2" and it's probably important to note that without gux_defer the system  won't go to sleep at all.
I'm also attaching the output from xhcdump and.. hope you'll have some ideas/suggestions. Thanks in advance, Sergio
 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHCI@14/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x8086, Device 0x1e31, Revision 0x4

CapLength  128

HCIVersion 0x100

MaxSlots 32, MaxIntrs 8, Rsvd(1) 0, MaxPorts 8

IST 4 microframes, ERST Max 32, Rsvd(2) 0, SPR Y, Max Scratchpad Bufs 16

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) 0x1, MaxPSASize 256

  xHC Extended Cap ID 2, Specific 0x200

    Supported Protocol Name 0x20425355 PortOffset 1 PortCount 4 ProtocolDefined 0x1

      PSIV 1 PSIE 2 PLT 0 PFD N Rsvd 0 Mantissa 12

      PSIV 2 PSIE 1 PLT 0 PFD N Rsvd 0 Mantissa 1500

      PSIV 3 PSIE 2 PLT 0 PFD N Rsvd 0 Mantissa 480

  xHC Extended Cap ID 2, Specific 0x300

    Supported Protocol Name 0x20425355 PortOffset 5 PortCount 4 ProtocolDefined 0

      PSIV 4 PSIE 3 PLT 0 PFD Y Rsvd 0 Mantissa 5

  xHC Extended Cap ID 193, Specific 0

  xHC Extended Cap ID 192, Specific 0

  xHC Extended Cap ID 1, Specific 0

    Legacy CTLSTS 0x40000000

DBOff  0x3000

RTSOff 0x2000

PageSize 4096

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHCI@14/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x8086, Device 0x1e31, Revision 0x4

USBCmd RS Y HCRST N INTE Y HSEE N LHCRST N CSS N CRS N EWE Y EU3S N

USBSts HCH N HSE N EINT N PCD N SSS N RSS N SRE N CNR N HCE N

DNCtrl 0xffff

CRCr CRR N

Config 32

MFIndex 0

Last Time Sync xHC 0 milliseconds <-> CPU 0 nanoseconds

Using MSI

Intel Doze Disabled

Legacy Owner[bios,OS] NN, SMIEn[Event,HSE,OSOwn,PCI,BAR] NNNNN, Chg[OWOwn,PCI,BAR] NYN

Intel USB2.0 Port Routing 0, Mask 0xf

Intel SuperSpeed Enable 0xf, Mask 0xf

# Configured Endpoints 0

# Interrupts: Total 0, Serviced 0, Inactive 0, Offline 0

Port   1 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port   2 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port   3 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port   4 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port   5 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Port   6 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Port   7 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Port   8 PortSC CCS N PED N OCA N PR N

           PLS RxDetect PP Y Speed Unknown PIC Off LWS N

           CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

           WCE N WDE N WOE N DR N WPR N

         PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Interrupter 0 iman IP N imod I 40000 ns C 0 ns erstsz 1 erdp DESI 0 EHB N

 

 

 

Link to comment
Share on other sites

Hi Zenith432, 

I've installed your kext and my usb 3.0 are recognized and working now. But transfer speeds are so low in both 2.0 and 3.0. When I try to transfer a file it goes at 15mbs even in 3.0 ports.

 

Can you help me? I have an asrock p67 pro3 with Etron EJ168A chip for usb 3.0.

 

I attach some screenshots from my profile.

post-1200730-0-00606800-1384971429_thumb.png

post-1200730-0-62108300-1384971431_thumb.png

post-1200730-0-92563200-1384971434_thumb.png

post-1200730-0-22756000-1384971438_thumb.png

post-1200730-0-62647700-1384971441_thumb.png

Link to comment
Share on other sites

Hi Gringo Vermelho,

 

when I ran the program without the driver loaded, I did not see anything that appeared to indicate a reason why it was not loading on startup.

After manually loading the kext, I could search by its name and see what the program told me about it...

In the meantime, I happened to run one of the rebuild tasks in Onyx, and now the kext loads on system startup

 

Speed is pretty high (comparing usb 3 stick to usb 2 one on the builtin port), but once the system goes to sleep, devices get unmounted

Link to comment
Share on other sites

Hello, I have problems when I use the GenericUSBXHCI.

 

I tried everything, I use the kext PXHCD and IOUSBFamily and IOUSBMassStorageClass ML DP3, and when I delete PXHCD and replace with GenericUSBXHCI have kernel panic.
Link to comment
Share on other sites

Hello all,

 

I'm running Maverick using a gA Z68-UD3h b3 motherboard with an i5 2500k processor.  Everything is working perfect, even usb 3.0 on all ports using the current version of GenericUSBXHCI.  My issue is that my usb drives do not survive sleep.  So if I sleep my computer and then reawake, I get an error that the drives were not ejected properly and the drives cannot be mounted.  Some times system information show the usb 3 ports, some times they don't.  But on all occasions the drives cannot be accessed.

 

Is this a known issue?   Is there a fix possible?

Link to comment
Share on other sites

I'm also having trouble with this driver on a gigabyte z68 motherboard with Etron EJ168 usb3.

Is this driver supposed to handle resume from sleep properly?

I can either get the driver to force-ably eject the drive across suspend/resume using -gux_nosleep, or the drive remains attached but I/O after resume from suspend hangs (at least until it times out with an error after a long delay).

Either way it's a non-starter as this breaks any program that was using the usb volume before the system suspended.

I've tested under 10.8.4, 10.8.5 and 10.9, same result. My xhcdump details follow.

 

% xhcdump caps

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x1b6f, Device 0x7023, Revision 0x1

CapLength 32

HCIVersion 0x100

MaxSlots 64, MaxIntrs 4, Rsvd(1) 0, MaxPorts 4

IST 1 frames, ERST Max 32768, Rsvd(2) 0, SPR Y, Max Scratchpad Bufs 4

U1 Device Exit Latency 3, Rsvd(3) 0, U2 Device Exit Latency 2047

AC64 Y, BNC Y, CSZ Y, PPC Y, PIND N, LHRC Y, LTC N, NSS Y, Rsvd(4) 0, MaxPSASize 64

xHC Extended Cap ID 1, Specific 0

Legacy CTLSTS 0x40010000

xHC Extended Cap ID 2, Specific 0x200

Supported Protocol Name 0x20425355 PortOffset 1 PortCount 2 ProtocolDefined 0

xHC Extended Cap ID 2, Specific 0x300

Supported Protocol Name 0x20425355 PortOffset 3 PortCount 2 ProtocolDefined 0

DBOff 0x3000

RTSOff 0x2000

PageSize 4096

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x1b6f, Device 0x7023, Revision 0x1

CapLength 32

HCIVersion 0x100

MaxSlots 64, MaxIntrs 4, Rsvd(1) 0, MaxPorts 4

IST 1 frames, ERST Max 32768, Rsvd(2) 0, SPR Y, Max Scratchpad Bufs 4

U1 Device Exit Latency 3, Rsvd(3) 0, U2 Device Exit Latency 2047

AC64 Y, BNC Y, CSZ Y, PPC Y, PIND N, LHRC Y, LTC N, NSS Y, Rsvd(4) 0, MaxPSASize 64

xHC Extended Cap ID 1, Specific 0

Legacy CTLSTS 0x40010000

xHC Extended Cap ID 2, Specific 0x200

Supported Protocol Name 0x20425355 PortOffset 1 PortCount 2 ProtocolDefined 0

xHC Extended Cap ID 2, Specific 0x300

Supported Protocol Name 0x20425355 PortOffset 3 PortCount 2 ProtocolDefined 0

DBOff 0x3000

RTSOff 0x2000

PageSize 4096

 

% xhcdump running

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x1b6f, Device 0x7023, Revision 0x1

USBCmd RS Y HCRST N INTE Y HSEE N LHCRST N CSS N CRS N EWE Y EU3S N

USBSts HCH N HSE N EINT Y PCD N SSS N RSS N SRE N CNR N HCE N

DNCtrl 0xffff

CRCr CRR N

Config 64

MFIndex 6769

Last Time Sync xHC 3577856 milliseconds <-> CPU 3716828452485 nanoseconds

Using MSI

Legacy Owner[bios,OS] NN, SMIEn[Event,HSE,OSOwn,PCI,BAR] NNNNN, Chg[OWOwn,PCI,BAR] NYN

# Configured Endpoints 0

# Interrupts: Total 19, Serviced 18, Inactive 0, Offline 1

Port 1 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port 2 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port 3 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Port 4 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Interrupter 0 iman IP N imod I 40000 ns C 0 ns erstsz 1 erdp DESI 0 EHB N

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Darwin 13.0.0

Kext Version 1.2.7

Vendor 0x1b6f, Device 0x7023, Revision 0x1

USBCmd RS Y HCRST N INTE Y HSEE N LHCRST N CSS N CRS N EWE Y EU3S N

USBSts HCH N HSE N EINT Y PCD N SSS N RSS N SRE N CNR N HCE N

DNCtrl 0xffff

CRCr CRR Y

Config 64

MFIndex 3067

Last Time Sync xHC 36864 milliseconds <-> CPU 3831939650591 nanoseconds

Using MSI

Legacy Owner[bios,OS] NN, SMIEn[Event,HSE,OSOwn,PCI,BAR] NNNNN, Chg[OWOwn,PCI,BAR] NYN

# Configured Endpoints 3

# Interrupts: Total 50608, Serviced 50607, Inactive 0, Offline 1

Port 1 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port 2 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc L1S Invalid RWE N HIRD 50 us L1Slot 0 HLE N TestMode Disabled

Port 3 PortSC CCS N PED N OCA N PR N

PLS RxDetect PP Y Speed Unknown PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Port 4 PortSC CCS Y PED Y OCA N PR N

PLS U0 PP Y Speed Super PIC Off LWS N

CSC N PEC N WRC N OCC N PRC N PLC N CEC N CAS N

WCE N WDE N WOE N DR N WPR N

PortPmsc U1 0 U2 0 FLA N PortLi LEC 0

Interrupter 0 iman IP N imod I 40000 ns C 0 ns erstsz 1 erdp DESI 0 EHB N

 

% xhcdump slots

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Slot 1, Device Address 1

State Configured

Route String 0

Speed Super, Last Endpoint 4

RH Port #4, Interrupter 0, Max Exit Latency 0 us

 

% xhcdump bandwidth

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Bandwidth for RootHub, Speed 0

90 90 0 0

Bandwidth for RootHub, Speed 1

90 90 0 0

Bandwidth for RootHub, Speed 2

80 80 0 0

Bandwidth for RootHub, Speed 3

0 0 90 90

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Bandwidth for RootHub, Speed 0

90 90 0 0

Bandwidth for RootHub, Speed 1

90 90 0 0

Bandwidth for RootHub, Speed 2

80 80 0 0

Bandwidth for RootHub, Speed 3

0 0 90 90

 

% xhcdump endpoints 1

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

 

Found a device of class GenericUSBXHCI: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP08@1C,7/IOPCI2PCIBridge/PXSX@0/GenericUSBXHCI

Endpoint 1, Type Control, State Running

Multiple 1, Interval 1 microframes, CErr 3, Max Burst 1, Max Packet Size 512

Average TRB Length 8, Max ESIT Payload 0

Endpoint 3, Type Bulk In, State Running

Multiple 1, Interval 1 microframes, CErr 3, Max Burst 16, Max Packet Size 1024

Average TRB Length 1024, Max ESIT Payload 0

Endpoint 4, Type Bulk Out, State Running

Multiple 1, Interval 1 microframes, CErr 3, Max Burst 16, Max Packet Size 1024

Average TRB Length 1024, Max ESIT Payload 0

 

 

Link to comment
Share on other sites

×
×
  • Create New...