Mailing List Archive

full cstate/cpufreq/cpupower support withOUT Xen 4.13 on kernel 5.4.14; WITH xen, none at all. bug or config?
running linux kernel

uname -rm
5.4.14-24.gfc4ea7a-default x86_64

lsb_release -rd
Description: openSUSE Leap 15.1
Release: 15.1

dmesg | grep DMI:
[ 0.000000] DMI: Supermicro X10SAT/X10SAT, BIOS 3.0 05/26/2015

cat /proc/cpuinfo | grep "model name" | head -n 1
model name : Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz

BIOS *is* setup for max cstate support.
Xeon E3-1220 does support intel_pstate driver.

Testing first,

(1) boot, NO XEN

pstate driver's init'd

dmesg | egrep -i "intel_pstate"
[ 6.132964] intel_pstate: Intel P-state driver initializing

pstate/cstate info

cat /sys/module/intel_idle/parameters/max_cstate
9

cd /sys/devices/system/cpu/cpu0/cpuidle
for state in state{0..9}
do echo c-$state `cat $state/name` `cat $state/latency`
done
c-state0 POLL 0
c-state1 C1 2
c-state2 C1E 10
c-state3 C3 33
c-state4 C6 133
c-state5 C7s 166
cat: state6/name: No such file or directory
cat: state6/latency: No such file or directory
c-state6
cat: state7/name: No such file or directory
cat: state7/latency: No such file or directory
c-state7
cat: state8/name: No such file or directory
cat: state8/latency: No such file or directory
c-state8
cat: state9/name: No such file or directory
cat: state9/latency: No such file or directory
c-state9

cpufreq scaling info's available,

cpupower frequency-info
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 800 MHz - 3.50 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 3.50 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 799 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes

& scaling is in effect,

cat /proc/cpuinfo | grep MHz
cpu MHz : 798.106
cpu MHz : 798.129
cpu MHz : 798.964
cpu MHz : 798.154

(2) boot, WITH Xen 4.13

rpm -qa | grep -i xen | sort
grub2-x86_64-xen-2.04-lp151.6.5.noarch
xen-4.13.0_04-lp151.688.2.x86_64
xen-libs-4.13.0_04-lp151.688.2.x86_64
xen-tools-4.13.0_04-lp151.688.2.x86_64

Xen cmd line includes,

grep options= /boot/grub2/xen-4.13.0_04-lp151.688.cfg
[config.1]
options=dom0=pvh dom0-iommu=map-reserved dom0_mem=4016M,max:4096M dom0_max_vcpus=4 cpufreq=xen cpuidle ucode=scan ...

intel_pstate support is now DISABLED for this cpu

xl dmesg | grep pstate
[ 6.851121] intel_pstate: CPU model not supported

NO cpupower frequency-info is available

cpupower frequency-info
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
CPUs which run at the same hardware frequency: Not Available
CPUs which need to have their frequency coordinated by software: Not Available
maximum transition latency: Cannot determine or is not supported.
Not Available
available cpufreq governors: Not Available
Unable to determine current policy
current CPU frequency: Unable to call hardware
current CPU frequency: Unable to call to kernel
boost state support:
Supported: no
Active: no

and scaling is NOT in effect

cat /proc/cpuinfo | grep MHz
cpu MHz : 3092.828
cpu MHz : 3092.828
cpu MHz : 3092.828
cpu MHz : 3092.828

attempt to add acpi-cpufreq module fails

lsmod | grep acpi-cpufreq
(empty)
find /lib/modules/ | grep acpi-cpu
/lib/modules/5.4.14-24.gfc4ea7a-default/kernel/drivers/cpufreq/acpi-cpufreq.ko
modprobe acpi-cpufreq
modprobe: ERROR: could not insert 'acpi_cpufreq': No such device
insmod /lib/modules/5.4.14-24.gfc4ea7a-default/kernel/drivers/cpufreq/acpi-cpufreq.ko
insmod: ERROR: could not insert module /lib/modules/5.4.14-24.gfc4ea7a-default/kernel/drivers/cpufreq/acpi-cpufreq.ko: No such device

Is this bug, or config?


_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: full cstate/cpufreq/cpupower support withOUT Xen 4.13 on kernel 5.4.14; WITH xen, none at all. bug or config? [ In reply to ]
found this _old_ (2013) post,

Linux 3.4 dom0 kernel error loading xen-acpi-processor: Input/output error
https://lists.gt.net/xen/devel/274864

'tween pasik & konrad

which similarly manifests no cpufreq/turbomode in Dom0, and a fail to load 'xen_acpi_processor' mod unless/until

> I found this: http://en.community.dell.com/techcenter/power-cooling/w/wiki/best-practices-in-power-management.aspx
>
> So I had to enable "OS Control" for "Power Management" in the Dell server BIOS,
> and after that the CPU P-states are available in the ACPI tables,
> and xen-acpi-processor driver loads and works OK in the dom0 kernel!


Here, on my SuperMicro server,

lsmod | grep xen
xen_pciback 81920 0
xen_netback 73728 0
xen_blkback 53248 0
xen_gntalloc 20480 0
xen_gntdev 45056 1
xen_evtchn 16384 0
xenfs 16384 1
xen_privcmd 28672 17 xenfs


as in that post

modprobe -v xen-acpi-processor
insmod /lib/modules/5.4.14-25.g170524c-default/kernel/drivers/xen/xen-acpi-processor.ko
modprobe: ERROR: could not insert 'xen_acpi_processor': No such device


checking the man

https://www.supermicro.com/manuals/motherboard/C226/MNL-1544.pdf

SM's BIOS doesn't have an identical "OS Control" option. don't recognize what'd be similar ...

is this^^ likely in the right ballpark for cause? or a red-herring, and i should be looking elsewhere?

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users