Skip to contentSkip to conversation

Intel Core2Duo mobile - how does the VID get set?

DISCUSSION Brian Morrison 2 participants 3 messages Feb 19, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

After a fair bit of Googling and reading around, I'm none the wiser about exactly how Linux 2.6.x sets the processor VID (or for that matter how it decides the FID settings) when using the ondemand governor and cpufreq stuff.

Can anyone tell me a) whether this is obtained from the BIOS, something in the MSR of the processor or elsewhere and b) whether there is an interface in /proc or /sys where one can find out what is set and modify it?

I'm not subscribed to the list so a Cc: would be appreciated, cheers!

Signature · 3 lines
Brian Morrison

[email protected]
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · Venkatesh
Quoted 3 lines

After a fair bit of Googling and reading around, I'm none the wiser about exactly how Linux 2.6.x sets the processor VID (or for that matter how it decides the FID settings) when using the ondemand governor and cpufreq stuff.

Can anyone tell me a) whether this is obtained from the BIOS, something in the MSR of the processor or elsewhere and

Yes. The freq and voltage supported comes from the platform BIOS. BIOS exports this in an ACPI table which is handled by acpi-cpufreq driver in Linux kernel.

OK, thanks for that.

Quoted 5 lines
Quoted 2 lines

b) whether there is an interface in /proc or /sys where one can find out what is set and modify it?

There is no way of modifying and using new VIDs etc in Linux kernel (other than exporting your own DSDT and hacking the related code).

Is there a way of viewing the ACPI table contents relating to the VIDs and FIDs?

Signature · 3 lines
Brian Morrison

[email protected]
#3 lore raw
In reply to Brian Morrison
Quoted 9 lines · Brian Morrison

After a fair bit of Googling and reading around, I'm none the wiser about exactly how Linux 2.6.x sets the processor VID (or for that matter how it decides the FID settings) when using the ondemand governor and cpufreq stuff.

Can anyone tell me a) whether this is obtained from the BIOS, something in the MSR of the processor or elsewhere and b) whether there is an interface in /proc or /sys where one can find out what is set and modify it?

There is an ACPI table created by the BIOS that lists all the P-states; a P-state is a <frequency, opaque value> tuple where the opaque value contains the FID and VID but Intel pretends it is magic. The acpi-cpufreq driver reads this table and uses it to change states by writing the opaque value into the appropriate MSR.

The Intel 64 and IA-32 Architectures Software Developer’s Manual, Volume 3A, chapter 13 describes the hardware (vaguely).

If you want to see what is going on under the hood, try Linux-PHC:
http://phc.athousandnights.de/

(Setting followup to cpufreq list.)

Wes Felter - [email protected]