Jump to content

DSDT for Asus P8P67-M PRO


  • Please log in to reply
833 replies to this topic

#421
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

You don't get these? What is that driver anyway?

I have seen it working once while I was stripping the DSDT weeks ago but after that I always get this blank screen. Are you using the factory _PSS object or did you make one yourself?

Reading the MSR's is only possible in kernel space, so all of these tools need a kext. MSR Tools only works in 32bit.

I'm using MBP8,3 definition and my crafted SSDT_PR.


This is the one, it uses 0xFE in PSD and has no TSD. (Remember folks, this is for i5-2500K only)
Attached File  SSDT_PR.aml.zip   703bytes   104 downloads

#422
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

Reading the MSR's is only possible in kernel space, so all of these tools need a kext. MSR Tools only works in 32bit.

Ok but what kext might that be? This way I can check if I have it, or that some update or action of me removed it.

I'm using MBP8,3 definition and my crafted SSDT_PR.

This is the one, it uses 0xFE in PSD and has no TSD. (Remember folks, this is for i5-2500K only)
Attached File  SSDT_PR.aml.zip   703bytes   104 downloads

I'll have a look at it. Thanks.

BTW. The 10K524 update changed the error a little:
ACPI_SMC_CtrlLoop::loadStepperProgram - pmCPUControl (PMIOCSETPSTATESTEPPER) failed, result = 0x4
The version number is still the same (4.7.0) but now it is using uppercase (PMIOCSETPSTATESTEPPER) and the 0x4 was 0x16 before.

#423
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

Ok but what kext might that be? This way I can check if I have it, or that some update or action of me removed it.

info.olofsson.driver.CMSRToolsDriver (1.0.1d1)
Kext_MSRTools.kext is inside the bundle.

BTW. The 10K524 update changed the error a little:

AICPUPM still the same?

#424
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

info.olofsson.driver.CMSRToolsDriver (1.0.1d1)
Kext_MSRTools.kext is inside the bundle.

Ok. The kext loads fine but the screen goes blank.

AICPUPM still the same?

Same version number yes, but it might have changed anyway. Let me check something... Yes. Still the same!

BTW. The error is not there when I use MacBookPro8,3 but I want to use iMac12,2 :)

Going to do a move trick once again...

#425
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
For the SSDT_USB, the P8P67 has
Name (_S4D, 0x02)
Name (_S3D, 0x02)
Name (_S2D, 0x02)
Name (_S1D, 0x02)

And in yours
Name (_S3D, 0x03)
Name (_S4D, 0x03)

Is there a reason to not set the states for S1 and S2? I find the section 7.2.15 in the ACPI specs rather cryptic, can you explain why it is 0x03?

#426
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

For the SSDT_USB, the P8P67 has...

And in yours...

Is there a reason to not set the states for S1 and S2? I find the section 7.2.15 in the ACPI specs rather cryptic, can you explain why it is 0x03?

Yes. Look in kernel.log and find this:
ACPI: System State [S0 S3 S4 S5] (S3)
No S1 / S2 support. No point of having them. Same as in Apple ACPI tables.

#427
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Ah, thanks for clearing that up!

I'm a bit puzzled as to why AppleSMBIOS was not updated and still assumes quad-fsb. Surely, something must be set somewhere else for the iMacs.

#428
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

Ah, thanks for clearing that up!

I'm a bit puzzled as to why AppleSMBIOS was not updated and still assumes quad-fsb. Surely, something must be set somewhere else for the iMacs.

Ah but something did change. We'll get there later but first. I'm on iMac12,2 now (no errors) and I think to have found something we missed. Open MacBookPro8_3.plist and look at ringFreqTables which I think are the control values for the CPU stepper, and possibly the GPU stepper as well.

Change the model in MacBookPro8_3.plist to MacBookPro8,4 and you'll lose: "Stepper CPU" under Supported Features (IOPMrootDomain) and CPUPlimit under CPU0@0 -> AppleACPICPU -> ACPI_SMC_PlatformPlugin

#429
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu
New and improved ssdt_pr.dsl

1.) No more errors in kernel.log
2.) Works fine here with Sandy Bridge model identifiers: MacBookPro8,3 and iMac12,2
3.) Need up-to-date copies of: MacBookPro8_3.plist and/or iMac12_2.plists (see attachments).

Note: There might be, in fact this is most likely, objects that are no longer required, but since I might run out of time before my departure / internship... I rather have you started so that other people can rip the unused stuff out :)

Note well that I made this one for my Intel i7-2600K so i5-2500(K) folks need to remove the extra CPU objects, and also make one other change:
Name (_PSD, Package (0x05) { 0x05, Zero, Zero, 0xFC, 0x04 })
Here I changed the 0x08 into 0x04 like I had a i5-2500(K) processor. Easy huh?

The most important change however has to be made in the methods _PSS and APSS. Look at what our friend flAked here is using, or even better... simply use his files ;)

Attached Files



#430
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Hmm can't do any testing, because my boot is failing "randomly" on registerLPCDriver. Need to get this sorted first.

The problem is, I don't have any clue how to get to the bottom of this.

Soon to be attached here...

