Jump to content

What is Speedstep and how do I patch it?


  • Please log in to reply
74 replies to this topic

#21
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
Umm, I could't read too much past the first DSDT patching post, but why are you thinking USBBusFix=Yes a bad thing? When added to org.chameleon.Boot.plist you don't have to type it every time. Now my DSDT is edited for USB, but I still use Bus fix because it boosts all benchmark scores by almost 10%. I have confirmed the same behavior on every x58 system where I was able to convince the owner I'm not crazy and to try it. Only one core 2 duo owner I know has tried and it also worked for them. So I doubt it would hurt.

#22
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil
Eep:
I asked him the same question earlier. Anyway he has ICH10, which shouldn't need USBBusFix (Which he did add to his Boot.plist btw).
I'm trying to fix it in DSDT. Thanks for the info about the performance boost, I'll try it and let you know. (P45/Core 2 Duo).

Squid:
The BIOS screenshots unfortunately don't show anything useful (to me at least). You can disable the serial port if you're not using it.
Please take photos of what's inside "Memory configuration" and "PCI Express configuration".

While taking a close look at your bdmesg output I found that you appear to have two /Extra folders:
Read HFS+ file: [hd(0,2)/Extra/Themes/Blackosx_Button/text_scroll_next.png] 795 bytes.
Read HFS+ file: [hd(0,2)/Extra/Themes/Blackosx_Button/font_console.png] 5562 bytes.
Read HFS+ file: [hd(0,2)/Extra/Themes/Blackosx_Button/font_small.png] 27435 bytes.
Read HFS+ file: [hd(1,3)/Library/Preferences/SystemConfiguration/com.apple.Boot.plist] 232 bytes.
Read HFS+ file: [hd(1,3)/Extra/org.chameleon.Boot.plist] 826 bytes.
Read HFS+ file: [hd(1,3)/Extra/dsdt.aml] 19741 bytes.
One on your system drive: hd(1,3) and one on another drive: hd(0,2)

Please use only one /Extra folder.

Try this: Attached File  dsdt.aml.zip   6.9KB   5 downloads

