Jump to content

USB 3.0 Problem caused by faulty DSDT

usb3

  • Please log in to reply
21 replies to this topic

#1
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.
My problem continues from the following topic. :wallbash:

http://www.insanelym...pic=274591&st=0

The problem is that my USB3 ports only work after WAKE from sleep. :blink:

It is renesas usb3.0 with latest firmware.

PXHCD.kext is loading successfully.

if i plug anything to my USB3 port the system freezes and i have to restart the system.

my USB3 ports works only after the system is put to sleep and then WAKE from sleep. :blink: Then it continues to work OK.

Its not a driver problem or IRQ problem.

i have attached my DSDT and screenshots.

please help me solving this problem. :help:

Attached Files



#2
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
I do have a Toshiba laptop (L750) and the problem happens to me also.

I can try to help you solving the DSDT problem looking how to include the wake code onto the dsdt device, but i need to use the same driver as you , so both of us use the same items.

Can you share your driver?

Thx.

#3
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
why does it show ARPT on a bunch of places ?? have u been playing with dsdt and ar9287 fix ?

#4
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
LatinMcg is right, your DSDT is a little mess, can you create a clean one or use the original if you already extracted and kept intact?, then boot with it with the HPET and RTC fixes and post here the output of ioregistry explorer app.

Also your HPET device has four IRQ, is this related to the USB fix you are trying to achieve?

				Device (HPET)
				{
					Name (_HID, EisaId ("PNP0103"))
					Name (_UID, Zero)
					Name (BUF0, ResourceTemplate ()
					{
						IRQNoFlags ()
							{2}
						IRQNoFlags ()
							{8}
						IRQNoFlags ()
							{11}
						IRQNoFlags ()
							{15}
						Memory32Fixed (ReadWrite,
							0xFED00000,		 // Address Base
							0x00000400,		 // Address Length
							)
					})


#5
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
razorback. ive never seen hpet with _UID strange... its not wrong but i wonder if its a confusion with the fix for Device (PCI0) missing _UID on wrong place.

#6
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.

I do have a Toshiba laptop (L750) and the problem happens to me also.

I can try to help you solving the DSDT problem looking how to include the wake code onto the dsdt device, but i need to use the same driver as you , so both of us use the same items.

Can you share your driver?

Thx.



Here is the PXHCD.kext and i am using it in Extra\Extenion folder

why does it show ARPT on a bunch of places ?? have u been playing with dsdt and ar9287 fix ?


Nope.
it has come default with original extracted DSDT with linux live CD.
i have added just the device names under APRTs.

i have checked with IOregisrtyexporer that what IRQs HPET i using and added those 4 IRQs in my DSDT.

i have not applied any DSDT fixes except addition of followings:
1. Device details in RP1, RP-2, RP-3, RP-4,
2. introduced ATI 6770m code under PEGP and audio in HDEF to get it detected
3. Rest all minor fixes like sleep, function keys, etc.

i am attaching my freshly extracted DSDT for your reference.

My BIOS is HP Insyde and i am using F.14 version.

I would like to share in details about my USB issues:

1. USB2 on 0x1d is working OK. Any device plugged is detected normally.
Sometimes i have to replug the usb device in this port after WAKE as they are not detected if they remain plugged before sleep.
(Occurrence i very rare)

2. USB2 on 0x1a is not working i guess. not sure.
this is an internal usb. Validity fingerprint sensor and HP truevision HD webcam connected to it.
The HP truevision HD webcam is also not working.(Tried using anyisightcam.kext+ cameracontrol; didnt work in Lion-10.7.3)

3.USB 3.0 on RP04, problem as explained works after WAKE only.

may be this can help you guys.

Thanks.

Attached Files



#7
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts

razorback. ive never seen hpet with _UID strange... its not wrong but i wonder if its a confusion with the fix for Device (PCI0) missing _UID on wrong place.


Mine has also de uid...

Device (HPET)
				{
					Name (_HID, EisaId ("PNP0103"))
					Name (_UID, Zero)
					Name (BUF0, ResourceTemplate ()
					{
						IRQNoFlags ()
							{0}
						IRQNoFlags ()
							{8}
						Memory32Fixed (ReadWrite,
							0xFED00000,		 // Address Base
							0x00000400,		 // Address Length
							)
					})

Chinmaya, can you please add to the dsdt you have attached only the HPET fix (with no extra irq´s), apply the rtc fix and add your graphics code? Just that, then boot with it and check if the USB continues to work after sleep.

Regards.

#8
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.

Mine has also de uid...

Device (HPET)
				{
					Name (_HID, EisaId ("PNP0103"))
					Name (_UID, Zero)
					Name (BUF0, ResourceTemplate ()
					{
						IRQNoFlags ()
							{0}
						IRQNoFlags ()
							{8}
						Memory32Fixed (ReadWrite,
							0xFED00000,		 // Address Base
							0x00000400,		 // Address Length
							)
					})

Chinmaya, can you please add to the dsdt you have attached only the HPET fix (with no extra irq´s), apply the rtc fix and add your graphics code? Just that, then boot with it and check if the USB continues to work after sleep.

Regards.


i think you are pointing out to the IRQ conflict issue.
i have checked that my USB3 device on RP04 port is using IRQ(13) and nothing else is using this IRQ except USB3.
hence, i guess IRQ is not causing the problem.

any ways i will test this and post the result.

#9
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
No, i just want to locate "what" makes it work after sleep, cause mine doesn´t work after sleep, plug anything into usb3 makes system get frozen also.

#10
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.

No, i just want to locate "what" makes it work after sleep, cause mine doesn´t work after sleep, plug anything into usb3 makes system get frozen also.


Working as normal after sleep even with two IRQs in HPET. :angel_not:

#11
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
Ok, so now let´s pick your wake code and play a litlle with it... but today i will not be able to continue, see you as soon as posible.

Regards.

#12
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
I need one ioreg file BEFORE go to sleep, when usb3 is not working and another AFTER sleep when usb3 is working, please, don´t plug anything.

Use ioregistryexplorer.

Regards.

#13
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.

Ok, so now let´s pick your wake code and play a litlle with it... but today i will not be able to continue, see you as soon as posible. Regards.


Any +ve results ?

#14
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
I need the files i have ask you the on the post above yours...

#15
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,817 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe
I enclose ioreg, until sleep and after the sleep (without and with device attached)

I want to clarify that only work for me when I the first started with the charger attached, take it off, and then I put the computer to sleep:
after waking up (without charger), then it works



It may be that OSX does not know when it is in AC or Battery mode?
maybe missing some return in dsdt or something like that?
In Lion, for battery manager i use ACPIPlatform (from SL) + VoodooBattery kexts

Maybe this has nothing to do, but hope is a useful information

Attached Files



#16
Razorbackeve

Razorbackeve

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
Can´t see any difference on the USB registry´s settings from Before/After... :|

#17
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,817 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe
Unfortunately, it seemed to me too, but unfortunately I can not even find errors in Console, and I can not give explanations
If I leave only two IRQ under HPET, USB2 stop working
I enclose also dsdt.aml vanilla, and patched by me, if you want to take a look ... I'd bevery happy

every suggestion is precious, thanks

Micky

Attached Files



#18
Chinmaya

Chinmaya

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:India
  • Interests:Hackintoshs, gadgets etc.

I need the files i have ask you the on the post above yours...


here are the files.

Unfortunately, it seemed to me too, but unfortunately I can not even find errors in Console, and I can not give explanations
If I leave only two IRQ under HPET, USB2 stop working
I enclose also dsdt.aml vanilla, and patched by me, if you want to take a look ... I'd bevery happy

every suggestion is precious, thanks

Micky


Hi Micky, Welcome.

Are you sure you are having USB2.0 port problem and not USB3.0?

Cause mine is USB3.0 port problem which i understood very late, after seeing mounting of USB device in PXHCD under RP04 (which is USB3.0)

can you post your ioreg screen-shot after mounting of USB device as i have attached mine in here at starting...!!!

Attached Files



#19
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,817 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

here are the files.



Hi Micky, Welcome.

Are you sure you are having USB2.0 port problem and not USB3.0?

Cause mine is USB3.0 port problem which i understood very late, after seeing mounting of USB device in PXHCD under RP04 (which is USB3.0)

can you post your ioreg screen-shot after mounting of USB device as i have attached mine in here at starting...!!!

Hi Chinmaya

No, it is obvious that the problem is on USB3. I said only, that if I remove IRQNoFlags 11 and 15, also USB2 stop working!

I was referring to the hack recommended in DSDTSE.app:


HPET FIX
This fix allows us to load the driver Appleintelcpupowermanagement.kext, and in that way have the option to use the native speedstep available in osx
This is the HPET code from a Mac:

Device (HPET)
			   {
				   Name (_HID, EisaId ("PNP0103"))
				   Name (BUF0, ResourceTemplate ()
				   {
					   IRQNoFlags ()
						   {0}
					   IRQNoFlags ()
						   {8}
					   Memory32Fixed (ReadOnly,
						   0xFED00000,		 // Address Base
						   0x00000400,		 // Address Length
						   _Y09)
				   })
		  
This is the HPET code from a PC:

Device (HPET)
{
	Name (_HID, EisaId ("PNP0103"))
	Name (_CID, EisaId ("PNP0C01"))
	Name (BUF0, ResourceTemplate ()
	{
		Memory32Fixed (ReadOnly,
			0xFED00000,		 // Address Base
			0x00000400,		 // Address Length
			_Y0F)
	})

We only have to add the "Irqnoflags" and that would fix it.
   IRQNoFlags ()
	   {0}
   IRQNoFlags ()
	   {8}

After adding "Irqnoflags", here is what it would look like on your DSDT:

Device (HPET)
{
	Name (_HID, EisaId ("PNP0103"))
	Name (_CID, EisaId ("PNP0C01"))
	Name (BUF0, ResourceTemplate ()
	{
	   IRQNoFlags ()
		  {0}
	   IRQNoFlags ()
		  {8}
		Memory32Fixed (ReadOnly,
			0xFED00000,		 // Address Base
			0x00000400,		 // Address Length
			_Y0F)
	})

if i use only IRQNoflags 0 and 8, as already said, even USB2 ports stop working without IRQNoflags 11 and 15, the strange thing webcam continues to work........ but it is USB .... :censored2:

P.S. I can not give what you asked, because I'm away from home for few days ....

#20
Smith@@™

Smith@@™

    InsanelyMac LOL

  • Retired
  • 2,928 posts
  • Gender:Male
  • Location:Somewhere over the rainbow...ITALIA!
  • Interests:Dark matter and dark energy. E basta. HD3000. E basta.
yup also for me, on hp dv after first sleep usb3 works really good ... :thumbsup_anim:






0 user(s) are reading this topic

0 members, 0 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