What has changed? 0xFC in PSD?

#431
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

What has changed? 0xFC in PSD?

That and I also changed the _PSS and APSS objects (and callers).

Found a note from my father (P5K PRO thread) saying that with 0xFC you can disable EIST in the BIOS and still have a functional CPU stepper in OS X.

Say. What value do you get for "Stepper CPU"? Here it is set to 0x1fe0007 but I have had 0x1fd0007 as well. I think that this changes with the number of P-States in the PerformanceStateArray. Just a guess of course but that's what I think it relates to.

Note the 'e' in it (0x14) and me having 20 P-States, which are taken from the APSS object, and not the _PSS object (like with other/older CPU models).

Right. This can only be found in the Sandy Bridge models:
<key>ringFreqTables</key>          <array>            <array>              <dict>                <key>gtFreq</key>                <integer>700</integer>                <key>ringFreq</key>                <integer>1100</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>750</integer>                <key>ringFreq</key>                <integer>1100</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>800</integer>                <key>ringFreq</key>                <integer>1200</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>850</integer>                <key>ringFreq</key>                <integer>1300</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>900</integer>                <key>ringFreq</key>                <integer>1600</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>950</integer>                <key>ringFreq</key>                <integer>1700</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1000</integer>                <key>ringFreq</key>                <integer>1800</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1050</integer>                <key>ringFreq</key>                <integer>1900</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1100</integer>                <key>ringFreq</key>                <integer>2000</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1150</integer>                <key>ringFreq</key>                <integer>2100</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1200</integer>                <key>ringFreq</key>                <integer>2200</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1250</integer>                <key>ringFreq</key>                <integer>2300</integer>              </dict>              <dict>                <key>gtFreq</key>                <integer>1300</integer>                <key>ringFreq</key>                <integer>2300</integer>              </dict>            </array>          </array>
And thus this has got to be the handbrake – limiting the Geekbench scores people have been reporting about when they use a SB model identifier.

p.s. Can you boot with the -x flag?

Off-topic: I am hugely impressed by the Scythe Mugen 2 rev. B cooler I installed yesterday. Comes close to a water cooler set, and that for only 37 Euro. Worth every single penny and thus if you are looking for a great but very cheap cooler ;)

Ok. This is it for now. Have do to some other things now. Back later (better be prepared and get used to the new time zone).

#432
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

Say. What value do you get for "Stepper CPU"? Here it is set to 0x1fe0007 but I have had 0x1fd0007 as well. I think that this changes with the number of P-States in the PerformanceStateArray. Just a guess of course but that's what I think it relates to.

p.s. Can you boot with the -x flag?


SafeBoot and recreating the caches will let me boot again, but it's strange still.

With the new iMac12_2.plist I get AGPMEnabler, 0x1fd0007 for Stepper CPU and CPULimit is 0x0.
With the SMBIOS fix Stepper CPU is 0x1fe0007.

Here is the current SSDT_PR for i5-2500K:
Attached File  ssdt_pr_minimal_rev4.dsl.zip   2.03KB   154 downloads

And some nice reformat-action:
Scope (\_PR.CPU1){	    Method (APSS, 0, NotSerialized) { Return (\_PR.CPU0.APSS) }            Method (_CST, 0, NotSerialized) { Return (\_PR.CPU0._CST) }            Method (_PCT, 0, NotSerialized) { Return (\_PR.CPU0._PCT) }            Method (_PPC, 0, NotSerialized) { Return (\_PR.CPU0._PPC) }            Method (_PTC, 0, NotSerialized) { Return (\_PR.CPU0._PTC) }            Method (_PSD, 0, NotSerialized) { Return (\_PR.CPU0._PSD) }            Method (_PSS, 0, NotSerialized) { Return (\_PR.CPU0.APSS) }            Method (_TPC, 0, NotSerialized) { Return (\_PR.CPU0._TPC) }            Method (_TSS, 0, NotSerialized) { Return (\_PR.CPU0._TSS) }}


With the modified AppleSMBIOS.kext (and the updated SSDT_USB) the boot hangs for about 10sec on USBF:

May 22 20:01:24 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready
May 22 20:01:24 localhost kernel[0]: USBF: 20.735 AppleUSBEHCI[0xffffff8012341000]::CheckSleepCapability - controller will be unloaded across sleep
May 22 20:01:24 localhost kernel[0]: USBMSC Identifier (non-unique): 058F63646476 0x58f 0x6364 0x100
May 22 20:01:24 localhost kernel[0]: USBF: 55.596 AppleUSBEHCI[0xffffff80120c0000]::CheckSleepCapability - controller will be unloaded across sleep
May 22 20:01:24 localhost kernel[0]: USBF: 56.544 [0xffffff80126e4600] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying. (Port 7 of Hub at 0x1d100000)
May 22 20:01:24 localhost kernel[0]: USBF: 57.286 [0xffffff80126e4600] The IOUSBFamily has successfully enumerated the device.


With the original kext I only get:

May 22 19:43:30 localhost kernel[0]: USBMSC Identifier (non-unique): 058F63646476 0x58f 0x6364 0x100



