Jump to content

DSDT fix for USB2


piczu
 Share

11 posts in this topic

Recommended Posts

Hi,

 

 

 

 

I have serious problems with my USB ports. When I plug-in any device to USB port I always get Kernel Panic. I can't work on OSX by this.

 

My USB in lspci:

 

 

 

 

00:1a.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 05)

00:1d.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 05)

 

 

 

 

I use IOUSBFaminy and IOUSBMassStorage kexts in Extra folder and I think it is their fault.

 

I think patching my DSDT may help me. But here's my 2nd problem. I studied many threads about fixing USB ports and this is what I've done:

 

 

 

 

            Device (EHC0)

           {

               Name (_ADR, 0x001D0000)

               Device (RHUB)

               {

                   Name (_ADR, Zero)

                   Device (PRT1)

                   {

                       Name (_ADR, One)

                       Name (_UPC, Package (0x04)

                       {

                           0xFF, 

                           Zero, 

                           Zero, 

                           Zero

                       })

                       Name (_PLD, Buffer (0x10)

                       {

                           /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 

                           /* 0008 */    0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

                       })

                   }

               }



               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x0E)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x3A, 0x3A, 0x00, 0x00

                           }, 

                        "AAPL,clock-id", 

                           Buffer (One)

                           {

                               0x0A

                           }, 

                           "built-in", 

                           Buffer (One)

                           {

                               0x00

                           }, 



                           "device_type", 

                           Buffer (0x05)

                           {

                               "EHCI"

                           },

                        "AAPL,current-available", 

                           0x05DC, 

                           "AAPL,current-extra", 

                           0x03E8, 

                           "AAPL,current-in-sleep", 

                           0x0BB8

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }



               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x0D, 0x04))

               }

           }



           Device (UHC0)

           {

               Name (_ADR, 0x001D0001)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x33, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x03, 0x04))

               }

           }



           Device (UHC1)

           {

               Name (_ADR, 0x001D0002)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x34, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x04, 0x04))

               }

           }



           Device (UHC2)

           {

               Name (_ADR, 0x001D0003)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x35, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x0C, 0x04))

               }

           }



           Device (UHC3)

           {

               Name (_ADR, 0x001D0004)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x36, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x0E, 0x04))

               }

           }



           Device (EHC1)

           {

               Name (_ADR, 0x001A0000)

               Device (RHUB)

               {

                   Name (_ADR, Zero)

                   Device (PRT1)

                   {

                       Name (_ADR, One)

                       Name (_UPC, Package (0x04)

                       {

                           0xFF, 

                           Zero, 

                           Zero, 

                           Zero

                       })

                       Name (_PLD, Buffer (0x10)

                       {

                           /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 

                           /* 0008 */    0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

                       })

                   }

               }



               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x0E)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x3C, 0x3A, 0x00, 0x00

                           }, 

                        "AAPL,clock-id", 

                           Buffer (One)

                           {

                               0x0A

                           }, 

                           "built-in", 

                           Buffer (One)

                           {

                               0x00

                           }, 



                           "device_type", 

                           Buffer (0x05)

                           {

                               "EHCI"

                           },

                        "AAPL,current-available", 

                           0x05DC, 

                           "AAPL,current-extra", 

                           0x03E8, 

                           "AAPL,current-in-sleep", 

                           0x0BB8

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }



               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x0D, 0x04))

               }

           }



           Device (UHC4)

           {

               Name (_ADR, 0x001A0001)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x37, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x05, 0x04))

               }

           }



           Device (UHC5)

           {

               Name (_ADR, 0x001A0002)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x38, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x20, 0x04))

               }

           }



           Device (UHC6)

           {

               Name (_ADR, 0x001A0003)

               Method (_DSM, 4, NotSerialized)

               {

                   Store (Package (0x02)

                       {

                           "device-id", 

                           Buffer (0x04)

                           {

                               0x39, 0x3A, 0x00, 0x00

                           }

                       }, Local0)

                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

                   Return (Local0)

               }

               Method (_PRW, 0, NotSerialized)

               {

                   Return (GPRW (0x25, 0x04))

               }

           }

 

 

 

 

Unfortunately that doesnt work. USB dont work with this. I have P7P55-M motherboard. NE1 help me?

Link to comment
Share on other sites

Nope :)

 

Maybe something wrong with vanilla kexts?

 

PS. I use [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] CD to run OSX but dont think it change sth.

Link to comment
Share on other sites

  • 1 year later...
 Share

×
×
  • Create New...