CustoMac Desktop USB Fixes - 10.11+ Reference

Discussion in 'General Help' started by tonymacx86, Nov 21, 2015.

  1. rvxtm

    rvxtm

    Joined:
    Feb 26, 2011
    Messages:
    55
    Mobo:
    Gigabyte Z87-UD3H
    CPU:
    Intel i7 4770k
    Graphics:
    nVidia GTX 1060
    Mac:
    MacBook Pro
    Mobile Phone:
    iOS
    May 8, 2017 at 8:30 AM #291
    rvxtm

    rvxtm

    Joined:
    Feb 26, 2011
    Messages:
    55
    Mobo:
    Gigabyte Z87-UD3H
    CPU:
    Intel i7 4770k
    Graphics:
    nVidia GTX 1060
    Mac:
    MacBook Pro
    Mobile Phone:
    iOS
    I managed to get things working with the two kexts, the clover patched and dsdt patching does not have any effect.
     
  2. zipb

    zipb

    Joined:
    Aug 25, 2012
    Messages:
    406
    Mobo:
    Gigabyte Z170X-UD5-TH
    CPU:
    Intel i7 6700K
    Graphics:
    MSI AMD RX480/8GB
    Mac:
    MacBook Pro
    Classic Mac:
    Performa, Power Mac, PowerBook
    May 14, 2017 at 9:59 PM #292
    zipb

    zipb

    Joined:
    Aug 25, 2012
    Messages:
    406
    Mobo:
    Gigabyte Z170X-UD5-TH
    CPU:
    Intel i7 6700K
    Graphics:
    MSI AMD RX480/8GB
    Mac:
    MacBook Pro
    Classic Mac:
    Performa, Power Mac, PowerBook
    Unfortunately I'm still experiencing occasional USB weirdness even after applying all the usual fixes. USB devices will not be recognized on insertion, will stick after ejection, be recognized as USB2 while being USB3 etc. I posted my config etc in Forums/Post Installation/General Help on May,1 asking for help but got no replies. Rehabman? VoiletDragon? Could you have a look?
    Main culprits are my front USB ports, HS/SS07 and HS/SS08.
     
  3. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,799
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    May 15, 2017 at 2:18 AM #293
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,799
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Read FAQ, "Problem Reporting"
    https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
     
  4. zipb

    zipb

    Joined:
    Aug 25, 2012
    Messages:
    406
    Mobo:
    Gigabyte Z170X-UD5-TH
    CPU:
    Intel i7 6700K
    Graphics:
    MSI AMD RX480/8GB
    Mac:
    MacBook Pro
    Classic Mac:
    Performa, Power Mac, PowerBook
    May 15, 2017 at 8:04 AM #294
    zipb

    zipb

    Joined:
    Aug 25, 2012
    Messages:
    406
    Mobo:
    Gigabyte Z170X-UD5-TH
    CPU:
    Intel i7 6700K
    Graphics:
    MSI AMD RX480/8GB
    Mac:
    MacBook Pro
    Classic Mac:
    Performa, Power Mac, PowerBook
  5. vulgo

    vulgo

    Joined:
    Jul 24, 2015
    Messages:
    1,533
    Mobo:
    MSI H81i
    CPU:
    i5-4570
    Graphics:
    GTX 970
    Mobile Phone:
    Android
    Jun 2, 2017 at 8:43 AM #295
    vulgo

    vulgo

    Joined:
    Jul 24, 2015
    Messages:
    1,533
    Mobo:
    MSI H81i
    CPU:
    i5-4570
    Graphics:
    GTX 970
    Mobile Phone:
    Android
    Yes it seems you are right. I stuck a bluetooth dongle on one of the internal USB 2 headers on an MSI H81i and it does indeed come under the XHC. The Gigabyte H81 board i was using has an option in the firmware settings to route or not the USB 2 to XHC but i never used the headers.

    Whether or not the EHCI gets used looks firmware controlled.

    There is this in coreboot.

    Code (Text):
    /* Route all ports to XHCI controller */
    void usb_xhci_route_all(void)
    {
        u32 port_mask, route;
        u16 reg16;

        /* Skip if EHCI is already disabled */
        if (RCBA32(FD) & PCH_DISABLE_EHCI1)
            return;

        /* Set D0 state */
        reg16 = pci_read_config16(PCH_XHCI_DEV, XHCI_PWR_CTL_STS);
        reg16 &= ~PWR_CTL_SET_MASK;
        reg16 |= PWR_CTL_SET_D0;
        pci_write_config16(PCH_XHCI_DEV, XHCI_PWR_CTL_STS, reg16);

        /* Set USB3 superspeed enable */
        port_mask = pci_read_config32(PCH_XHCI_DEV, XHCI_USB3PRM);
        route = pci_read_config32(PCH_XHCI_DEV, XHCI_USB3PR);
        route &= ~XHCI_USB3PR_SSEN;
        route |= XHCI_USB3PR_SSEN & port_mask;
        pci_write_config32(PCH_XHCI_DEV, XHCI_USB3PR, route);

        /* Route USB2 ports to XHCI controller */
        port_mask = pci_read_config32(PCH_XHCI_DEV, XHCI_USB2PRM);
        route = pci_read_config32(PCH_XHCI_DEV, XHCI_USB2PR);
        route &= ~XHCI_USB2PR_HCSEL;
        route |= XHCI_USB2PR_HCSEL & port_mask;
        pci_write_config32(PCH_XHCI_DEV, XHCI_USB2PR, route);

        /* Disable EHCI controller */
        usb_ehci_disable(PCH_EHCI1_DEV);

        /* LynxPoint-H has a second EHCI controller */
        if (!pch_is_lp())
            usb_ehci_disable(PCH_EHCI2_DEV);

        /* Reset and clear port change status */
        usb_xhci_reset_usb3(PCH_XHCI_DEV, 1);
    }
     
  6. VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Jun 2, 2017 at 11:23 AM #296
    VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    You will notice that USB 2 devices will come under XHC not EHCI controllers. This is normal. Nothing to worry about.
     
  7. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,799
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jun 2, 2017 at 1:19 PM #297
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,799
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Read post #295.
     
  8. ricky7

    ricky7

    Joined:
    Dec 30, 2015
    Messages:
    84
    Mobo:
    Asus z97 Sabertooth Mark II
    CPU:
    i7-4790k
    Graphics:
    ASUS ROG STRIX 480x 8GB
    Aug 5, 2017 at 3:52 AM #298
    ricky7

    ricky7

    Joined:
    Dec 30, 2015
    Messages:
    84
    Mobo:
    Asus z97 Sabertooth Mark II
    CPU:
    i7-4790k
    Graphics:
    ASUS ROG STRIX 480x 8GB
    I do some arduino programming. Haven't done it in a while on my machine, but now it seems all the com ports are blocked after doing the USB fixes. Any Ideas?
     
  9. tomatozz

    tomatozz

    Joined:
    Jan 10, 2016
    Messages:
    10
    Mobo:
    P8Z77 V PRO
    CPU:
    i7 3770k
    Graphics:
    INTEL HD4000
    Mac:
    iMac
    Aug 5, 2017 at 12:57 PM #299
    tomatozz

    tomatozz

    Joined:
    Jan 10, 2016
    Messages:
    10
    Mobo:
    P8Z77 V PRO
    CPU:
    i7 3770k
    Graphics:
    INTEL HD4000
    Mac:
    iMac
    delted
     
    Last edited: Aug 5, 2017
  10. rolandino

    rolandino

    Joined:
    Apr 8, 2014
    Messages:
    12
    Mobo:
    Asus X99-A USB3.1
    CPU:
    i7 5820K
    Graphics:
    GTX970
    Aug 17, 2017 at 11:17 AM #300
    rolandino

    rolandino

    Joined:
    Apr 8, 2014
    Messages:
    12
    Mobo:
    Asus X99-A USB3.1
    CPU:
    i7 5820K
    Graphics:
    GTX970
    Hello.

    I recently updated my X99 system from 10.11.6 to 10.12.6.

    Now X86PlatformPlugin.kext is not loading any more, which means PM is broken.
    I found this in log:
    com.apple.driver.X86PlatformPlugin: The following symbols are unresolved for this kext.
    com.apple.driver.X86PlatformPlugin: __ZN15IOUSBHostDevice9metaClassE
    com.apple.driver.X86PlatformPlugin: __ZN16AppleUSBHostPort9metaClasseE
    Can't load kext com.apple.driver.X86PlatformPlugin - link failed.

    I'm using USBInjectAll with X99 injector
    All USB3 ports are working.
    IOreg looks good.

    Also fixed USB power property injection by renaming EC0 to EC as mentioned here
    https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra.222266/

    Tried different BIOS settings for XHCI mode (smart auto, auto, enabled) - nothing changed.

    Could this issue be related to any USB driver or is it something else?

    Latest Clover, MacPro6,1

    Cheers
    Roland
     

Share This Page