Posted 27 November 2009 - 09:10 AM

digital_dreamer

InsanelyMac Legend

Members

1,100 posts

Gender:Male

Location:Missouri USA

There's no IRQ in the RTC section of the DSDT obtained from an Apple hardware MacPro4,1, so I don't know the logic behind when not having it on the GA-EX58 MBs that it causes sleep issues.I can't speak to MBs from other manufacturers, as I've only worked with Gigabyte's X58 chipset MB.I'd suggest that the script conditionally not remove the IRQ when the user is installing OS X on a GA-EX58, and removing it when installing on an MB where it's known to causes problems.

Update:I removed the IRQ from RTC and it didn't cause sleep problems in 10.6.2, but it did in 10.6.1.

Posted 27 November 2009 - 01:22 PM

Hi d00d. Well done with your guide. I don't own this mobo but still, I find your guide very comprehensive and full of useful information.

The drives have eject buttons because of the SATA hot plug functionality of the MB, and the one that has the active OS wouldn't have an eject button.This is convenient when you want to be able to mount and unmount external eSATA drives connected through the PCI slot eSATA interface that's included with UD4 through UD7, if that's connected to one or two of the six SATA ICH10 MB ports.UD7 also has two combination USB and powered eSATA ports at the back panel.The non OS drives can be ejected in the Finder, and mounted again with Disk Utility or by unplug and plug.It's correct functionality, but if you didn't want the eject capability, device-id `0x81, 0x26, 0x00, 0x00' can instead be set in the IDE1 section of the DSDT and you wouldn't need to use OrangeIconFix.kext either.That would incorrectly show ESB2 instead of ICH10 in System Profiler:Hardware:Serial-ATA however.

I like your explanation above for the ICH10 SATA hot plug feature and as you posted in Stickpin's thread, I now think it's best to leave the device-id as 3a22 and keep the orangeicon fix. I will backtrack on my guide and bring it back so as to keep the benefits of ICH10. I guess Stickpin plans to find a workaround as he said real MacPro's don't use this feature, which I can understand to make it closer to a real Mac.

Posted 27 November 2009 - 02:40 PM

Hi d00d. Well done with your guide. I don't own this mobo but still, I find your guide very comprehensive and full of useful information.

I like your explanation above for the ICH10 SATA hot plug feature and as you posted in Stickpin's thread, I now think it's best to leave the device-id as 3a22 and keep the orangeicon fix. I will backtrack on my guide and bring it back so as to keep the benefits of ICH10. I guess Stickpin plans to find a workaround as he said real MacPro's don't use this feature, which I can understand to make it closer to a real Mac.

Thanks.I looked at ioreg output from an Apple hardware MacPro4,1, and hot plug is indeed turned off for PRT0 and 1 (Upper and Lower), and PRT2 through 5 (Bay 1 through 4).It looks like Apple dumbed down the capability of the chipset in the OS, possibly because of the design decision to not include any external SATA ports that could take advantage of hot plug.I see that stickpin writes that it should be per port.This makes sense, if for example you have external SATA connected to PRT4 aor PRT5 leave hot plug enabled, otherwise turn it off.

Posted 27 November 2009 - 03:38 PM

I see that stickpin writes that it should be per port.This makes sense, if for example you have external SATA connected to PRT4 aor PRT5 leave hot plug enabled, otherwise turn it off.

That seems the sensible choice providing of course stickpin or somebody else can work out how disable hot plug on selected SATA ports in DSDT whilst leaving device-id as 3a22. It might be easy, it might not. I am still trying to learn and understand DSDT on a deeper level

Posted 27 November 2009 - 05:04 PM

It might be preferred to leave the hotplug feature for only certain ports. I have it enabled and it shows every drive but the boot disk as an external drive...able to eject any of them.

d00d, can you please check your p-state information in your original post. I can not seem to get it compiled, I get an error on line 38 or 39. And maybe give more details on your overclock settings...I was attempting to use this with memory rated for 1600mhz but could not get bios to post. I might need to set static voltage for memory. I managed to get everything else working perfectly Thank you!....although I do get a kernel message on boot that LPC did not load properly and I am using stock cpu bios settings so my geekbench scores are very low at the moment. The only time it does not give an error about LPC is when enabling C-states, but if those are enabled I can not awake from sleep.

Also, sleep works perfectly but obviously only when C1E and C3, C6, C7 modes are disabled. This makes sense now...I read late last night that C states are idle states. I think some people in other threads discussing using them were assuming they were just like p-states...but not defined by the DSDT. I'm assuming there is no need for them because C0 is the only one necessary.

Posted 27 November 2009 - 06:06 PM

It might be preferred to leave the hotplug feature for only certain ports. I have it enabled and it shows every drive but the boot disk as an external drive...able to eject any of them.

d00d, can you please check your p-state information in your original post. I can not seem to get it compiled, I get an error on line 38 or 39. And maybe give more details on your overclock settings...I was attempting to use this with memory rated for 1600mhz but could not get bios to post. I might need to set static voltage for memory. I managed to get everything else working perfectly Thank you!....although I do get a kernel message on boot that LPC did not load properly and I am using stock cpu bios settings so my geekbench scores are very low at the moment. The only time it does not give an error about LPC is when enabling C-states, but if those are enabled I can not awake from sleep.

Also, sleep works perfectly but obviously only when C1E and C3, C6, C7 modes are disabled. This makes sense now...I read late last night that C states are idle states. I think some people in other threads discussing using them were assuming they were just like p-states...but not defined by the DSDT. I'm assuming there is no need for them because C0 is the only one necessary.

You might be missing the enclosing bracket or coma that's on line 38.Do `./iasl -d DSDT.aml' on my attached DSDT to get DSDT.dsl, then copy and paste from that.My over clock settings for 4.1 and 4.2 GHz are listed in a previous post, and for 4.2 I had to set DRAM to 1.58v for 12 GB rated for 1.5v and 1333 MHz (running at 1260 MHz), with all other voltages set to auto.To get AppleLPC.kext to load you need to fix the PX40 section of the DSDT, and check the `Start up automatically after a power failure' option in Energy Saver, or sleep will shut the computer down instead.For kernel.log to not show CState errors you need to be clocked at 2.96 GHz or lower, or if clocked higher you need to correct the CPU section of your DSDT to pass CStates to the OS.Sleep and wake works at any clock with these modifications and C2RC3 and PCEFI10.5, even when either or both of the two CState options are disabled in BIOS.

Posted 28 November 2009 - 05:42 AM

devDelay

InsanelyMac Protégé

Members

32 posts

Gender:Male

You might be missing the enclosing bracket or coma that's on line 38.Do `./iasl -d DSDT.aml' on my attached DSDT to get DSDT.dsl, then copy and paste from that.My over clock settings for 4.1 and 4.2 GHz are listed in a previous post, and for 4.2 I had to set DRAM to 1.58v for 12 GB rated for 1.5v and 1333 MHz (running at 1260 MHz), with all other voltages set to auto.To get AppleLPC.kext to load you need to fix the PX40 section of the DSDT, and check the `Start up automatically after a power failure' option in Energy Saver, or sleep will shut the computer down instead.For kernel.log to not show CState errors you need to be clocked at 2.96 GHz or lower, or if clocked higher you need to correct the CPU section of your DSDT to pass CStates to the OS.Sleep and wake works at any clock with these modifications and C2RC3 and PCEFI10.5, even when either or both of the two CState options are disabled in BIOS.

Thanks, I dont know why I didn't try that. I was copy pasting from your post. I ended up using your DSDT and edited the layout-id for audio. I use 885 for 3 outs 2 in.

0x75, 0x03, 0x00, 0x00

I am getting KP shortly after resuming sleep. Could this be due to power management settings? I'm certain I have everything disabled. Except mode S3-STR and Soft-off. I also got a kernel panic from Safari and Window Server while using iTunes saying that core 4 was no longer responding.

For OC settings I used 185 for BCLK and x8 for SPD to get 1480mhz but still used the XMP profile for my memory @ 1600mhz. Everything else is auto. Seems to work fine. Maybe I can tweak that later.