Device renaming and IRQ removal
Corrected order of _ADR and _UID under PCI0
Removed all PS2 device and related code
Removed UAR1 code
Set Darwin OSVR (not 100% sure that I'm setting it in the right place though)
Added Method DTGP
Added Firewire device under P0P2
Added standard Intel HDEF device
Added SBUS device
Fixed compiling errors
First attempt at fixing USB

Boot with USBBusFix=n and let me know if it works without it. Try sleep.
What are you using for sound? btw If you have a HDAEnabler.kext you can delete it now.
Attach your smbios.plist.
As before, please attach an ioreg dump with the new DSDT loaded so I can check if I did something right :whistle:

#23
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Hi Gringo...

First the issue of the 2 Extra folders... On occasion the bootloader has given me problems and I have to boot directly from another disc...ie. on chameleon if I chose snow leopard (not as my main partition) i could not boot.... If I chosos F10 and then that drive and it has a dsdt, extra folder etc and boot directly I can get in (in otherwords its a failsafe)

Will let you know how I get on ...

- Should I not have one Extra file for each installation of OS X...???

@eep

Think I mentioned it in this thread orrockinrons basic dsdt thread that basically I cannot boot without USBBusfix=yes. In one such scenario trying to get sleep working for example,,, I was unable to get back into the Desktop - even with USBBusFix=yes... However with a patched (and not even correctly patched) USB fix in the dsdt I was able to,,, Ultimately I would love to have this fixed in the DSDT as when running multiple versions of OS X (e.g. Lion, Snow Leopard and Mountain Lion) it saves a lot of hassle having to load it every time,,,

#24
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Zipped up the Extra folders on my main ML drive and SL drive and deleted the folders...
unchecked USBBusFix
replaced dsdt.aml....
restarted...

Mouse wouldn't budge and no response from keyboard (ie USB patch did not work....) rebooted again with USBBusFix=yes

NO AUDIO... No Output devices found... running on AppleHDA.kext... replaced this with Toleds's Sculpty Geese's Realtec 888 kext for DSDT enabled... same result...

I am able to get that much working here myself though. Had it working fine before... with the HDA addition to the Graphics Info in the DSDT... However I was not able to get graphics without GrahicsEnabler=yes...

For the time being I am running the non-DSDT HDAEnabler version on the Main Mountain Lion install... On the test install though sound is now NOT working with the new dsdt....

Attached Files



#25
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil
Okay...if you don't want to do it the right way lol...I've taken out the HDEF device so you can use your patched AppleHDA again.
Attached File  dsdt.aml.zip   5.95KB   7 downloads
HDEF device removed
All code for non-existant on-board graphics removed
New USB code and some other fixes (some are fixes for my fixes!) from Olarila (see post below)

Here's a new org.chameleon.Boot.plist and a complete MacPro3,1 smbios.plist (yours was missing stuff and had a misspelling causing one setting to not work)
Attached File  plists.zip   1.59KB   7 downloads
With this org.chameleon.Boot.plist (npci=0x2000 kernel flag) and DSDT you should now be able to use an unpatched IOPCIFamily.kext - try it and let me know what happens. Hopefully you've kept a backup of the original.

I don't know if you're aware of this but USBBusfix=y actually applies three different fixes at once, two of them may not be necessary (from Chameleon boothelp.txt):

USBBusFix=Yes - Enable all USB fixes below:
EHCIacquire=Yes - Enable the EHCI fix (disabled by default)
UHCIreset=Yes - Enable the UHCI fix (disabled by default)
USBLegacyOff=Yes - Enable the USB Legacy fix (disabled by default)

Anyway, I've removed USBBusfix=y, it shouldn't be needed anymore with the device ID patches to USB in the attached DSDT.
EthernetBuiltIn=y was missing, added.
Forced C2 and C3, let's see if it works.
EnableHDMIAudio=y set. Nvidia HDMI audio should work unless you need to patch AppleHDA.kext for that.

As always, post an ioreg after applying the above.

About /Extra:
If you have all kernel extensions in /S/L/E on both your OS X installations, then you only need to keep /Extra on the drive/partition that has Chameleon installed on it. It's safe to remove the other one.

#26
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
add DTGP method to devices?

Edit: found this, although cheaters never win, at the very least it may help as a reference to assist with some entries. Patch from Olarila.com for Intel DP43TF mobo, and of course patch is for use with DSDT Editor, where as Real Men use DSDTSE :)

Attached Files



#27
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil
Thanks man (and thanks OldNapalm/Mald0n!), that's useful, doesn't feel that much like cheating, I already did most of what's in there.

Squidder posted a clean DSDT extracted on Windows with Everest that I've been working on and it doesn't have any floppy controller or LPT code in it, as well as a bunch of other devices scheduled for removal in the patch..hmm that's odd.

I'll try to run the Olarila patch against the vanilla DSDT and see what happens.

I have the same USB controller (ICH10/ICH10R) and his code is exactly like mine now but he needs USBBusFix and I've never used it. There must be something else in the way. Let's see if the new DSDT works for him.

/EDIT

DSDT repatched and reattached above. Now to sleep for 4 hours. Meh..this is worse than Diablo II twelve years ago..

#28
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Hi Guys,

Sorry... didn't get a chance to check back before now...late here so will have to look at this tomorrow evening.

Gringo...by all means if you can fix the audio be my guest.... just saying I have that Nvidia desktop/HDEF code to fall back on if that area goes pear-shape. Having a few issues on my main install...upgraded to 10.8.1 and had issues with my scanner... had two desktop kps.... Hopefully I'll have a bit more stability tomorrow but as I have to babysit my daughter till around 7.30 pm mon-fri I only really have time at night! so please be patient

#29
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
Not sure if this is cosmetic only, but here is GV's edited DSDT, with added props to Mald0n! and OldNapalm of course, with USB0 changed to UHC1, USB1 to UHC2 etc. And the EHCI's renamed to EHC1 and EHC2

Attached Files



#30
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Gringo - still will not get a chance to test before tonight but I want to mention something very significant. I mentioned I updated to 10.8.1 above and was getting desktop crashes... so upgraded to 10.8.2 beta and discovered 2 things... one Sophos didn't play nice so I deleted it... On reboot I found that yet again boot was faulting on my old friend IOPCIFamily.kext... Remember that I cannot boot 10.8 without Netkas's patched version of it... Just sits on[ PCI Configuration begin ]

