Jump to content

AnVAL (ACPI Loader)


valv
 Share

1,538 posts in this topic

Recommended Posts

valv, I notice the CPUFreq is reported 0 with boot6 & boot7
I'd need your bdmesg.

 

anyone who'd like to help with Turbo; test this one: boot8 is now useless

Link to comment
Share on other sites

hi valv,

great work!

I would like to test your bootloader, with both my hdx18 and my dv8 (i7) but is there a way to install/test it without corrupting windows 7 installation? I would like to avoid to use an external usbkey...

Is there any way with the bootloader/dsdt to let the system recognize battery natively with internal power management without voodoobattery or appleacpibattery?

Thanks!

Keep your great work growing, like you are doing!!

Mal

Link to comment
Share on other sites

@manmal, thanks! Regarding test-boot, best bet is an usb-key. am about to post some steps to JBraddock too. If can't afford this way, then I'd prefer you stay away from tests: I don't want to break your install. You guyz should really think about it, as it offers an emergency boot-loader whenever things go broken, plus boot-cds are not good to test speed-step...

 

@MiniHack, thank u for feedback. I'd really appreciate you test boot8 :D

Link to comment
Share on other sites

@manmal, thanks! Regarding test-boot, best bet is an usb-key. am about to post some steps to JBraddock too. If can't afford this way, then I'd prefer you stay away from tests: I don't want to break your install. You guyz should really think about it, as it offers an emergency boot-loader whenever things go broken, plus boot-cds are not good to test speed-step...

 

@MiniHack, thank u for feedback. I'd really appreciate you test boot8 :D

BDmesg for boot8 attached.

Good news is there is shown boost on the output and in MSRtools there is shown a variation now in the voltage of cpu0 - however it is undervolted from 0.972 to 0.844 (cpu1 has .972 as both target and actual volt). Actual freq of cpu0 shows as 2.25ghz compared to an indicated max of 2.26ghz. Geekbench results shows less performance (unsurprisingly as one cpu is undervolted).

Core and thread reporting is same for 7 and 8.

Bdmesgboot8.txt.zip

 

EDIT: Ignore comments re. MSR tools. Seems unreliable and locks up on my system and so I do not trust the reading which showed an undervolt. I have not been able to replicate that reading....all others show steady cpu freq. readings

Link to comment
Share on other sites

@JBraddock, those are the steps I took:

  • Removed the platformplugin thingy from our legacy kext
  • rebuilt mkext to /Volumes/EFI/Extra/10.6/Extensions.mkext
  • reboot into 32bit mode

other than that, I still use mbp5,3 as model

EDIT: sorry, it is mbp5,4

my boot.plist is this: Bootplist.zip

Ok I tried that. Just to make sure that I followed the right path here is what I changed in my setup.

 

- Remove ACPI_SMC_PlatformPlugin from LegacyHdx18.kext and updated caches.

- Remove all the SSDT tables that I'd put under Extra folder.

- Tried the latest boot file. (5 and 7)

- Updated the boot.plist with the followings

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutoResolution</key>
<string>Yes</string>
<key>Boot Banner</key>
<string>Yes</string>
<key>Default Partition</key>
<string>hd(0,1)</string>
<key>EHCIacquire</key>
<string>No</string>
<key>EnableC6State</key>
<string>Yes</string>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>FixFSB</key>
<string>Yes</string>
<key>ForceHPET</key>
<string>No</string>
<key>GeneratePStates</key>
<string>Yes</string>
<key>Graphics Mode</key>
<string>1280x1024x32</string>
<key>GraphicsEnabler</key>
<string>No</string>
<key>Kernel</key>
<string>/mach_kernel</string>
<key>Kernel Flags</key>
<string>arch=i386</string>
<key>Legacy Logo</key>
<string>No</string>
<key>Rescan</key>
<string>Yes</string>
<key>Rescan Prompt</key>
<string>No</string>
<key>SMBIOS</key>
<string>/Extra/smbios.plist</string>
<key>SMBIOSdefaults</key>
<string>Yes</string>
<key>Scan Single Drive</key>
<string>No</string>
<key>SystemType</key>
<string>2</string>
<key>Theme</key>
<string>SnowKitty</string>
<key>Timeout</key>
<string>5</string>
<key>UHCIreset</key>
<string>No</string>
<key>USBBusFix</key>
<string>No</string>
<key>USBLegacyOff</key>
<string>No</string>
<key>UpdateACPI</key>
<string>Yes</string>
<key>UseMemDetect</key>
<string>Yes</string>
<key>VBIOS</key>
<string>Yes</string>
<key>Wait</key>
<string>Yes</string>
<key>minVolt</key>
<string>850</string>
<key>oemAPIC</key>
<string>Yes</string>
<key>oemASFT</key>
<string>Yes</string>
<key>oemDMAR</key>
<string>Yes</string>
<key>oemHPET</key>
<string>Yes</string>
<key>oemMCFG</key>
<string>Yes</string>
</dict>
</plist>

:

- Set mac model to MacbookPro5,4 (32Bit).

Now, here is the output.

screenshot20101121at135.jpg

There are 8 P-States and 5 C-States being generated.

 

Here is the bdmesg output.

 

LoadConfig: [hd(0,1)/Extra/com.apple.Boot.plist] 1799 bytes.
CPU: Mobile Intel® Core(tm)2 Duo CPU     P8400  @ 2.26GHz
CPU: Sticking with [FSB: 266Mhz, Bus-Ratio: 8.5] 
CPU: Tjmax= ~ 104°C           Temperature= ~ 60°C
CPU: Vendor/Family/ExtFamily: 0x756e6547/0x6/0x0
CPU: Model/ExtModel/Stepping: 0x17/0x1/0x6
CPU: Multipliers x10:         max=85, min=60
CPU: MaxDiv/CurrDiv:          0x1/0x0
CPU: TSCFreq:                 2261MHz
CPU: CPUFreq:                 2266MHz
CPU: FSBFreq:                 266MHz
CPU: SLFM:                    1
CPU: Enhanced SpeedStep:      1
CPU: NoCores/NoThreads:       2/2
CPU: Features:                0x268802a3
Chipset is GM45 (pci id 0x2a408086)
We have an NVIDIA Card
Creating 2 Mode Tables
New table with id : 0
New table with id : 1
First Standard VESA Table at offset 0x7f23
Second Standard VESA Table at offset 0x4b8f
Table #0 has 16 modes
Table #1 has 33 modes
Aspect Ratio is 5/4
Patching Table #0 : 
Mode 1024x768 -> 1280x1024 (1047 1183 1343 770 776 805)
Patching Table #1 : 
Mode 640x200 -> 640x512 (664 672 720 520 H- V+)
Mode 640x350 -> 640x512 (664 678 720 520 H- V+)
Mode 640x400 -> 640x512 (664 680 720 520 H- V+)
Mode 640x480 -> 640x512 (669 685 720 520 H- V+)
Mode 640x480 -> 640x512 (669 685 720 520 H- V+)
Mode 800x600 -> 800x640 (836 852 900 652 H- V+)
Mode 800x600 -> 800x640 (836 852 900 652 H- V+)
Mode 1024x768 -> 1024x819 (1071 1087 1152 835 H- V+)
Mode 1024x768 -> 1024x819 (1071 1087 1152 835 H- V+)
Mode 1280x720 -> 1280x1024 (1324 1340 1440 1031 H- V-)
Mode 1280x800 -> 1280x1024 (1330 1346 1440 1059 H- V-)
Mode 1400x1050 -> 1400x1120 (1474 1488 1575 1153 H+ V+)
Mode 1440x900 -> 1440x1152 (1496 1512 1620 1188 H+ V-)
Mode 1600x1200 -> 1600x1280 (1674 1690 1800 1305 H- V+)
Mode 1680x1050 -> 1680x1344 (1745 1761 1890 1381 H+ V-)
Mode 1920x1200 -> 1920x1536 (1995 2011 2160 1574 H+ V-)
Mode 2048x1536 -> 2048x1638 (2144 2160 2048 1672 H+ V+)
Mode 768x480 -> 768x614 (798 814 864 623 H- V-)
LoadConfig: [hd(0,1)/Extra/Themes/SnowKitty/theme.plist] 2799 bytes.
Resolution : 1280x1024 (Graphics Mode key)
LoadConfig: [hd(0,1)/Extra/Themes/SnowKitty/theme.plist] 2799 bytes.
Found mode 1280x1024 in VESA Table
LoadConfig: [hd(0,1)/Extra/com.apple.Boot.plist] 1799 bytes.
Setting boot-uuid to: //deleted
Closing VBios
Table #0 : Freeing backup	[OK]
Table #0 : Freeing		[OK]
Table #1 : Freeing backup	[OK]
Table #1 : Freeing		[OK]
Freeing map			[OK]
LoadConfig: [hd(0,1)/System/Library/CoreServices/SystemVersion.plist] 479 bytes.
Hibernate image is too old by 4838107 seconds. Use ForceWake=y to override
Loading Darwin 10.6
Loading kernel /mach_kernel
LoadDrivers: /Extra/Extensions.mkext
LoadDrivers: /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext
LoadACPI: [hd(0,1)/Extra/DSDT.aml] 49266 bytes.
Using PCI-Root-UID value: 0
LAN Controller [10ec:8168] :: PciRoot(0x0)/Pci(0x1c,0x1)/Pci(0x0,0x0)
Setting up lan keys
LoadConfig: [hd(0,1)/Extra/smbios.plist] 911 bytes.
Intel PM/GM45/47 DRAM Controller [8086:2a40] at 00:00.0
Frequency detected: 400 MHz (800) Dual Channel 
CAS:6 tRC:6 tRP:6 RAS:18 (6-6-6-18)
Slot: 0 Type 19 2048MB (DDR2 SDRAM) 800MHz Vendor=Samsung
     PartNo=M470T5663QZ3-CF73Q SerialNo=867C658F