Also, do you think its possible to get the JMicron ports identified properly using a DSDT patch?

Posted 28 November 2009 - 01:38 PM

Bansaku

InsanelyMac Geek

Members

181 posts

Gender:Male

Location:Edmonton

Interests:Lots

Fantastic work d00d! Ever since the 10.6.2 update i5/i7 P55 systems could use vanilla Kernel. It bothered me that AppleLPC.kext always loaded (my mobo id is listed by default, yay) yet I got KP just before the boot reached the desktop (CPU7 has no HPET assigned) and thus needed NullAppleCPUPM.kext. I have been pulling out my hair for the past 5 days trying various methods in this forum (and others) with zero success to get everything as vanilla as possible; vanilla speedstep is first on my list of things to fix. Simply put your guide is bang on and by far the easiest to follow! It took me minutes and 3 restarts to get rid of NullCPUPM for good! Next step is for me to patch my DSDT so I get all my USB ports to EHCI built in vs UHCI expansion slot. Hopefully I can get sleep again.....
I however do not know if speedstep is functioning. I used voodoopstate.kext and PStateChanger app before. I have since taken them out. All kexts are 64-bit and I am unsure what apps will work (properly).

Posted 28 November 2009 - 02:11 PM

Thanks, I dont know why I didn't try that. I was copy pasting from your post. I ended up using your DSDT and edited the layout-id for audio. I use 885 for 3 outs 2 in.

0x75, 0x03, 0x00, 0x00

I am getting KP shortly after resuming sleep. Could this be due to power management settings? I'm certain I have everything disabled. Except mode S3-STR and Soft-off. I also got a kernel panic from Safari and Window Server while using iTunes saying that core 4 was no longer responding.

For OC settings I used 185 for BCLK and x8 for SPD to get 1480mhz but still used the XMP profile for my memory @ 1600mhz. Everything else is auto. Seems to work fine. Maybe I can tweak that later.

Also, do you think its possible to get the JMicron ports identified properly using a DSDT patch?

Sounds like your KP is possibly being caused by BIOS settings.Not using the PCEFI10.5 boot file with C2RC3 could result in the instability I saw, and possibly the KP others saw after sleep and wake.I haven't done anything regarding the JMicron SATA ports because I don't use them, and I don't recall anyone doing anything other than a kext for them.

Fantastic work d00d! Ever since the 10.6.2 update i5/i7 P55 systems could use vanilla Kernel. It bothered me that AppleLPC.kext always loaded (my mobo id is listed by default, yay) yet I got KP just before the boot reached the desktop (CPU7 has no HPET assigned) and thus needed NullAppleCPUPM.kext. I have been pulling out my hair for the past 5 days trying various methods in this forum (and others) with zero success to get everything as vanilla as possible; vanilla speedstep is first on my list of things to fix. Simply put your guide is bang on and by far the easiest to follow! It took me minutes and 3 restarts to get rid of NullCPUPM for good! Next step is for me to patch my DSDT so I get all my USB ports to EHCI built in vs UHCI expansion slot. Hopefully I can get sleep again.....I however do not know if speedstep is functioning. I used voodoopstate.kext and PStateChanger app before. I have since taken them out. All kexts are 64-bit and I am unsure what apps will work (properly).

Thanks.In ioreg at IOService:/AppleACPIPlatformExpert/CPU0@0/AppleACPICPU/ACPI_SMC_PlatformPlugin you will see CPUPLimit with a value of 0x0 if you have speed step, a different value if it's not activated, or not there at all if not enabled.Use demong1's MacPro4_1.plist to get CPUPLimit speed step down clocking, and it can be verified to be functional with MSR Tools.

Posted 28 November 2009 - 08:10 PM

devDelay

InsanelyMac Protégé

Members

32 posts

Gender:Male

Sounds like your KP is possibly being caused by BIOS settings.Not using the PCEFI10.5 boot file with C2RC3 could result in the instability I saw, and possibly the KP others saw after sleep and wake.I haven't done anything regarding the JMicron SATA ports because I don't use them, and I don't recall anyone doing anything other than a kext for them.

