All of lore.kernel.org
 help / color / mirror / Atom feed
* 4.14.0-rc7: cpufreq interface in sysfs removed ?
@ 2017-11-01 17:06 Jörg Otte
  2017-11-01 17:49 ` Markus Mayer
  2017-11-01 20:24 ` Rafael J. Wysocki
  0 siblings, 2 replies; 5+ messages in thread
From: Jörg Otte @ 2017-11-01 17:06 UTC (permalink / raw)
  To: Rafael J. Wysocki, Linux Kernel Mailing List, Linux PM list
  Cc: Linus Torvalds

In 4.14.0-rc7-00009-g287683d cpufreq directory under
/sys/devices/system/cpu/cpufreq
is empty. Also link /sys/devices/system/cpu/cpu0/cpufreq is missing.

Is this change intentional?

Jörg

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 4.14.0-rc7: cpufreq interface in sysfs removed ?
  2017-11-01 17:06 4.14.0-rc7: cpufreq interface in sysfs removed ? Jörg Otte
@ 2017-11-01 17:49 ` Markus Mayer
  2017-11-01 20:24 ` Rafael J. Wysocki
  1 sibling, 0 replies; 5+ messages in thread
From: Markus Mayer @ 2017-11-01 17:49 UTC (permalink / raw)
  To: Jörg Otte
  Cc: Rafael J. Wysocki, Linux Kernel Mailing List, Linux PM list,
	Linus Torvalds

On 1 November 2017 at 10:06, Jörg Otte <jrg.otte@gmail.com> wrote:
> In 4.14.0-rc7-00009-g287683d cpufreq directory under
> /sys/devices/system/cpu/cpufreq
> is empty. Also link /sys/devices/system/cpu/cpu0/cpufreq is missing.

It is looking fine on my system.

# dmesg | grep cpufreq
<6>[    1.313374] brcmstb-avs-cpufreq f04c4000.avs-cpu-data-mem: registered

# find /sys -name \*cpufreq\*
/sys/devices/system/cpu/cpu3/cpufreq
/sys/devices/system/cpu/cpu1/cpufreq
/sys/devices/system/cpu/cpufreq
/sys/devices/system/cpu/cpu2/cpufreq
/sys/devices/system/cpu/cpu0/cpufreq
/sys/bus/platform/drivers/cpufreq-dt
/sys/bus/platform/drivers/brcmstb-avs-cpufreq
/sys/module/cpufreq

# uname -a
Linux (none) 4.14.0-rc7 #1 SMP Wed Nov 1 10:34:11 PDT 2017 armv7l GNU/Linux

> Is this change intentional?

This sounds more like your cpufreq driver didn't load. It is probably
worth investigating in that direction.

Also, you didn't mention anything about your hardware or your configuration.

> Jörg

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 4.14.0-rc7: cpufreq interface in sysfs removed ?
  2017-11-01 17:06 4.14.0-rc7: cpufreq interface in sysfs removed ? Jörg Otte
  2017-11-01 17:49 ` Markus Mayer
@ 2017-11-01 20:24 ` Rafael J. Wysocki
  2017-11-02  8:37   ` Jörg Otte
  1 sibling, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2017-11-01 20:24 UTC (permalink / raw)
  To: Jörg Otte
  Cc: Rafael J. Wysocki, Linux Kernel Mailing List, Linux PM list,
	Linus Torvalds

On Wed, Nov 1, 2017 at 6:06 PM, Jörg Otte <jrg.otte@gmail.com> wrote:
> In 4.14.0-rc7-00009-g287683d cpufreq directory under
> /sys/devices/system/cpu/cpufreq
> is empty. Also link /sys/devices/system/cpu/cpu0/cpufreq is missing.
>
> Is this change intentional?

Sure not.

What's the last good kernel you tested before this one?

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 4.14.0-rc7: cpufreq interface in sysfs removed ?
  2017-11-01 20:24 ` Rafael J. Wysocki
@ 2017-11-02  8:37   ` Jörg Otte
  2017-11-02 10:24     ` Jörg Otte
  0 siblings, 1 reply; 5+ messages in thread
From: Jörg Otte @ 2017-11-02  8:37 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux Kernel Mailing List, Linux PM list, Linus Torvalds

2017-11-01 21:24 GMT+01:00 Rafael J. Wysocki <rafael@kernel.org>:
> On Wed, Nov 1, 2017 at 6:06 PM, Jörg Otte <jrg.otte@gmail.com> wrote:
>> In 4.14.0-rc7-00009-g287683d cpufreq directory under
>> /sys/devices/system/cpu/cpufreq
>> is empty. Also link /sys/devices/system/cpu/cpu0/cpufreq is missing.
>>
>> Is this change intentional?
>
> Sure not.
>
> What's the last good kernel you tested before this one?
Unfortunately I had a disk crash and I was offline in last weeks.
This is the first kernel with everything new installed on new disk.
So I don't remember exactly last good kernel. For sure it was  4.14.0-rc1.