Slot: 2 Type 19 2048MB (DDR2 SDRAM) 800MHz Vendor=Samsung
     PartNo=M470T5663QZ3-CF73Q SerialNo=867C669A
Patched DMI Table
Found SMBIOS System Information Table 1
Customizing SystemID with : // deleted
LoadACPI: [hd(0,1)/Extra/DSDT.aml] 49266 bytes.
FADT: Restart Fix applied !
Found ACPI CPU: CPU0
Found ACPI CPU: CPU1
Found ACPI CPU: CPU2
Found ACPI CPU: CPU3
C-State: Adding 5 states: C1 C2 C3 C4 C6
Voltage: min= 850mV, max= 1100mV
P-State: Added [Frequency 2261 MHz, FID 0x48, VID 0x1f]
P-State: Added [Frequency 2128 MHz, FID 0x8, VID 0x1d]
P-State: Added [Frequency 1995 MHz, FID 0x47, VID 0x1b]
P-State: Added [Frequency 1862 MHz, FID 0x7, VID 0x19]
P-State: Added [Frequency 1596 MHz, FID 0x6, VID 0x18]
P-State: Added [Frequency 1330 MHz, FID 0x8a, VID 0x14]
P-State: Added [Frequency 1064 MHz, FID 0x88, VID 0x11]
P-State: Added [Frequency 798 MHz, FID 0x86, VID 0xd]
FADT: Restart Fix applied !
Patched ACPI version 2 DSDT
Starting Darwin x86
Press any key to continue...

 

TjMax value for my CPU is actually 105. But in FakeSMC that I am using it is set to 100 and I didn't change it. Now the bootloader reports it as 105. Although, it shows CPU temperature is 60, actually it is around 47-55. I know this because HDX tries to keep temp below 50 and that's when it kicks the fan.

 

- After a while, MSR Tools stopped working.

- Quicktime and Itunes are not responding.

 

-. I can't get rid of my previously loaded SSDT tables. I opened up DSDTSe editor and noticed that my previous SSDT tables are still there.

I opened SSDT.aml and SSDT-1.aml and also noticed that these are recently generated. However, I do still have SSDT-2.aml, SSDT-3.aml, SSDT-4.aml and these are the modified ones as I can see it from their defitionblocks. i.e I'd changed one of them to the following.

 

DefinitionBlock ("./SSDT-2.aml", "SSDT", 1, "APPLE", "Cpu0Ist", 0x00003000)

 

I tried DropSSDT=Yes but no luck.

Edit: See below.

 

 

- I can't set Graphics Mode to 1920x1080x32. I get a black screen during the boot and it is not responding. I am using a custom theme with this resolution. 1280x1024x32 works fine.

 

@Valv, I've never seen a 34C value in my laptop :angel:

Why not?

Link to comment
Share on other sites

Ignore my comments re. msr tools. This app. seems to be freezing on my test system and then throws the geekbench results out.

 

As yet, no firm evidence of the boost feature working in practice on my system - CPU frequencies seem to be steady.

Link to comment
Share on other sites

-. I can't get rid of my previously loaded SSDT tables. I opened up DSDTSe editor and noticed that my previous SSDT tables are still there.

I opened SSDT.aml and SSDT-1.aml and also noticed that these are recently generated. However, I do still have SSDT-2.aml, SSDT-3.aml, SSDT-4.aml and these are the modified ones as I can see it from their defitionblocks. i.e I'd changed one of them to the following.

 