Geekbench (32bit) only gives me 9024 points and 9800 in 64bit. SMBIOS-fix around the same, no big difference there.

#433
elitee

elitee

    InsanelyMac Protégé

  • Members
  • PipPip
  • 99 posts
Started fresh, got everything working with your speedstep patcher. Using iMac 12,2 Geekbench gives me 7589, I'm only using 4gb of ram atm though. Memory performance is rated poorest. FP is 10767. Using 8,3 gives me 8k. Is your 2500k overclocked?

#434
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

Started fresh, got everything working with your speedstep patcher. Using iMac 12,2 Geekbench gives me 7589, I'm only using 4gb of ram atm though. Memory performance is rated poorest. FP is 10767. Using 8,3 gives me 8k. Is your 2500k overclocked?

All stock settings, not even activated the XMP profile. I'll look into overclocking through changing APSS once I have a reliable tool to see the current frequency and turbo.

It's not exactly stable, getting SMC error again and SafeBoot KP'ing on RCX=0x03...

#435
elitee

elitee

    InsanelyMac Protégé

  • Members
  • PipPip
  • 99 posts

It's not exactly stable, getting SMC error again and SafeBoot KP'ing on RCX=0x03...


With patched SMBIOS and revoboot?

#436
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

With patched SMBIOS and revoboot?

Without the SMBIOS-fix. I was able to boot with -x after 3 resets and rebuild caches. I still don't understand it.

Do you have a windows installation and had any problems after booting it?

#437
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

Without the SMBIOS-fix. I was able to boot with -x after 3 resets and rebuild caches. I still don't understand it.

If the modified version of AppleSMBIOS.kext is causing you too much trouble, then leave it out for now.

You are not using a pre-linked kernel I hope. Please don't. At least not until things are starting to work for you.

Have you compared my SSDT_USB.dsl with yours? Are they the same? If not make sure to patch it.

Also. A low Geekbench score might actually be a first indication that things are starting to work for us. That it is stuck in a lower P-State perhaps?

#438
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

You are not using a pre-linked kernel I hope. Please don't. At least not until things are starting to work for you.

Have you compared my SSDT_USB.dsl with yours? Are they the same? If not make sure to patch it.

Also. A low Geekbench score might actually be a first indication that things are starting to work for us. That it is stuck in a lower P-State perhaps?

No pre-linked kernel. The SSDT_USB is identical, besides the S-definitions (which we covered).

Could be the P-States yes. Can we actually disable SpeedStep with our current SSDT_PR through the BIOS?

BTW, does Lion have the same AICPUPM version?

#439
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

No pre-linked kernel. The SSDT_USB is identical, besides the S-definitions (which we covered).

Fine. The S-definitions won't matter.

Could be the P-States yes. Can we actually disable SpeedStep with our current SSDT_PR through the BIOS?

I would have done that by now because when that changes your Geekbench score, then you know that the CPU stepper is doing something. Good or bad.

BTW, does Lion have the same AICPUPM version?

Let me check. Ok. The one used with DP2 and DP3 is newer. I did not bother to upgrade to the latest, but I only did that to prevent from being distracted. No time to waste after all ;)

We need a simple tool that dumps the values of the following MSR's - so that someone can run it on a real Sandy Bridge Mac:

0x35 MSR_CORE_THREAD_COUNT

0xCE MSR_PLATFORM_INFO

0xE2 MSR_PKG_CST_CONFIG_CONTROL
0xE7 IA32_MPERF
0xE8 IA32_APERF

0x198 MSR_IA32_PERF_STATUS / MSR_PERF_STATUS
0x199 MSR_IA32_PERF_CONTROL / IA32_PERF_CTL
0x19A IA32_CLOCK_MODULATION

0x1A0 IA32_MISC_ENABLE
0x1AA MSR_MISC_PWR_MGMT
0x1AC MSR_TURBO_POWER_CURRENT_LIMIT
0x1AD MSR_TURBO_RATIO_LIMIT

0x1B0 IA32_ENERGY_PERF_BIAS

0x1FC MSR_POWER_CTL

// Sandy Bridge & JakeTown specific 'Running Average Power Limit' MSR's.
0x602 ???
0x606 MSR_RAPL_POWER_UNIT
0x610 MSR_PKG_RAPL_POWER_LIMIT
0x611 MSR_PKG_ENERGY_STATUS

// Sandy Bridge IA (Core) domain MSR.
0x639 MSR_PP0_ENERGY_STATUS

// Sandy Bridge Uncore (IGPU) domain MSR's (Not on JakeTown).
0x640 MSR_PP1_POWER_LIMIT
0x641 MSR_PP1_ENERGY_STATUS
0x642 MSR_PP1_POLICY

And compare them with the data from our Asus boards.

#440
elitee

elitee

    InsanelyMac Protégé

  • Members
  • PipPip
  • 99 posts

Without the SMBIOS-fix. I was able to boot with -x after 3 resets and rebuild caches. I still don't understand it.

Do you have a windows installation and had any problems after booting it?


I have a single GUID-formatted drive and OSX is on the first visible partition, windows on the second. No problems booting either using anval.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy