Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916203 - sys-power/powernowd-1.00-r5 fails to start searching for more CPUs than available
Summary: sys-power/powernowd-1.00-r5 fails to start searching for more CPUs than avail...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-24 05:57 UTC by Marco Napetti
Modified: 2023-10-24 14:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Napetti 2023-10-24 05:57:10 UTC
Since recent update (haven't tracked which one), powernowd fails to start with:
```
 * Starting powernowd ...
powernowd: PowerNow Daemon v1.00, (c) 2003-2008 John Clemens
powernowd: Found 32 scalable units:  -- 1 'CPU' per scalable unit
powernowd:   cpu0: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu1: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu2: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu3: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu4: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu5: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu6: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu7: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu8: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu9: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu10: 1550Mhz - 3200Mhz (3 steps)
powernowd:   cpu11: 1550Mhz - 3200Mhz (3 steps)
/sys/devices/system/cpu/cpu12/cpufreq/cpuinfo_max_freq: No such file or directory

PowerNowd encountered and error and could not start.
Please make sure that:
 - You are running a v2.6.7 kernel or later
 - That you have sysfs mounted /sys
 - That you have the core cpufreq and cpufreq-userspace
   modules loaded into your kernel
 - That you have the cpufreq driver for your cpu loaded,
   (for example: powernow-k7), and that it works. Check
   'dmesg' for errors.
If all of the above are true, and you still have problems,
please email the author: clemej@alum.rpi.edu
 * start-stop-daemon: failed to start `/usr/sbin/powernowd'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ !! ]
 * ERROR: powernowd failed to start
```


Reproducible: Always




As far as I know, my CPU has 6 physical cores and 12 virtual cores, so powernowd should stop at cpu11.

lscpu output:
```
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         43 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  12
  On-line CPU(s) list:   0-11
Vendor ID:               AuthenticAMD
  BIOS Vendor ID:        Advanced Micro Devices, Inc.
  Model name:            AMD Ryzen 5 1600 Six-Core Processor
    BIOS Model name:     AMD Ryzen 5 1600 Six-Core Processor             Unknown CPU @ 3.2GHz
    BIOS CPU family:     107
    CPU family:          23
    Model:               8
    Thread(s) per core:  2
    Core(s) per socket:  6
    Socket(s):           1
    Stepping:            2
    Frequency boost:     enabled
    CPU(s) scaling MHz:  48%
    CPU max MHz:         3200,0000
    CPU min MHz:         1550,0000
    BogoMIPS:            6387,15
    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 aperfmperf rapl 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 ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflu
                         shopt sha_ni xsaveopt xsavec xgetbv1 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 sev sev_es
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   192 KiB (6 instances)
  L1i:                   384 KiB (6 instances)
  L2:                    3 MiB (6 instances)
  L3:                    16 MiB (2 instances)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-11
Vulnerabilities:         
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Mitigation; untrained return thunk; SMT vulnerable
  Spec rstack overflow:  Mitigation; safe RET
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected
```