DefinitionBlock ("./SSDT-2.aml", "SSDT", 1, "APPLE", "Cpu0Ist", 0x00003000)

 

I tried DropSSDT=Yes but no luck.

 

- I can't set Graphics Mode to 1920x1080x32. I get a black screen during the boot and it is not responding. I am using a custom theme with this resolution. 1280x1024x32 works fine.

 

@Valv, I've never seen a 34C value in my laptop :angel:

Why not?

 

JBraddock, in DSDTSE go to "Tools" -> "DSDT files folder" and delete/move all tables in "Acpitables". Restart DSDTSE

Link to comment
Share on other sites

@valv,

 

Dell Studio:-

1) Without GeneratePStates:-

- Speedstep working

- Turbo Boost working

- PerformanceStateArray = 7

Studio1557_boot_8.txt

post-125711-1290345989_thumb.jpg

2) With GeneratePStates:-

- Speedstep not working

- Turbo Boost not working

- No PerformanceStateArray

Studio1557_boot_8_G.txt

post-125711-1290346149_thumb.jpg

 

Asus:-

1) Without GeneratePStates:-

- Speedstep working

- Turbo Boost working

- PerformanceStateArray = 11

Asus_Boot_8.txt

post-125711-1290346241_thumb.jpg

2) With GeneratePStates:-

- Speedstep working

- Turbo Boost not working

- PerformanceStateArray = 11

Asus_Boot_8_G.txt

post-125711-1290346313_thumb.jpg

Link to comment
Share on other sites

I tried boot8 as well.

 

With EnableC6State and GeneratePStates being set to yes, almost the same behaviour. At first, it seems to work fine. Quicktime, Itunes, MSR Tools etc. But after a while, If I quit the apps and try to launch again, they get stuck.

Link to comment
Share on other sites

wooa! thank u guyz.

next boot should fix rednou's issue with cpu frequency showing 0MHz; and hopefully would get us one step further to Turbo..

 

@kizwan, I don't understand how you do to get speed-step working without p-states generator, neither ssdts(edited or oem), nor smc_pp legacy kext. Is it a bios option ? Is it some app ? No way for me to understand what's going under the hood. sorry

 

from now on, test file is on the first post

Link to comment
Share on other sites

Trying to set min and max volts to 775mV and 980mv (permitted range for processor is 775mv to 1400mv) results in the BDmesg as attached (indicates min764mv, max 700mv (!)). Previously both min and max indicated on bdmesg were 700mv.....

 

MSR Tools seems to show the actual volts at 972mV regardless of what is in the plist.

Bdmesgvolts.txt.zip

Link to comment
Share on other sites

At first, it seems to work fine. Quicktime, Itunes, MSR Tools etc. But after a while, If I quit the apps and try to launch again, they get stuck.
from what I know, mbp5,4 has a p8700 cpu (same as mine). yours is a p8400. It could be the problem. Maybe changing the model you 're using or so, should fix your problem.
Link to comment
Share on other sites

@MiniHack, the thing with voltage is that I've used a hidden limit to avoid burning cpus by mistake. That limit is 250mVolts more/less from default voltage. The problem, since I could not find the good procedure to get the real voltage of Core-I cpus (as Intel did change too many things) am stack at 700 mVolts +/- the usual 250 mV.

If u or anyone else could provide me with the right msr to get more accurate, it 'd solve the problem.

I 'll do some research next. Till then, do not use more than 950 mV. sorry

Link to comment
Share on other sites

@kizwan, I don't understand how you do to get speed-step working without p-states generator, neither ssdts(edited or oem), nor smc_pp legacy kext. Is it a bios option ? Is it some app ? No way for me to understand what's going under the hood. sorry

I didn't installed any third party speedstep enabler, no legacy smc kext & no modified SSDT. I can confirm there is speedstep option in Dell Studio BIOS. No patched/legacy kexts except for PS2 keyboard & trackpad, fakesmc, audio, network & voodoobattery. Using vanilla kernel. If you want, I can give you ACPI tables dump for both notebook. I'm hoping to get Turbo Boost working with GeneratePStates. smile.gif

Link to comment
Share on other sites

@MiniHack, the thing with voltage is that I've used a hidden limit to avoid burning cpus by mistake. That limit is 250mVolts more/less from default voltage. The problem, since I could not find the good procedure to get the real voltage of Core-I cpus (as Intel did change too many things) am stack at 700 mVolts +/- the usual 250 mV.

If u or anyone else could provide me with the right msr to get more accurate, it 'd solve the problem.

