Jump to content
InsanelyMac Forum
  • Announcements

    • Allan

      Solution to create a topic or post.   04/24/2018

      Hello guys. The majority of you are having issues to create a topic or post here. This are a problem with our current theme InsanelyMac.  Now the theme will be the Default IPS. Sorry for any inconvenience.
Sign in to follow this  
Chinmaya

USB 3.0 Problem caused by faulty DSDT

Recommended Posts

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:

post-902922-0-31388700-1336846301_thumb.png

post-902922-0-64468700-1336846304_thumb.png

DSDT.aml.zip

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites

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
						)
				})

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

PXHCD_1.0.8_kext_patched_OSX10.6_10.7.zip

DSDT_Original.aml.zip

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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 ?

Share this post


Link to post
Share on other sites

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

ioreg.zip

Share this post


Link to post
Share on other sites

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

vanilla dsdt+patched.zip

Share this post


Link to post
Share on other sites
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...!!!

ioreg.zip

Share this post


Link to post
Share on other sites

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 ....

Share this post


Link to post
Share on other sites

yup also for me, on hp dv after first sleep usb3 works really good ... :thumbsup_anim:

Share this post


Link to post
Share on other sites

if i can find code to manually reset all usb ports from console.......

 

.may work.....who knows..............still searching for the code..... :idea:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×