I am using the PCEFI 10.5 and C2RC3 from digital_dreamer's boot script 4.2c. I'm assuming that is the same stuff...maybe I should download them elsewhere. I'm no longer getting any KP except after sleeping.

Did anyone ever figure out how to get Wake for Ethernet network access to enable?

Posted 29 November 2009 - 12:18 AM

Bansaku

InsanelyMac Geek

Members

181 posts

Gender:Male

Location:Edmonton

Interests:Lots

Really noob question here (even though I am not); How do I boot into 32-bit mode? I am using Chameleon2r3 with PC EFI_10.5 (modified boot for 1156 chipsets) and -x32 and arch=i386 do nothing. MSR tools display nothing when I load it, hence why I asked if there was a 64-bit option. However, IOReg reports CPULimit as 0x0 with 14 P-states listed (presumably the same 14 VoodooPstate gave), and CPU temps seems to be 2-3'C cooler. Geekbench also reports a higher score of 9600 vs 9200 at stock frequency of 2.8GHz. Maybe due to Turbo kicking in?

Posted 29 November 2009 - 04:27 AM

d00d

InsanelyMac Sage

Members

479 posts

Gender:Male

Location:MHT, HYA

Really noob question here (even though I am not); How do I boot into 32-bit mode? I am using Chameleon2r3 with PC EFI_10.5 (modified boot for 1156 chipsets) and -x32 and arch=i386 do nothing. MSR tools display nothing when I load it, hence why I asked if there was a 64-bit option. However, IOReg reports CPULimit as 0x0 with 14 P-states listed (presumably the same 14 VoodooPstate gave), and CPU temps seems to be 2-3'C cooler. Geekbench also reports a higher score of 9600 vs 9200 at stock frequency of 2.8GHz. Maybe due to Turbo kicking in?

Posted 29 November 2009 - 05:38 AM

Bansaku

InsanelyMac Geek

Members

181 posts

Gender:Male

Location:Edmonton

Interests:Lots

No luck...I even tried using Lizard. Maybe I have to turn HPET to 32-bit in bios to boot into 32-bit mode?

I did use demong1's MacPro4_1.plist right off the get go. Interesting thought though. Unfortunately, I trashed the original unmodified kext after demong1's plist worked (something I rarely do, but it was late...). I would like to give it a try.

Posted 29 November 2009 - 09:20 PM

devDelay

InsanelyMac Protégé

Members

32 posts

Gender:Male

No longer getting any kernel panics...

I only get a kernel panic after sleep if I use any of the JMicron ports. Which sucks because I only usually use one of the JMicron ports for my DVD drive. Any way we can fix this? It appears to be caused by IOAHCIFamily.kext

Does checking the `Start up automatically after a power failure' option in Energy Saver help the sleep reboot (assuming PX40 section of the DSDT fixed to get AppleLPC.kext to load)?

No longer getting any kernel panics...

I only get a kernel panic after sleep if I use any of the JMicron ports. Which sucks because I only usually use one of the JMicron ports for my DVD drive. Any way we can fix this? It appears to be caused by IOAHCIFamily.kext

Any idea how to get wake on lan to work? Is that simply an ethernet driver issue?

I can't clock higher than 3.7 GHz and turbo without KPs in OS X, and I'm booting 32 bit (x22 is 4.07 GHz).However, I can clock at 4.1 without turbo and it doesn't KP.Wake on LAN appears to be a driver feature, and none of the Realtek kexts I've tried enable this feature.

Posted 30 November 2009 - 03:41 AM

You should be able to boot 32 bit with the following in com.apple.Boot.plist;<key>Kernel Flags</key><string>arch=i386</string>

To tell if you were successful (32bit is i386, 64bit is x86_64);[mac05:~] me% uname -pi386[mac05:~] me%

Do you get CPULimit 0x0 using demong1's MacPro4_1.plist, or does that happen automatically on GA-P55?

Confirmed that yes you do need to use demong1's MacPro4_1.plist to get CPULimit 0x0. As well, IOHWControls value increase from 1 to 3, and IOHWCtrlLoops increase from 1 to 2. Funny thing is though, AppleLPC.kext loads either way.