I also mentioned that without the patched version I could not sleep the monitor even as I could not wake it with the mouse or keyboard... eep take note.... however with the patched (but not correctly patched) DSDT with the USB fix I was at least able to do that but could not get the cpu to sleep (THIS IS WHY I WOULD PREFER TO HAVE THE USB FIX!)... In addition without Netkas's patched kext I do not get the spinner on the bootscreen under the apple. The lack of it freaks me out!

So on to 10.8.1 and 10.8.2...

I get KP's with Netkas's patch so had to reinstate the unpatched IOPCIFamily.kext. I rebooted in V...got to PCI CONFIG BEGIN and booted first time... rebooted without flags and as expected No spinner... and now when I sleep the machine supposedly...cannot even wake the monitor as mentioned in this post and have to hard reboot!

Looks as though the fix will have to be built around the unpatched kext.. and not sure if there's a way to bring the spinner back!,,,

However I am restoring 10.8 to my main install for now and will test your latest efforts this evening in the test environment beforehand. I might go into the 10.8 installer and drag our the original IOPCIFamily.kext and try your previous fixes with it prior to this though... although I may not be able to boot as a result----

#31
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Hi Gringo,

Addressing your post #25 - I first tried replacing Netkas's patched IOPCIFamily.kext with the standard 10.8 version before replacing the plists and DSDT... tried booting 3 times and as always with this kext... problems, problems!

This time

Posted Image

So swapped it back replacing it with Netkas's version (but remember I cannot boot 10.8.1 or 10.8.2beta with Netkas's version... weird stuff!

Got to the login screen and nothin' doing as before so rebooted with EHCIacquire=y only and no problem logging in this time...
However:

NO SOUND

Posted Image

at this point I tried patching the NVcard and HDAU device methods myself,,, compiled fine but in DSDTSE something odd... no matter how many times I compiled the dsdt the HDAU code never appeared in the saved version... yet in text wrangler the code is there!!! (DSDTSE buggy???)

tried loading an AppleHDA.kext I patched myself from the install disk... and rebooting...still no sound

replaced it with Toledo's patched version for DSDT enabled audio...rebooted... still nothing... Looks like the only way I'm gonna get sound there is with HDA Enabler for now... Not sure if the edits did this...

Sleep is as before - monitor sleeps and responds to mouse but cpu does not sleep...

just a question here though shouldnt ncpi value be 0x3000 as opposed to 2000? (as I understand it Sl was 1000, Lion 2000and ML 3000. I've never had to use it previously and whenever I did it had no effect...

Files you requested Attached File  Admin’s Mac Pro.zip   314.78KB   1 downloads Attached File  Screens.zip   167.39KB   1 downloads

#32
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
try version I posted above, it is same as GV's, but changed USB UHCI and EHCI names to match real mac. For HDMI audio using HDAU, apple HDA must be loaded, so no audio, will still be no audio, even if DSDT edit was right. I'll take another look too, we were all up kinda late last night :)

and npci=0x3000 will help in Lion+ for some people, if your stuck at pci configuration begin

OK, I see problem with audio, HDEF completely missing in DSDT. 5 mins

here, HDEF added and HDMI audio. You will still possibly need patched appleHDA.kext

Attached Files



#33
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Thanks eep....

Will have a crack at tomorrow I hope... Having an early one here for a change... only 1am!!! hahaha

Ate something dodgy last night or today and it took more out of me than I wanted... tired, headache and sore throat... guess no more play for today

c'ya tomorrow!

btw... "AppleHDA must be loaded" - I was using a version I patched myself and also the Mouldy Beest version I mentioned (Toledo's patched version for DSDT enabled Audio) which previously worked with Device (HDAU) and no helper... problem here though is that although the nVidia info now showed up in system profiler,,,, I could not boot even still without GraphicsEnabler=.

I was in contact with toledo who gave me info on patching the AppleHDA some more to get 5:1 etc... and for HDMI to show up as HDMI in Audio Midi... really what I'd like to achieve is 5:1 playback through my Creative Inspire system and also be able to get proper 5:1 via the TV... but I reckon HDMI is no longer really a biggie as I bought a cheap-O Panasonic Bluray player at the weekend and am more than happy with it...plays frikkin everything... m4v, mp4, divx HD etc.. Bought a Philips DVD player only about 2 years ago for around what I paid for this... plays naff all and I always had to re-edit movies several times to get rid on the damn boxes around them... it did offer 16:9 but not full screen,,, anyhows... kinda as mentioned to Gringo... more after 5:1 for gaming and ac3 5.1 / 3:2 more than anything... or even full DTS...


outta here... catch y'all later!

BTW... love your slogan about Interests--anything shorter than 5 minutes... Shame! Jethro Tull Thick as a Brick totally lost on ya then...;)