I 'll do some research next. Till then, do not use more than 950 mV. sorry

 

No problem - see the link here for all the volt ranges for the relevant core i5 processors. Mine you can see is capable 775mv to 1.4v.

 

Looking forward to next tests...

Link to comment
Share on other sites

see the link here for all the volt ranges for the relevant core i5 processors. Mine you can see is capable 775mv to 1.4v.
yep, if I just could get the cpu model identifier (like the one showing on your bdmesgs) for each, I'd do things ( :) ) with the actual code.
Link to comment
Share on other sites

@JBraddock, I've done some researches and found this model: MacBookPro5,5. give it a look ;)

I was about to write the same thing. I changed my mac model to MacbookPro5,5 and it seems to have solved the freezing problem. :) Also my geekbench score increased by 20points, which is actually what I got on 10.6.2. A little off topic but using legacy AGPM also drops my score a little bit. The following is from a original macbook.

 

Model Name:	MacBook Pro
Model Identifier:	MacBookPro5,5
Processor Name:	Intel Core 2 Duo
Processor Speed:	2.26 GHz
Number Of Processors:	1
Total Number Of Cores:	2
L2 Cache:	3 MB
Memory:	2 GB
Bus Speed:	1.07 GHz
Boot ROM Version:	MBP55.00AC.B03
SMC Version (system):	1.47f2

 

Now, I'll modify SMC key in FakeSMC to change 1.30f3 to 1.47f2. It is just cosmetic I guess.

 

Here are my questions:

 

- Should I change TjMax value in FakeSMC to 105? Does it make any difference.

- Under the load, temps are between 45-55C. I opened three HD movies in Quicktime and it seemed to manage well. But in idle, it doesn't seem to drop very much. Around ~44-48C. Can you share your values to compare with mine. I don't know what I should aim at. Are these normal?

- Sometimes, I lost C-States. I don't have CSTinfo=0x1240105 in IO. This is not something new. I had this while both using SSDT tables and letting OSX to pick those values up from bios, and it seems to happen with this method as well. Next restart brings it back.

So when I don't have CSTinfo=0x1240105 in IO, I have "Start up after a power failure option" appear in Energy Setting. Why is this happening.? However, I can't really say that when this happens, OSX is way running hotter.

 

- And finally, I don't need to use legacy ACPI_SMC_PlatformPlugin plugin, right? Can it make any difference?

 

Thanks Valv.

I'll test it further and let you know.

Link to comment
Share on other sites

Hi valv,

 

can you add the possibility to drop GCSI.aml, please? It seems to be Intel GMA firmware and it gets loaded on my desktop although I'm using pcie graphics. I'm afraid it interferes somehow with my graphics card since I still have powermanagement problems (after sleep e.g.) (short black screens after S3 whenever qe/ci is used). It is just a guess and I'd like to try to drop that table since I don't need it anyway.

nb: already tried "DropGCSI=Yes" + "oemGCSI=No"

 

thanks ;)

eberts

Link to comment
Share on other sites

2) With GeneratePStates

- Speedstep not working

- Turbo Boost not working

- No PerformanceStateArray

would u mind catching the SSDT in question and post it here. After all, the mistake could be another thing than _PSS

 

@eberts, npb! I'll see what could be made

 

- Should I change TjMax value in FakeSMC to 105? Does it make any difference.

- Under the load, temps are between 45-55C. I opened three HD movies in Quicktime and it seemed to manage well. But in idle, it doesn't seem to drop very much. Around ~44-48C. Can you share your values to compare with mine. I don't know what I should aim at. Are these normal?

- Sometimes, I lost C-States. I don't have CSTinfo=0x1240105 in IO. This is not something new. I had this while both using SSDT tables and letting OSX to pick those values up from bios, and it seems to happen with this method as well. Next restart brings it back.

So when I don't have CSTinfo=0x1240105 in IO, I have "Start up after a power failure option" appear in Energy Setting. Why is this happening.? However, I can't really say that when this happens, OSX is way running hotter.

 

- And finally, I don't need to use legacy ACPI_SMC_PlatformPlugin plugin, right? Can it make any difference?

  1. regarding TjMax, you have to change it according to your cpu specs (intel's page)
  2. Temps depend on many things (how the case is manufactured; 64bit/32bit mode; voltage...). mine is around 40~45
  3. no idea why CSTInfo does disappear. Maybe u could add that key (only) to your legacy.
  4. I, myself don't use acpi_smc_pp anymore

Link to comment
Share on other sites

 Share

×
×
  • Create New...