Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2020-05-22 Thread Witold Baryluk
Package: linux
Followup-For: Bug #912596

Appears to be fixed somewhere before kernel 5.2.17.

No issues on:

$ uname -a
Linux debian 5.2.0-3-amd64 #1 SMP Debian 5.2.17-1 (2019-09-26) x86_64 GNU/Linux
$

Package:

ii  linux-image-5.2.0-3-amd64   5.2.17-1
  amd64Linux 5.2 for 64-bit PCs (signed)


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-3-amd64 (SMP w/32 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2019-01-10 Thread Witold Baryluk
Still experiencing the same issue with newer kernel from testing.

$ uname -a
Linux debian 4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 (2018-12-22) x86_64
GNU/Linux
$

Package:

ii  linux-image-4.19.0-1-amd64
4.19.13-1 amd64Linux 4.19 for 64-bit
PCs (signed)


Thanks.


Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-19 Thread Witold Baryluk
Package: linux
Followup-For: Bug #912596

(I sent this before, but for some reasons it didn't get into bts.)


I have 32 cpus. So cpus indexed 0 - 31. Yes.

* the cpu 0 - 30 show correct power/frequency info.
* cpu 31 doesn't.

Please inspect carefully my attached outputs of the tools used.

So it only works for 31 CPUs, as in the subject.


Thanks!


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-08 Thread Raymond Burkholder

I might be missing something, but ...

0 - 31 means a count of 32.  Or do you have more than 32?

On 2018-11-08 11:01 a.m., Witold Baryluk wrote:

Package: linux-image-4.18
Followup-For: Bug #912596


# cpupower -c all frequency-info
analyzing CPU 0:

<- cut ->

...
analyzing CPU 30:

<- cut ->

analyzing CPU 31:

<- cut ->

#

Same issue, last CPU has missing info.

Thanks.

Missing file in sys indicate it is an issue with kernel or my
motherboard / CPU.






Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-08 Thread Witold Baryluk
I have 16 cores, 32 threads.

It only shows correctly first 31 CPUs. (cpu0 to cpu30). Last one cpu31 is
missing some data.


On 8 Nov 2018 19:36, "Raymond Burkholder"  wrote:

I might be missing something, but ...

0 - 31 means a count of 32.  Or do you have more than 32?


On 2018-11-08 11:01 a.m., Witold Baryluk wrote:
> Package: linux-image-4.18
> Followup-For: Bug #912596
>
>
> # cpupower -c all frequency-info
> analyzing CPU 0:
<- cut ->
> ...
> analyzing CPU 30:
<- cut ->
> analyzing CPU 31:
<- cut ->

> #
>
> Same issue, last CPU has missing info.
>
> Thanks.
>
> Missing file in sys indicate it is an issue with kernel or my
> motherboard / CPU.
>
>


Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-08 Thread Witold Baryluk
Package: linux-image-4.18
Followup-For: Bug #912596


# cpupower -c all frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  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: 2.20 GHz - 3.50 GHz
  available frequency steps:  3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: userspace powersave conservative ondemand 
performance schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
  The governor "ondemand" may decide which speed to use
  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.89 GHz (asserted by call to kernel)
  boost state support:
Supported: yes
Active: no
...
analyzing CPU 30:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 30
  CPUs which need to have their frequency coordinated by software: 30
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 2.20 GHz - 3.50 GHz
  available frequency steps:  3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: userspace powersave conservative ondemand 
performance schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
  The governor "ondemand" may decide which speed to use
  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.69 GHz (asserted by call to kernel)
  boost state support:
Supported: yes
Active: no
analyzing CPU 31:
  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: yes
Active: no
#

Same issue, last CPU has missing info.

Thanks.

Missing file in sys indicate it is an issue with kernel or my
motherboard / CPU.



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-4.18 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.132
ii  kmod25-1
ii  linux-base  4.5

Versions of packages linux-image-4.18 recommends:
ii  apparmor 2.13.1-3+b1
ii  firmware-linux-free  3.4
pn  irqbalance   

Versions of packages linux-image-4.18 suggests:
pn  debian-kernel-handbook  
ii  extlinux3:6.04~git20171011.af7e95c3+dfsg1-5
pn  linux-doc-4.18  



Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-01 Thread Mattia Dongili
On Thu, Nov 01, 2018 at 05:09:26PM +, Witold Baryluk wrote:
> Package: cpufrequtils
> Version: 008-1+b1
> Severity: important
> 
> Dear Maintainer,
> 
> it appears cpufreq-info has issues with a lot of CPUs?

cpufrequtils is unmaintained upstream and is in the archive essentially
only because its replacement is missing some functionality (IIRC).

Could you install linux-cpupower and try
  cpupower -c all frequency-info
?

...
> # grep . /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 
> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu10/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu11/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu12/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu13/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu14/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu15/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu16/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu17/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu18/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu19/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu20/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu21/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu22/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu23/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu24/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu25/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu26/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu27/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu28/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu29/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu30/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu8/cpufreq/cpuinfo_cur_freq:350
> /sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_cur_freq:350
> #
> 
> No cpu31 here either. So maybe it is a kernel bug of some sort.

Ha! Yes, most likely an issue on the kernel end.
I'm reassigning to linux-image4.18.

-- 
mattia
:wq!



Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs

2018-11-01 Thread Witold Baryluk
Package: cpufrequtils
Version: 008-1+b1
Severity: important

Dear Maintainer,

it appears cpufreq-info has issues with a lot of CPUs?

root@debian:~# reset; cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpuf...@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 4294.55 ms.
  hardware limits: 2.20 GHz - 3.50 GHz
  available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: ondemand, performance, schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
  The governor "ondemand" may decide which speed to use
  within this range.
  current CPU frequency is 3.50 GHz (asserted by call to hardware).
  cpufreq stats: 3.50 GHz:82.79%, 2.80 GHz:0.20%, 2.20 GHz:17.02%  (1149)
analyzing CPU 1:
...
analyzing CPU 2:
...
analyzing CPU 30:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 30
  CPUs which need to have their frequency coordinated by software: 30
  maximum transition latency: 4294.55 ms.
  hardware limits: 2.20 GHz - 3.50 GHz
  available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: ondemand, performance, schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
  The governor "ondemand" may decide which speed to use
  within this range.
  current CPU frequency is 3.50 GHz (asserted by call to hardware).
  cpufreq stats: 3.50 GHz:83.04%, 2.80 GHz:0.48%, 2.20 GHz:16.48%  (1701)
analyzing CPU 31:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
root@debian:~#


As you can see the CPU 31 info is incomplete.


root@debian:~# cpufreq-info  | grep analyzing | wc -l
32
root@debian:~# cpufreq-info  | grep 'current CPU' | wc -l
31
root@debian:~#

root@debian:~# lscpu
Architecture:x86_64
CPU op-mode(s):  32-bit, 64-bit
Byte Order:  Little Endian
CPU(s):  32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):   1
NUMA node(s):1
Vendor ID:   AuthenticAMD
CPU family:  23
Model:   8
Model name:  AMD Ryzen Threadripper 2950X 16-Core Processor
Stepping:2
CPU MHz: 3965.165
CPU max MHz: 3500.
CPU min MHz: 2200.
BogoMIPS:6999.01
Virtualization:  AMD-V
L1d cache:   32K
L1i cache:   64K
L2 cache:512K
L3 cache:8192K
NUMA node0 CPU(s):   0-31
Flags:   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid amd_dcm 
aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes 
xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 
misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb 
bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 
avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves 
clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean 
flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif 
overflow_recov succor smca
root@debian:~# uname -a
Linux debian 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64 GNU/Linux
root@debian:~# 



# grep . /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu10/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu11/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu12/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu13/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu14/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu15/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu16/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu17/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu18/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu19/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu20/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu21/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu22/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu23/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu24/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu25/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu26/cpufreq/cpuinfo_cur_freq:350
/sys/devices/system/cpu/cpu27/cpufreq/cpuinfo_cur_freq:350