#34
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
appleHDA's you have should be fine. Adult ADD for the winz!

#35
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
Hi eep...

I played around with your dsdt for hours and hours like a dog with a bone... no sound, wake still the same and had to boot with ehciacquire...

Finally wiped the entire OS installation and reinstalled... amazingly was able to boot with the standard IOPCIFamily.kext but no spinner,,, was able to boot with EHCIacquire=y but sleep as mentioned before... puts monitor to sleep but cannot wake with Mouse, keyboard etc so have to hard boot.

Tried patching the Sound and graphics in DSDT... rebooted... no mouse rot keyboard even with ehciacquire, USBBusFix etc..totally dead... Suggesting that even the slightest tweak to the DSDT without a proper EHCI fix will totally kill my mouse and keyboard functionality! Total killer...

Feel like I'm running round and round in circles here.

As mentioned too, to make matters worse - updates to 10.8.1 and 10.8.2 will require the standard unpatched IOPCIFamily.kext meaning that any and all fixes really should be made around the standard version. I cannot even test this until I get the system running eithout a USBBusFix or EHCI fix... now maybe you can see my point about USBBusFix bot being a good thing,,,,

Whatever the outcome - wondering if it'll ever be possible to get the spinner back in the standard IOPCIFamily.... Hate not having it!

Anyhow... long evening it's been and off to bed... (just wish I still had that badly patched DSDT I mentioned that basically let me work without USB or EHCI fixes and gave me sound. Would have been a much better place to start from... cannot remember what I did to get that far... all it needed was the sleep fix... (and that means sorting out the firewire problem,,,,

#36
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
is there a setting in your bios about ehci handoff?

#37
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil
This is why I asked for photos of his BIOS screens earlier. It appears that there isn't, I only saw a setting to disable legacy USB IIRC.

#38
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff

This is why I asked for photos of his BIOS screens earlier. It appears that there isn't, I only saw a setting to disable legacy USB IIRC.

What can I say other than "great minds think alike"

#39
Squidderlee

Squidderlee

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 105 posts
  • Gender:Male
  • Location:Lima, Peru
In the DSDT too - nowhere to be found although there is an EHC1 entry???? yeah, I know.... Here we are talking bout getting Intel Mac to run on Intel Hardware... and we seem to have few or no issues at all with Gigglybits and Asus.... but when it comes to Intel???? Wow,,,,, Brave New World!

#40
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff

In the DSDT too - nowhere to be found although there is an EHC1 entry???? yeah, I know.... Here we are talking bout getting Intel Mac to run on Intel Hardware... and we seem to have few or no issues at all with Gigglybits and Asus.... but when it comes to Intel???? Wow,,,,, Brave New World!

Hmmm...I'm 80.86% sure it's there, because I added it. Unpatched it would only appear in same way on real mac. Downloading the same one again that I uploaded to look.......
Attached File  Editor .jpg   127.83KB   28 downloadsAttached File  Editor -1.jpg   127.96KB   25 downloads
On HDEF, I added it with super generic Layout ID of 12 aka 0x0C 0x00 0x00 0x00 where as using specific one for your audio codec may be best, i.e. alc889a/885 layout ID 0x75 0x03 0x00 0x00 or if patching native ML appleHDA.kext layout ID of 1 aka 0x01 0x00 0x00 0x00

Now I have ICH10-R as well with no USB issues, but I use very complex method of injecting them via DSDT requiring many lines of code:
			}
			Device (EHC1)		//begins here//
			{
				Name (_ADR, 0x001D0007)
				Method (_PRW, 0, NotSerialized)
				{
					Return (GPRW (0x0D, 0x04))
				}
			}               //ends here//
			Device (UHC4)
			{






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