Linux-phc does not work with i7-2670QM

If you have trouble with PHC you can ask and hope for help here.
Post Reply
Slippy
Posts: 2
Joined: Tue 7. Aug 2012, 09:26

Linux-phc does not work with i7-2670QM

Post by Slippy » Tue 7. Aug 2012, 09:32

Just making a post about this CPU so that it maybe might get on the compatibility list in the future.

What the interface looks like with this CPU:
http://i.imgur.com/ToqUG.png
http://i.imgur.com/JGDcq.png

Added 800mhz on all the cores but Analysis doesn't refresh:
http://i.imgur.com/lwIla.png

lio
Posts: 83
Joined: Wed 2. Mar 2011, 18:37

Re: Linux-phc does not work with i7-2670QM

Post by lio » Mon 13. Aug 2012, 21:58

Hi,

what does the sysfs interface look like?

Code: Select all

cat /sys/devices/system/cpu/*/cpufreq/phc_vids
cat /sys/devices/system/cpu/*/cpufreq/phc_fids
cat /sys/devices/system/cpu/*/cpufreq/phc_controls
cat /sys/devices/system/cpu/*/cpufreq/phc_default_controls
cat /sys/devices/system/cpu/*/cpufreq/phc_default_vids
Dirk

Slippy
Posts: 2
Joined: Tue 7. Aug 2012, 09:26

Re: Linux-phc does not work with i7-2670QM

Post by Slippy » Mon 13. Aug 2012, 23:56

Hello Dirk, here you go:
cat /sys/devices/system/cpu/*/cpufreq/phc_vids

Code: Select all

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
cat /sys/devices/system/cpu/*/cpufreq/phc_fids

Code: Select all

31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
31 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 
cat /sys/devices/system/cpu/*/cpufreq/phc_controls

Code: Select all

31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
cat /sys/devices/system/cpu/*/cpufreq/phc_default_controls

Code: Select all

31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
31:0 22:0 21:0 20:0 19:0 18:0 17:0 16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 
cat /sys/devices/system/cpu/*/cpufreq/phc_default_vids

Code: Select all

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 

Supplantr
Posts: 1
Joined: Tue 14. Aug 2012, 01:41

Re: Linux-phc does not work with i7-2670QM

Post by Supplantr » Tue 14. Aug 2012, 02:01

I am experiencing nearly the same thing on my i7-2670QM. The only difference, and I don't know if it's significant or not, is that the sysfs files mentioned have 15 columns instead of 16. I'm missing the column containing "21" in the applicable files, and the respective column in the grid of zeroes. I'd be glad to give any additional information.

Thanks, and good luck! Hopefully I'll be able to use your fine software soon enough. ;)

User avatar
Docet
Posts: 44
Joined: Wed 23. Feb 2011, 18:30

Re: Linux-phc does not work with i7-2670QM

Post by Docet » Tue 14. Aug 2012, 12:57

Hey

I though you were a bit busy to update... In these 24h (since I got my brand new CPU) I've been deep-searching in the net and I found that Sandybridge and Ivybridge are not supported by phc-intel. BTW I have a i7-3720QM on board.

Here comes the techical stuff...

They just messed up IA32_PERF_STATUS (0x198), IA32_PERF_CTL (0x199) and 0xCE.

Code: Select all

0xce 00080c10f8011a00
0x198 00001b6100000c00
0x199 0000000000000c00
Voltage monitoring on Sandybridge and Ivybridge is still available, but it seems that is no more linked to the voltage supply system, since it monitors slight changes on voltages too. As you can read from IA32 Intel manual (vol 3 tab 34-10) [there is an error in the tab, the right formula is just as it follows]:
Vcc = MSR_PERF_STATUS[47:32] * (float) 1/(2^13)

So, I was just about to mess up (heheheh) with phc patch, but I'd better ask you to do that.

I was able to undervolt by changing myself the msr 0x199, so the business is still open. I tried to modify the MSR_PERF_CTL[16:8], and it changed the output Vcc, without modifying the cpu freq.

So maybe the point is they changed the interface to those "VIDs"... try to take a look abt it

I've written the proper code to interface correctly with the next version of PHCtool (which I'm developing).

Anyway I wasn't able to find any link beetween new VIDs and Vcc, except the empirical regression from my hardware (which would be way too selfish )

If you need anything just pm me

Cheers

User avatar
Docet
Posts: 44
Joined: Wed 23. Feb 2011, 18:30

Re: Linux-phc does not work with i7-2670QM

Post by Docet » Tue 21. Aug 2012, 23:27

Ok,

here comes some new updates:
  • The FID is still in place (0xCE 0x198 and 0x199) but since Sandy/Ivy Bridge CPUs have a different architecture they work with fixed base clock @ 100MHz and that FID is now the plain CPU multiplier (which, in my case, changes from 08 to 1a in normal mode and to 22 in turbo, accordingly to 0xCE)
  • VID changes automatically based on FID, but cpufreq-info fails in detecting CPU correct frequency. I got and used this: http://code.google.com/p/i7z/ and worked like a charm. Also looked in sources, but they don't monitor nor control voltages.
  • Out there there's a mess, infos are really hard to find. The point if is it still possible to control CPU voltage, now that is carried through the new SVID system, and where in the MSR or in the other registers is it possible to do that. A good track might be looking if is there a windows program which can access VIDs registers information (and maybe reverse it or ask for sources).
Please answer back as soon as possible and let's keep in touch to work on this.

Regards

lockheed
Posts: 6
Joined: Wed 11. May 2011, 10:48

Re: Linux-phc does not work with i7-2670QM

Post by lockheed » Mon 19. Nov 2012, 02:16

According to this post: https://bbs.archlinux.org/viewtopic.php?id=146454
[quote=stqn]I couldn’t make it lock the Core i3 frequency; writes to scaling_max_freq are ignored and the frequency always goes to the max, so only the highest frequency can be tested.[/quote]

Is this an issue within phc or is it caused by something else? And if so, can it be remedied?

Post Reply