Maybe I made a mistake with the kernel configuration ?

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

#
# CPU frequency scaling drivers
#
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set


Just discovered:
If intel_pstate is active everythin looks fine.
If intel_pstate is disabled (intel_pstate=disable) the directories are
empty again.

Processor are:
jojo@fichte:~$ cat /proc/cpuinfo
processor       : 0 .. 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 60
model name      : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
stepping        : 3
microcode       : 0x22
cpu MHz         : 2494.433
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr
sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc
arch_perfmon pebs bts rep_good nopl xtopology nons
top_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est
tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1
sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand
lahf_lm abm cpuid_fault epb tpr_shadow vnmi flexpr
iority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
xsaveopt dtherm ida arat pln pts
bugs            :
bogomips        : 4988.86
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:


Thanks,
Jörg

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 4.14.0-rc7: cpufreq interface in sysfs removed ?
  2017-11-02  8:37   ` Jörg Otte
@ 2017-11-02 10:24     ` Jörg Otte
  0 siblings, 0 replies; 5+ messages in thread
From: Jörg Otte @ 2017-11-02 10:24 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux Kernel Mailing List, Linux PM list, Linus Torvalds

2017-11-02 9:37 GMT+01:00 Jörg Otte <jrg.otte@gmail.com>:
> 2017-11-01 21:24 GMT+01:00 Rafael J. Wysocki <rafael@kernel.org>:
>> On Wed, Nov 1, 2017 at 6:06 PM, Jörg Otte <jrg.otte@gmail.com> wrote:
>>> In 4.14.0-rc7-00009-g287683d cpufreq directory under
>>> /sys/devices/system/cpu/cpufreq
>>> is empty. Also link /sys/devices/system/cpu/cpu0/cpufreq is missing.
>>>
>>> Is this change intentional?
>>
>> Sure not.
>>
>> What's the last good kernel you tested before this one?
> Unfortunately I had a disk crash and I was offline in last weeks.
> This is the first kernel with everything new installed on new disk.
> So I don't remember exactly last good kernel. For sure it was  4.14.0-rc1.
>
> Maybe I made a mistake with the kernel configuration ?
>
> #
> # CPU Frequency scaling
> #
> CONFIG_CPU_FREQ=y
> CONFIG_CPU_FREQ_GOV_ATTR_SET=y
> CONFIG_CPU_FREQ_GOV_COMMON=y
> CONFIG_CPU_FREQ_STAT=y
> CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
> # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
> CONFIG_CPU_FREQ_GOV_POWERSAVE=y
> # CONFIG_CPU_FREQ_GOV_USERSPACE is not set
> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
> CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
> CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
>
> #
> # CPU frequency scaling drivers
> #
> CONFIG_X86_INTEL_PSTATE=y
> # CONFIG_X86_PCC_CPUFREQ is not set
> # CONFIG_X86_ACPI_CPUFREQ is not set
> # CONFIG_X86_SPEEDSTEP_CENTRINO is not set
> # CONFIG_X86_P4_CLOCKMOD is not set
>
>
> Just discovered:
> If intel_pstate is active everythin looks fine.
> If intel_pstate is disabled (intel_pstate=disable) the directories are
> empty again.
>
> Processor are:
> jojo@fichte:~$ cat /proc/cpuinfo
> processor       : 0 .. 3
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 60
> model name      : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
> stepping        : 3
> microcode       : 0x22
> cpu MHz         : 2494.433
> cache size      : 3072 KB
> physical id     : 0
> siblings        : 4
> core id         : 0
> cpu cores       : 2
> apicid          : 0
> initial apicid  : 0
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 13
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr
> sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc
> arch_perfmon pebs bts rep_good nopl xtopology nons
> top_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est
> tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1
> sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand
> lahf_lm abm cpuid_fault epb tpr_shadow vnmi flexpr
> iority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
> xsaveopt dtherm ida arat pln pts
> bugs            :
> bogomips        : 4988.86
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 39 bits physical, 48 bits virtual
> power management:
>

>> # CONFIG_X86_ACPI_CPUFREQ is not set

OK, that's was it! My bad. Sorry for the noise.

Thanks,
Jörg

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-02 10:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 17:06 4.14.0-rc7: cpufreq interface in sysfs removed ? Jörg Otte
2017-11-01 17:49 ` Markus Mayer
2017-11-01 20:24 ` Rafael J. Wysocki
2017-11-02  8:37   ` Jörg Otte
2017-11-02 10:24     ` Jörg Otte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.