linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [BUG?]: cpufreqency scaling - wrong frequency detected
@ 2005-01-20 21:32 Pallipadi, Venkatesh
  2005-01-21 14:42 ` Matthias-Christian Ott
  0 siblings, 1 reply; 8+ messages in thread
From: Pallipadi, Venkatesh @ 2005-01-20 21:32 UTC (permalink / raw)
  To: Pallipadi, Venkatesh, Matthias-Christian Ott, linux-kernel
  Cc: linux, Nakajima, Jun, Zou, Nanhai



Never mind about acpidmp. This seems to be a issue with
p4-clockmod.c/speedstep-lib.c and the routine which gets the initial
frequency. As a result all frequencies are getting multiplied by 8. Not
sure what the exact bug is though. Dominik can give a better answer.
Cpufreq debug messages will help.

Thanks,
Venki

>-----Original Message-----
>From: Pallipadi, Venkatesh 
>Sent: Thursday, January 20, 2005 12:56 PM
>To: 'Matthias-Christian Ott'; linux-kernel@vger.kernel.org
>Cc: linux@brodo.de; Nakajima, Jun; Zou, Nanhai
>Subject: RE: [BUG?]: cpufreqency scaling - wrong frequency detected
>
>
>Hi,
>
>Can you send the output of 'acpidmp' from this system to me? 
>If acpidmp is not already installed, you should be able to 
>grab it from here. 
>http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/ 
>
>Thanks,
>Venki
>
>>-----Original Message-----
>>From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de] 
>>Sent: Thursday, January 20, 2005 12:13 PM
>>To: Linux Kernel Mailing List
>>Cc: linux@brodo.de; Nakajima, Jun; Pallipadi, Venkatesh; Zou, Nanhai
>>Subject: [BUG?]: cpufreqency scaling - wrong frequency detected
>>
>>Hi!
>>The Kernel cpufrequency scaling modul seems to have a bug, it 
>displays 
>>the frequency of 14,60 Ghz. I don't enabled debugging in the 
>>config, but 
>>I hope this information can help you. I don't know if it's 
>>really a bug, 
>>so I send it to the mailing list instead of reporting it to 
>>the bugzilla 
>>bugtracking system. if you need additional information, I'll 
>compile a 
>>Kernel with cpufreq debugging.
>>
>>Matthias-Christian Ott
>>
>>[fox@iceowl ~]$ cat /proc/version
>>Linux version 2.6.11-rc1-bk7-ott (root@iceowl.ott.dyndns.info) 
>>(gcc-Version 3.4.3) #1 SMP Thu Jan 20 16:18:06 CET 2005
>>
>>[root@iceowl ~]# dmesg
>>ACPI: RSDP (v000 MSISYS                                ) @ 0x000f7550
>>ACPI: RSDT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>0x17ff3000
>>ACPI: FADT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>0x17ff3040
>>ACPI: MADT (v001 MSISYS AWRDACPI 0x42302e31 AWRD 0x00000000) @ 
>>0x17ff6c40
>>ACPI: DSDT (v001 MSISYS AWRDACPI 0x00001000 MSFT 0x0100000c) @ 
>>0x00000000
>>ACPI: PM-Timer IO Port: 0x4008
>>ACPI: Local APIC address 0xfee00000
>>ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
>>Processor #0 15:1 APIC version 20
>>ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
>>IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
>>ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high level)
>>ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
>>ACPI: IRQ0 used by override.
>>ACPI: IRQ2 used by override.
>>ACPI: IRQ9 used by override.
>>Enabling APIC mode:  Flat.  Using 1 I/O APICs
>>Using ACPI (MADT) for SMP configuration information
>>Built 1 zonelists
>>Kernel command line: root=/dev/discs/disc0/part1 
>>video=vesafb:ywrap,mtrr 
>>vga=0x318 elevator=cfq ro mem=393152K
>>[..]
>>CPU: After generic identify, caps: 3febfbff 00000000 00000000 
>00000000 
>>00000000 00000000 00000000
>>CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 
>>00000000 00000000 00000000
>>CPU: Trace cache: 12K uops, L1 D cache: 8K
>>CPU: L2 cache: 256K
>>CPU: Hyper-Threading is disabled
>>CPU: After all inits, caps: 3febfbff 00000000 00000000 
>>00000080 00000000 
>>00000000 00000000
>>Intel machine check architecture supported.
>>Intel machine check reporting enabled on CPU#0.
>>CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
>>CPU0: Thermal monitoring enabled
>>Enabling fast FPU save and restore... done.
>>Enabling unmasked SIMD FPU exception support... done.
>>Checking 'hlt' instruction... OK.
>>CPU0: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
>>per-CPU timeslice cutoff: 731.50 usecs.
>>[..]
>>Total of 1 processors activated (3563.52 BogoMIPS).
>>ENABLING IO-APIC IRQs
>>..TIMER: vector=0x31 pin1=2 pin2=-1
>>Brought up 1 CPUs
>>CPU0 attaching sched-domain:
>> domain 0: span 1
>>  groups: 1
>>  domain 1: span 1
>>   groups: 1
>>[..]
>>ACPI: Subsystem revision 20041210
>>    ACPI-1138: *** Error: Method execution failed [\STRC] (Node 
>>d7fc3660), AE_AML_BUFFER_LIMIT
>>    ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0._INI] 
>>(Node d7fc7420), AE_AML_BUFFER_LIMIT
>>ACPI: Interpreter enabled
>>ACPI: Using IOAPIC for interrupt routing
>>ACPI: PCI Root Bridge [PCI0] (00:00)
>>PCI: Probing PCI hardware (bus 00)
>>PCI: Transparent bridge - 0000:00:1e.0
>>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
>>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
>>ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
>>ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
>>ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>[..]
>>ACPI: Power Button (FF) [PWRF]
>>ACPI: Sleep Button (CM) [SLPB]
>>ACPI: Fan [FAN] (on)
>>ACPI: CPU0 (power states: C1[C1] C2[C2])
>>ACPI: Processor [CPU0] (supports 2 throttling states)
>>ACPI: Thermal Zone [THRM] (22 C)
>>[..]
>>p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
>>[..]
>>
>>[root@iceowl ~]# cat /proc/cpuinfo
>>processor       : 0
>>vendor_id       : GenuineIntel
>>cpu family      : 15
>>model           : 1
>>model name      : Intel(R) Pentium(R) 4 CPU 1.80GHz
>>stepping        : 2
>>cpu MHz         : 1800.257
>>cache size      : 256 KB
>>physical id     : 0
>>siblings        : 1
>>fdiv_bug        : no
>>hlt_bug         : no
>>f00f_bug        : no
>>coma_bug        : no
>>fpu             : yes
>>fpu_exception   : yes
>>cpuid level     : 2
>>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
>>bogomips        : 3563.52
>>
>>[root@iceowl ~]# cat 
>>/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
>>14600000
>>
>>[root@iceowl ~]# cat 
>>/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
>>3650000 5475000 7300000 9125000 10950000 12775000 14600000
>>
>>[root@iceowl ~]# cat 
>>/home/fox/builds/kernel/kernel-2.6.10-rc1-ott/config
>>[..]
>>CONFIG_X86_PC=y
>>[..]
>>CONFIG_MPENTIUM4=y
>>[..]
>>CONFIG_X86_GENERIC=y
>>CONFIG_X86_CMPXCHG=y
>>CONFIG_X86_XADD=y
>>CONFIG_X86_L1_CACHE_SHIFT=7
>>CONFIG_RWSEM_XCHGADD_ALGORITHM=y
>>CONFIG_GENERIC_CALIBRATE_DELAY=y
>>CONFIG_X86_WP_WORKS_OK=y
>>CONFIG_X86_INVLPG=y
>>CONFIG_X86_BSWAP=y
>>CONFIG_X86_POPAD_OK=y
>>CONFIG_X86_GOOD_APIC=y
>>CONFIG_X86_INTEL_USERCOPY=y
>>CONFIG_X86_USE_PPRO_CHECKSUM=y
>>CONFIG_HPET_TIMER=y
>>CONFIG_SMP=y
>>CONFIG_NR_CPUS=4
>>CONFIG_SCHED_SMT=y
>>CONFIG_PREEMPT=y
>>CONFIG_PREEMPT_BKL=y
>>CONFIG_X86_LOCAL_APIC=y
>>CONFIG_X86_IO_APIC=y
>>CONFIG_X86_TSC=y
>>CONFIG_X86_MCE=y
>>CONFIG_X86_MCE_NONFATAL=m
>>CONFIG_X86_MCE_P4THERMAL=y
>>CONFIG_TOSHIBA=m
>>CONFIG_I8K=m
>>[..]
>>CONFIG_PM=y
>># CONFIG_PM_DEBUG is not set
>>CONFIG_SOFTWARE_SUSPEND=y
>>CONFIG_PM_STD_PARTITION=""
>>[..]
>>CONFIG_ACPI=y
>>CONFIG_ACPI_BOOT=y
>>CONFIG_ACPI_INTERPRETER=y
>>CONFIG_ACPI_SLEEP=y
>>CONFIG_ACPI_SLEEP_PROC_FS=y
>>CONFIG_ACPI_AC=y
>>CONFIG_ACPI_BATTERY=y
>>CONFIG_ACPI_BUTTON=y
>>CONFIG_ACPI_VIDEO=y
>>CONFIG_ACPI_FAN=y
>>CONFIG_ACPI_PROCESSOR=y
>>CONFIG_ACPI_THERMAL=y
>>CONFIG_ACPI_ASUS=m
>>CONFIG_ACPI_IBM=m
>>CONFIG_ACPI_TOSHIBA=m
>>CONFIG_ACPI_BLACKLIST_YEAR=0
>># CONFIG_ACPI_DEBUG is not set
>>CONFIG_ACPI_BUS=y
>>CONFIG_ACPI_EC=y
>>CONFIG_ACPI_POWER=y
>>CONFIG_ACPI_PCI=y
>>CONFIG_ACPI_SYSTEM=y
>>CONFIG_X86_PM_TIMER=y
>># CONFIG_ACPI_CONTAINER is not set
>>[..]
>>CONFIG_CPU_FREQ=y
>># CONFIG_CPU_FREQ_DEBUG is not set
>>CONFIG_CPU_FREQ_STAT=m
>>CONFIG_CPU_FREQ_STAT_DETAILS=y
>># CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
>>CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
>>CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
>>CONFIG_CPU_FREQ_GOV_POWERSAVE=y
>>CONFIG_CPU_FREQ_GOV_USERSPACE=y
>>CONFIG_CPU_FREQ_GOV_ONDEMAND=y
>>CONFIG_CPU_FREQ_TABLE=y
>>[..]
>>CONFIG_X86_ACPI_CPUFREQ=y
>>CONFIG_X86_POWERNOW_K6=m
>>CONFIG_X86_POWERNOW_K7=m
>>CONFIG_X86_POWERNOW_K7_ACPI=y
>>CONFIG_X86_POWERNOW_K8=m
>>CONFIG_X86_POWERNOW_K8_ACPI=y
>>CONFIG_X86_GX_SUSPMOD=m
>>CONFIG_X86_SPEEDSTEP_CENTRINO=m
>>CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
>>CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
>>CONFIG_X86_SPEEDSTEP_ICH=m
>>CONFIG_X86_SPEEDSTEP_SMI=m
>>CONFIG_X86_P4_CLOCKMOD=y
>>CONFIG_X86_CPUFREQ_NFORCE2=m
>>CONFIG_X86_LONGRUN=m
>>CONFIG_X86_LONGHAUL=m
>>[..]
>># CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
>>CONFIG_X86_SPEEDSTEP_LIB=y
>>CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
>>[..]
>>
>>
>>
>

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

* Re: [BUG?]: cpufreqency scaling - wrong frequency detected
  2005-01-20 21:32 [BUG?]: cpufreqency scaling - wrong frequency detected Pallipadi, Venkatesh
@ 2005-01-21 14:42 ` Matthias-Christian Ott
  2005-01-21 17:33   ` Matthias-Christian Ott
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias-Christian Ott @ 2005-01-21 14:42 UTC (permalink / raw)
  To: Pallipadi, Venkatesh; +Cc: linux-kernel, linux, Nakajima, Jun, Zou, Nanhai

Pallipadi, Venkatesh wrote:

>Never mind about acpidmp. This seems to be a issue with
>p4-clockmod.c/speedstep-lib.c and the routine which gets the initial
>frequency. As a result all frequencies are getting multiplied by 8. Not
>sure what the exact bug is though. Dominik can give a better answer.
>Cpufreq debug messages will help.
>
>Thanks,
>Venki
>
>  
>
>>-----Original Message-----
>>From: Pallipadi, Venkatesh 
>>Sent: Thursday, January 20, 2005 12:56 PM
>>To: 'Matthias-Christian Ott'; linux-kernel@vger.kernel.org
>>Cc: linux@brodo.de; Nakajima, Jun; Zou, Nanhai
>>Subject: RE: [BUG?]: cpufreqency scaling - wrong frequency detected
>>
>>
>>Hi,
>>
>>Can you send the output of 'acpidmp' from this system to me? 
>>If acpidmp is not already installed, you should be able to 
>>grab it from here. 
>>http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/ 
>>
>>Thanks,
>>Venki
>>
>>    
>>
>>>-----Original Message-----
>>>From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de] 
>>>Sent: Thursday, January 20, 2005 12:13 PM
>>>To: Linux Kernel Mailing List
>>>Cc: linux@brodo.de; Nakajima, Jun; Pallipadi, Venkatesh; Zou, Nanhai
>>>Subject: [BUG?]: cpufreqency scaling - wrong frequency detected
>>>
>>>Hi!
>>>The Kernel cpufrequency scaling modul seems to have a bug, it 
>>>      
>>>
>>displays 
>>    
>>
>>>the frequency of 14,60 Ghz. I don't enabled debugging in the 
>>>config, but 
>>>I hope this information can help you. I don't know if it's 
>>>really a bug, 
>>>so I send it to the mailing list instead of reporting it to 
>>>the bugzilla 
>>>bugtracking system. if you need additional information, I'll 
>>>      
>>>
>>compile a 
>>    
>>
>>>Kernel with cpufreq debugging.
>>>
>>>Matthias-Christian Ott
>>>
>>>[fox@iceowl ~]$ cat /proc/version
>>>Linux version 2.6.11-rc1-bk7-ott (root@iceowl.ott.dyndns.info) 
>>>(gcc-Version 3.4.3) #1 SMP Thu Jan 20 16:18:06 CET 2005
>>>
>>>[root@iceowl ~]# dmesg
>>>ACPI: RSDP (v000 MSISYS                                ) @ 0x000f7550
>>>ACPI: RSDT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>>0x17ff3000
>>>ACPI: FADT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>>0x17ff3040
>>>ACPI: MADT (v001 MSISYS AWRDACPI 0x42302e31 AWRD 0x00000000) @ 
>>>0x17ff6c40
>>>ACPI: DSDT (v001 MSISYS AWRDACPI 0x00001000 MSFT 0x0100000c) @ 
>>>0x00000000
>>>ACPI: PM-Timer IO Port: 0x4008
>>>ACPI: Local APIC address 0xfee00000
>>>ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
>>>Processor #0 15:1 APIC version 20
>>>ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
>>>IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
>>>ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high level)
>>>ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
>>>ACPI: IRQ0 used by override.
>>>ACPI: IRQ2 used by override.
>>>ACPI: IRQ9 used by override.
>>>Enabling APIC mode:  Flat.  Using 1 I/O APICs
>>>Using ACPI (MADT) for SMP configuration information
>>>Built 1 zonelists
>>>Kernel command line: root=/dev/discs/disc0/part1 
>>>video=vesafb:ywrap,mtrr 
>>>vga=0x318 elevator=cfq ro mem=393152K
>>>[..]
>>>CPU: After generic identify, caps: 3febfbff 00000000 00000000 
>>>      
>>>
>>00000000 
>>    
>>
>>>00000000 00000000 00000000
>>>CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 
>>>00000000 00000000 00000000
>>>CPU: Trace cache: 12K uops, L1 D cache: 8K
>>>CPU: L2 cache: 256K
>>>CPU: Hyper-Threading is disabled
>>>CPU: After all inits, caps: 3febfbff 00000000 00000000 
>>>00000080 00000000 
>>>00000000 00000000
>>>Intel machine check architecture supported.
>>>Intel machine check reporting enabled on CPU#0.
>>>CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
>>>CPU0: Thermal monitoring enabled
>>>Enabling fast FPU save and restore... done.
>>>Enabling unmasked SIMD FPU exception support... done.
>>>Checking 'hlt' instruction... OK.
>>>CPU0: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
>>>per-CPU timeslice cutoff: 731.50 usecs.
>>>[..]
>>>Total of 1 processors activated (3563.52 BogoMIPS).
>>>ENABLING IO-APIC IRQs
>>>..TIMER: vector=0x31 pin1=2 pin2=-1
>>>Brought up 1 CPUs
>>>CPU0 attaching sched-domain:
>>>domain 0: span 1
>>> groups: 1
>>> domain 1: span 1
>>>  groups: 1
>>>[..]
>>>ACPI: Subsystem revision 20041210
>>>   ACPI-1138: *** Error: Method execution failed [\STRC] (Node 
>>>d7fc3660), AE_AML_BUFFER_LIMIT
>>>   ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0._INI] 
>>>(Node d7fc7420), AE_AML_BUFFER_LIMIT
>>>ACPI: Interpreter enabled
>>>ACPI: Using IOAPIC for interrupt routing
>>>ACPI: PCI Root Bridge [PCI0] (00:00)
>>>PCI: Probing PCI hardware (bus 00)
>>>PCI: Transparent bridge - 0000:00:1e.0
>>>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
>>>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
>>>ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
>>>ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
>>>ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>[..]
>>>ACPI: Power Button (FF) [PWRF]
>>>ACPI: Sleep Button (CM) [SLPB]
>>>ACPI: Fan [FAN] (on)
>>>ACPI: CPU0 (power states: C1[C1] C2[C2])
>>>ACPI: Processor [CPU0] (supports 2 throttling states)
>>>ACPI: Thermal Zone [THRM] (22 C)
>>>[..]
>>>p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
>>>[..]
>>>
>>>[root@iceowl ~]# cat /proc/cpuinfo
>>>processor       : 0
>>>vendor_id       : GenuineIntel
>>>cpu family      : 15
>>>model           : 1
>>>model name      : Intel(R) Pentium(R) 4 CPU 1.80GHz
>>>stepping        : 2
>>>cpu MHz         : 1800.257
>>>cache size      : 256 KB
>>>physical id     : 0
>>>siblings        : 1
>>>fdiv_bug        : no
>>>hlt_bug         : no
>>>f00f_bug        : no
>>>coma_bug        : no
>>>fpu             : yes
>>>fpu_exception   : yes
>>>cpuid level     : 2
>>>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
>>>bogomips        : 3563.52
>>>
>>>[root@iceowl ~]# cat 
>>>/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
>>>14600000
>>>
>>>[root@iceowl ~]# cat 
>>>/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
>>>3650000 5475000 7300000 9125000 10950000 12775000 14600000
>>>
>>>[root@iceowl ~]# cat 
>>>/home/fox/builds/kernel/kernel-2.6.10-rc1-ott/config
>>>[..]
>>>CONFIG_X86_PC=y
>>>[..]
>>>CONFIG_MPENTIUM4=y
>>>[..]
>>>CONFIG_X86_GENERIC=y
>>>CONFIG_X86_CMPXCHG=y
>>>CONFIG_X86_XADD=y
>>>CONFIG_X86_L1_CACHE_SHIFT=7
>>>CONFIG_RWSEM_XCHGADD_ALGORITHM=y
>>>CONFIG_GENERIC_CALIBRATE_DELAY=y
>>>CONFIG_X86_WP_WORKS_OK=y
>>>CONFIG_X86_INVLPG=y
>>>CONFIG_X86_BSWAP=y
>>>CONFIG_X86_POPAD_OK=y
>>>CONFIG_X86_GOOD_APIC=y
>>>CONFIG_X86_INTEL_USERCOPY=y
>>>CONFIG_X86_USE_PPRO_CHECKSUM=y
>>>CONFIG_HPET_TIMER=y
>>>CONFIG_SMP=y
>>>CONFIG_NR_CPUS=4
>>>CONFIG_SCHED_SMT=y
>>>CONFIG_PREEMPT=y
>>>CONFIG_PREEMPT_BKL=y
>>>CONFIG_X86_LOCAL_APIC=y
>>>CONFIG_X86_IO_APIC=y
>>>CONFIG_X86_TSC=y
>>>CONFIG_X86_MCE=y
>>>CONFIG_X86_MCE_NONFATAL=m
>>>CONFIG_X86_MCE_P4THERMAL=y
>>>CONFIG_TOSHIBA=m
>>>CONFIG_I8K=m
>>>[..]
>>>CONFIG_PM=y
>>># CONFIG_PM_DEBUG is not set
>>>CONFIG_SOFTWARE_SUSPEND=y
>>>CONFIG_PM_STD_PARTITION=""
>>>[..]
>>>CONFIG_ACPI=y
>>>CONFIG_ACPI_BOOT=y
>>>CONFIG_ACPI_INTERPRETER=y
>>>CONFIG_ACPI_SLEEP=y
>>>CONFIG_ACPI_SLEEP_PROC_FS=y
>>>CONFIG_ACPI_AC=y
>>>CONFIG_ACPI_BATTERY=y
>>>CONFIG_ACPI_BUTTON=y
>>>CONFIG_ACPI_VIDEO=y
>>>CONFIG_ACPI_FAN=y
>>>CONFIG_ACPI_PROCESSOR=y
>>>CONFIG_ACPI_THERMAL=y
>>>CONFIG_ACPI_ASUS=m
>>>CONFIG_ACPI_IBM=m
>>>CONFIG_ACPI_TOSHIBA=m
>>>CONFIG_ACPI_BLACKLIST_YEAR=0
>>># CONFIG_ACPI_DEBUG is not set
>>>CONFIG_ACPI_BUS=y
>>>CONFIG_ACPI_EC=y
>>>CONFIG_ACPI_POWER=y
>>>CONFIG_ACPI_PCI=y
>>>CONFIG_ACPI_SYSTEM=y
>>>CONFIG_X86_PM_TIMER=y
>>># CONFIG_ACPI_CONTAINER is not set
>>>[..]
>>>CONFIG_CPU_FREQ=y
>>># CONFIG_CPU_FREQ_DEBUG is not set
>>>CONFIG_CPU_FREQ_STAT=m
>>>CONFIG_CPU_FREQ_STAT_DETAILS=y
>>># CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
>>>CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
>>>CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
>>>CONFIG_CPU_FREQ_GOV_POWERSAVE=y
>>>CONFIG_CPU_FREQ_GOV_USERSPACE=y
>>>CONFIG_CPU_FREQ_GOV_ONDEMAND=y
>>>CONFIG_CPU_FREQ_TABLE=y
>>>[..]
>>>CONFIG_X86_ACPI_CPUFREQ=y
>>>CONFIG_X86_POWERNOW_K6=m
>>>CONFIG_X86_POWERNOW_K7=m
>>>CONFIG_X86_POWERNOW_K7_ACPI=y
>>>CONFIG_X86_POWERNOW_K8=m
>>>CONFIG_X86_POWERNOW_K8_ACPI=y
>>>CONFIG_X86_GX_SUSPMOD=m
>>>CONFIG_X86_SPEEDSTEP_CENTRINO=m
>>>CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
>>>CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
>>>CONFIG_X86_SPEEDSTEP_ICH=m
>>>CONFIG_X86_SPEEDSTEP_SMI=m
>>>CONFIG_X86_P4_CLOCKMOD=y
>>>CONFIG_X86_CPUFREQ_NFORCE2=m
>>>CONFIG_X86_LONGRUN=m
>>>CONFIG_X86_LONGHAUL=m
>>>[..]
>>># CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
>>>CONFIG_X86_SPEEDSTEP_LIB=y
>>>CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
>>>[..]
>>>
>>>
>>>
>>>      
>>>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>
Hi!
Cpufreq (with enabled debugging (not CONFIG_DEBUG_KERNEL)) doesn't 
display any additional messages. I'll compile it with CONFIG_DEBUG_KERNEL.

Matthias-Christian Ott

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

* Re: [BUG?]: cpufreqency scaling - wrong frequency detected
  2005-01-21 14:42 ` Matthias-Christian Ott
@ 2005-01-21 17:33   ` Matthias-Christian Ott
  0 siblings, 0 replies; 8+ messages in thread
From: Matthias-Christian Ott @ 2005-01-21 17:33 UTC (permalink / raw)
  To: Matthias-Christian Ott
  Cc: Pallipadi, Venkatesh, linux-kernel, linux, Nakajima, Jun, Zou, Nanhai

Matthias-Christian Ott wrote:

> Pallipadi, Venkatesh wrote:
>
>> Never mind about acpidmp. This seems to be a issue with
>> p4-clockmod.c/speedstep-lib.c and the routine which gets the initial
>> frequency. As a result all frequencies are getting multiplied by 8. Not
>> sure what the exact bug is though. Dominik can give a better answer.
>> Cpufreq debug messages will help.
>>
>> Thanks,
>> Venki
>>
>>  
>>
>>> -----Original Message-----
>>> From: Pallipadi, Venkatesh Sent: Thursday, January 20, 2005 12:56 PM
>>> To: 'Matthias-Christian Ott'; linux-kernel@vger.kernel.org
>>> Cc: linux@brodo.de; Nakajima, Jun; Zou, Nanhai
>>> Subject: RE: [BUG?]: cpufreqency scaling - wrong frequency detected
>>>
>>>
>>> Hi,
>>>
>>> Can you send the output of 'acpidmp' from this system to me? If 
>>> acpidmp is not already installed, you should be able to grab it from 
>>> here. http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/
>>> Thanks,
>>> Venki
>>>
>>>   
>>>
>>>> -----Original Message-----
>>>> From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de] 
>>>> Sent: Thursday, January 20, 2005 12:13 PM
>>>> To: Linux Kernel Mailing List
>>>> Cc: linux@brodo.de; Nakajima, Jun; Pallipadi, Venkatesh; Zou, Nanhai
>>>> Subject: [BUG?]: cpufreqency scaling - wrong frequency detected
>>>>
>>>> Hi!
>>>> The Kernel cpufrequency scaling modul seems to have a bug, it     
>>>
>>> displays   
>>>
>>>> the frequency of 14,60 Ghz. I don't enabled debugging in the 
>>>> config, but I hope this information can help you. I don't know if 
>>>> it's really a bug, so I send it to the mailing list instead of 
>>>> reporting it to the bugzilla bugtracking system. if you need 
>>>> additional information, I'll     
>>>
>>> compile a   
>>>
>>>> Kernel with cpufreq debugging.
>>>>
>>>> Matthias-Christian Ott
>>>>
>>>> [fox@iceowl ~]$ cat /proc/version
>>>> Linux version 2.6.11-rc1-bk7-ott (root@iceowl.ott.dyndns.info) 
>>>> (gcc-Version 3.4.3) #1 SMP Thu Jan 20 16:18:06 CET 2005
>>>>
>>>> [root@iceowl ~]# dmesg
>>>> ACPI: RSDP (v000 MSISYS                                ) @ 0x000f7550
>>>> ACPI: RSDT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>>> 0x17ff3000
>>>> ACPI: FADT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>>>> 0x17ff3040
>>>> ACPI: MADT (v001 MSISYS AWRDACPI 0x42302e31 AWRD 0x00000000) @ 
>>>> 0x17ff6c40
>>>> ACPI: DSDT (v001 MSISYS AWRDACPI 0x00001000 MSFT 0x0100000c) @ 
>>>> 0x00000000
>>>> ACPI: PM-Timer IO Port: 0x4008
>>>> ACPI: Local APIC address 0xfee00000
>>>> ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
>>>> Processor #0 15:1 APIC version 20
>>>> ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
>>>> IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
>>>> ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high level)
>>>> ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
>>>> ACPI: IRQ0 used by override.
>>>> ACPI: IRQ2 used by override.
>>>> ACPI: IRQ9 used by override.
>>>> Enabling APIC mode:  Flat.  Using 1 I/O APICs
>>>> Using ACPI (MADT) for SMP configuration information
>>>> Built 1 zonelists
>>>> Kernel command line: root=/dev/discs/disc0/part1 
>>>> video=vesafb:ywrap,mtrr vga=0x318 elevator=cfq ro mem=393152K
>>>> [..]
>>>> CPU: After generic identify, caps: 3febfbff 00000000 00000000     
>>>
>>> 00000000   
>>>
>>>> 00000000 00000000 00000000
>>>> CPU: After vendor identify, caps: 3febfbff 00000000 00000000 
>>>> 00000000 00000000 00000000 00000000
>>>> CPU: Trace cache: 12K uops, L1 D cache: 8K
>>>> CPU: L2 cache: 256K
>>>> CPU: Hyper-Threading is disabled
>>>> CPU: After all inits, caps: 3febfbff 00000000 00000000 00000080 
>>>> 00000000 00000000 00000000
>>>> Intel machine check architecture supported.
>>>> Intel machine check reporting enabled on CPU#0.
>>>> CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
>>>> CPU0: Thermal monitoring enabled
>>>> Enabling fast FPU save and restore... done.
>>>> Enabling unmasked SIMD FPU exception support... done.
>>>> Checking 'hlt' instruction... OK.
>>>> CPU0: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
>>>> per-CPU timeslice cutoff: 731.50 usecs.
>>>> [..]
>>>> Total of 1 processors activated (3563.52 BogoMIPS).
>>>> ENABLING IO-APIC IRQs
>>>> ..TIMER: vector=0x31 pin1=2 pin2=-1
>>>> Brought up 1 CPUs
>>>> CPU0 attaching sched-domain:
>>>> domain 0: span 1
>>>> groups: 1
>>>> domain 1: span 1
>>>>  groups: 1
>>>> [..]
>>>> ACPI: Subsystem revision 20041210
>>>>   ACPI-1138: *** Error: Method execution failed [\STRC] (Node 
>>>> d7fc3660), AE_AML_BUFFER_LIMIT
>>>>   ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0._INI] 
>>>> (Node d7fc7420), AE_AML_BUFFER_LIMIT
>>>> ACPI: Interpreter enabled
>>>> ACPI: Using IOAPIC for interrupt routing
>>>> ACPI: PCI Root Bridge [PCI0] (00:00)
>>>> PCI: Probing PCI hardware (bus 00)
>>>> PCI: Transparent bridge - 0000:00:1e.0
>>>> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
>>>> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
>>>> ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
>>>> ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
>>>> ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>>>> [..]
>>>> ACPI: Power Button (FF) [PWRF]
>>>> ACPI: Sleep Button (CM) [SLPB]
>>>> ACPI: Fan [FAN] (on)
>>>> ACPI: CPU0 (power states: C1[C1] C2[C2])
>>>> ACPI: Processor [CPU0] (supports 2 throttling states)
>>>> ACPI: Thermal Zone [THRM] (22 C)
>>>> [..]
>>>> p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
>>>> [..]
>>>>
>>>> [root@iceowl ~]# cat /proc/cpuinfo
>>>> processor       : 0
>>>> vendor_id       : GenuineIntel
>>>> cpu family      : 15
>>>> model           : 1
>>>> model name      : Intel(R) Pentium(R) 4 CPU 1.80GHz
>>>> stepping        : 2
>>>> cpu MHz         : 1800.257
>>>> cache size      : 256 KB
>>>> physical id     : 0
>>>> siblings        : 1
>>>> fdiv_bug        : no
>>>> hlt_bug         : no
>>>> f00f_bug        : no
>>>> coma_bug        : no
>>>> fpu             : yes
>>>> fpu_exception   : yes
>>>> cpuid level     : 2
>>>> 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
>>>> bogomips        : 3563.52
>>>>
>>>> [root@iceowl ~]# cat 
>>>> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
>>>> 14600000
>>>>
>>>> [root@iceowl ~]# cat 
>>>> /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
>>>> 3650000 5475000 7300000 9125000 10950000 12775000 14600000
>>>>
>>>> [root@iceowl ~]# cat 
>>>> /home/fox/builds/kernel/kernel-2.6.10-rc1-ott/config
>>>> [..]
>>>> CONFIG_X86_PC=y
>>>> [..]
>>>> CONFIG_MPENTIUM4=y
>>>> [..]
>>>> CONFIG_X86_GENERIC=y
>>>> CONFIG_X86_CMPXCHG=y
>>>> CONFIG_X86_XADD=y
>>>> CONFIG_X86_L1_CACHE_SHIFT=7
>>>> CONFIG_RWSEM_XCHGADD_ALGORITHM=y
>>>> CONFIG_GENERIC_CALIBRATE_DELAY=y
>>>> CONFIG_X86_WP_WORKS_OK=y
>>>> CONFIG_X86_INVLPG=y
>>>> CONFIG_X86_BSWAP=y
>>>> CONFIG_X86_POPAD_OK=y
>>>> CONFIG_X86_GOOD_APIC=y
>>>> CONFIG_X86_INTEL_USERCOPY=y
>>>> CONFIG_X86_USE_PPRO_CHECKSUM=y
>>>> CONFIG_HPET_TIMER=y
>>>> CONFIG_SMP=y
>>>> CONFIG_NR_CPUS=4
>>>> CONFIG_SCHED_SMT=y
>>>> CONFIG_PREEMPT=y
>>>> CONFIG_PREEMPT_BKL=y
>>>> CONFIG_X86_LOCAL_APIC=y
>>>> CONFIG_X86_IO_APIC=y
>>>> CONFIG_X86_TSC=y
>>>> CONFIG_X86_MCE=y
>>>> CONFIG_X86_MCE_NONFATAL=m
>>>> CONFIG_X86_MCE_P4THERMAL=y
>>>> CONFIG_TOSHIBA=m
>>>> CONFIG_I8K=m
>>>> [..]
>>>> CONFIG_PM=y
>>>> # CONFIG_PM_DEBUG is not set
>>>> CONFIG_SOFTWARE_SUSPEND=y
>>>> CONFIG_PM_STD_PARTITION=""
>>>> [..]
>>>> CONFIG_ACPI=y
>>>> CONFIG_ACPI_BOOT=y
>>>> CONFIG_ACPI_INTERPRETER=y
>>>> CONFIG_ACPI_SLEEP=y
>>>> CONFIG_ACPI_SLEEP_PROC_FS=y
>>>> CONFIG_ACPI_AC=y
>>>> CONFIG_ACPI_BATTERY=y
>>>> CONFIG_ACPI_BUTTON=y
>>>> CONFIG_ACPI_VIDEO=y
>>>> CONFIG_ACPI_FAN=y
>>>> CONFIG_ACPI_PROCESSOR=y
>>>> CONFIG_ACPI_THERMAL=y
>>>> CONFIG_ACPI_ASUS=m
>>>> CONFIG_ACPI_IBM=m
>>>> CONFIG_ACPI_TOSHIBA=m
>>>> CONFIG_ACPI_BLACKLIST_YEAR=0
>>>> # CONFIG_ACPI_DEBUG is not set
>>>> CONFIG_ACPI_BUS=y
>>>> CONFIG_ACPI_EC=y
>>>> CONFIG_ACPI_POWER=y
>>>> CONFIG_ACPI_PCI=y
>>>> CONFIG_ACPI_SYSTEM=y
>>>> CONFIG_X86_PM_TIMER=y
>>>> # CONFIG_ACPI_CONTAINER is not set
>>>> [..]
>>>> CONFIG_CPU_FREQ=y
>>>> # CONFIG_CPU_FREQ_DEBUG is not set
>>>> CONFIG_CPU_FREQ_STAT=m
>>>> CONFIG_CPU_FREQ_STAT_DETAILS=y
>>>> # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
>>>> CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
>>>> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
>>>> CONFIG_CPU_FREQ_GOV_POWERSAVE=y
>>>> CONFIG_CPU_FREQ_GOV_USERSPACE=y
>>>> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
>>>> CONFIG_CPU_FREQ_TABLE=y
>>>> [..]
>>>> CONFIG_X86_ACPI_CPUFREQ=y
>>>> CONFIG_X86_POWERNOW_K6=m
>>>> CONFIG_X86_POWERNOW_K7=m
>>>> CONFIG_X86_POWERNOW_K7_ACPI=y
>>>> CONFIG_X86_POWERNOW_K8=m
>>>> CONFIG_X86_POWERNOW_K8_ACPI=y
>>>> CONFIG_X86_GX_SUSPMOD=m
>>>> CONFIG_X86_SPEEDSTEP_CENTRINO=m
>>>> CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
>>>> CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
>>>> CONFIG_X86_SPEEDSTEP_ICH=m
>>>> CONFIG_X86_SPEEDSTEP_SMI=m
>>>> CONFIG_X86_P4_CLOCKMOD=y
>>>> CONFIG_X86_CPUFREQ_NFORCE2=m
>>>> CONFIG_X86_LONGRUN=m
>>>> CONFIG_X86_LONGHAUL=m
>>>> [..]
>>>> # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
>>>> CONFIG_X86_SPEEDSTEP_LIB=y
>>>> CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
>>>> [..]
>>>>
>>>>
>>>>
>>>>     
>>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>>  
>>
> Hi!
> Cpufreq (with enabled debugging (not CONFIG_DEBUG_KERNEL)) doesn't 
> display any additional messages. I'll compile it with 
> CONFIG_DEBUG_KERNEL.
>
> Matthias-Christian Ott
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
Hi!
CONFIG_DEBUG_KERNEL doesn't display any additional messages. What do I 
have activate to get such debugging messages:
dprintk("P4 - MSR_EBC_FREQUENCY_ID: 0x%x 0x%x\n", msr_lo, msr_hi);

Matthias-Christian Ott

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

* Re: [BUG?]: cpufreqency scaling - wrong frequency detected
  2005-01-21 17:58 Pallipadi, Venkatesh
@ 2005-01-21 21:16 ` Matthias-Christian Ott
  0 siblings, 0 replies; 8+ messages in thread
From: Matthias-Christian Ott @ 2005-01-21 21:16 UTC (permalink / raw)
  To: Pallipadi, Venkatesh; +Cc: linux-kernel, linux, Nakajima, Jun, Zou, Nanhai

Pallipadi, Venkatesh wrote:

>
>
>> -----Original Message-----
>> From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de]
>> Sent: Friday, January 21, 2005 9:34 AM
>> To: Matthias-Christian Ott
>> Cc: Pallipadi, Venkatesh; linux-kernel@vger.kernel.org;
>> linux@brodo.de; Nakajima, Jun; Zou, Nanhai
>> Subject: Re: [BUG?]: cpufreqency scaling - wrong frequency detected
>>
>> Matthias-Christian Ott wrote:
>>
>>>>
>>>>
>>> Hi!
>>> Cpufreq (with enabled debugging (not CONFIG_DEBUG_KERNEL)) doesn't
>>> display any additional messages. I'll compile it with
>>> CONFIG_DEBUG_KERNEL.
>>>
>>> Matthias-Christian Ott
>>> -
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-kernel" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>> Please read the FAQ at http://www.tux.org/lkml/
>>>
>> Hi!
>> CONFIG_DEBUG_KERNEL doesn't display any additional messages. What do I
>> have activate to get such debugging messages:
>> dprintk("P4 - MSR_EBC_FREQUENCY_ID: 0x%x 0x%x\n", msr_lo, msr_hi);
>>
>> Matthias-Christian Ott
>>
>
> Enable CPU_FREQ_DEBUG and activate it.
> Thanks,
> Venki
>
> config CPU_FREQ_DEBUG
> bool "Enable CPUfreq debugging"
> depends on CPU_FREQ
> help
> Say Y here to enable CPUfreq subsystem (including drivers)
> debugging. You will need to activate it via the kernel
> command line by passing
> cpufreq.debug=<value>
>
> To get <value>, add
> 1 to activate CPUfreq core debugging,
> 2 to activate CPUfreq drivers debugging, and
> 4 to activate CPUfreq governor debugging
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
Hi!
I did had look at the Kconfig, sorry my mistake. I'm not a cpu expert 
but according to this code:

rdmsr(0x2c, msr_lo, msr_hi);

It reads the values from the MSR, but wrong. There's global variable 
cpu_khz (defined from the tsc functions 
[arch/i386/kernel/timers/timer_tsc.c]) which get's the correct value. 
Wouldn't it be easier to take this value, because the ACPI functions do 
the rest (acpi_processor_set_performance, acpi_cpufreq_target, etc.), 
give the parameters to the bios.

It's just a try to simplify it (my knowledge about the Kernel and CPU's 
is limited), but I think maybe it works (perhaps there's a problem with 
the "table entrys" [as I said my knowledge is limited]).

But here's the output:

cpufreq.debug=4:
userspace: managing cpu 0 stopped
performance: setting to 14600000 kHz because of event 1
performance: setting to 14600000 kHz because of event 3
performance: setting to 14600000 kHz because of event 3
performance: setting to 14600000 kHz because of event 3

cpufreq.debug=2:
acpi-cpufreq: acpi_cpufreq_init
acpi-cpufreq: acpi_cpufreq_cpu_init
acpi-cpufreq: acpi_processor_cpu_init_pdc
p4-clockmod: has errata -- disabling low frequencies
speedstep-lib: x86: f, model: 1
speedstep-lib: P4 - MSR_EBC_FREQUENCY_ID: 0x9201fc00 0x0
speedstep-lib: P4 - FSB 100000 kHz; Multiplier 146; Speed 14600000 kHz
p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available

cpufreq.debug=1:
cpufreq-core: trying to register driver acpi-cpufreq
cpufreq-core: adding CPU 0
cpufreq-core: initialization failed
cpufreq-core: no CPU initialized for driver acpi-cpufreq
cpufreq-core: unregistering CPU 0
cpufreq-core: trying to register driver p4-clockmod
cpufreq-core: adding CPU 0
freq-table: setting show_table for cpu 0 to c0554aa0
freq-table: table entry 0 is invalid, skipping
freq-table: table entry 1 is invalid, skipping
freq-table: table entry 2: 3650000 kHz, 2 index
freq-table: table entry 3: 5475000 kHz, 3 index
freq-table: table entry 4: 7300000 kHz, 4 index
freq-table: table entry 5: 9125000 kHz, 5 index
freq-table: table entry 6: 10950000 kHz, 6 index
freq-table: table entry 7: 12775000 kHz, 7 index
freq-table: table entry 8: 14600000 kHz, 8 index
cpufreq-core: setting new policy for CPU 0: 3650000 - 14600000 kHz
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
cpufreq-core: new min and max freqs are 3650000 - 14600000 kHz
cpufreq-core: governor switch
cpufreq-core: __cpufreq_governor for CPU 0, event 1
cpufreq-core: governor: change or update limits
cpufreq-core: __cpufreq_governor for CPU 0, event 3
cpufreq-core: target for CPU 0: 14600000 kHz, relation 0
freq-table: request for target 14600000 kHz (relation: 0) for cpu 0
freq-table: target is 8 (14600000 kHz, 8)
cpufreq-core: initialization complete
cpufreq-core: driver p4-clockmod up and running
p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
cpufreq-core: setting new policy for CPU 0: 3650000 - 14600000 kHz
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
cpufreq-core: new min and max freqs are 3650000 - 14600000 kHz
cpufreq-core: governor switch
cpufreq-core: __cpufreq_governor for CPU 0, event 2
cpufreq-core: __cpufreq_governor for CPU 0, event 1
cpufreq-core: target for CPU 0: 14600000 kHz, relation 1
freq-table: request for target 14600000 kHz (relation: 1) for cpu 0
freq-table: target is 8 (14600000 kHz, 8)
cpufreq-core: governor: change or update limits
cpufreq-core: __cpufreq_governor for CPU 0, event 3
cpufreq-core: target for CPU 0: 14600000 kHz, relation 1
freq-table: request for target 14600000 kHz (relation: 1) for cpu 0
freq-table: target is 8 (14600000 kHz, 8)
cpufreq-core: setting new policy for CPU 0: 3650000 - 14600000 kHz
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
freq-table: request for verification of policy (3650000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (3650000 - 14600000 kHz) for cpu 0
cpufreq-core: new min and max freqs are 3650000 - 14600000 kHz
cpufreq-core: governor: change or update limits
cpufreq-core: __cpufreq_governor for CPU 0, event 3
cpufreq-core: target for CPU 0: 14600000 kHz, relation 1
freq-table: request for target 14600000 kHz (relation: 1) for cpu 0
freq-table: target is 8 (14600000 kHz, 8)
cpufreq-core: setting new policy for CPU 0: 9636000 - 14600000 kHz
freq-table: request for verification of policy (9636000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (9636000 - 14600000 kHz) for cpu 0
freq-table: request for verification of policy (9636000 - 14600000 kHz) 
for cpu 0
freq-table: verification lead to (9636000 - 14600000 kHz) for cpu 0
cpufreq-core: new min and max freqs are 9636000 - 14600000 kHz
cpufreq-core: governor: change or update limits
cpufreq-core: __cpufreq_governor for CPU 0, event 3
cpufreq-core: target for CPU 0: 14600000 kHz, relation 1
freq-table: request for target 14600000 kHz (relation: 1) for cpu 0
freq-table: target is 8 (14600000 kHz, 8)

Sincerely
Matthias-Christian Ott

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

* RE: [BUG?]: cpufreqency scaling - wrong frequency detected
@ 2005-01-21 17:58 Pallipadi, Venkatesh
  2005-01-21 21:16 ` Matthias-Christian Ott
  0 siblings, 1 reply; 8+ messages in thread
From: Pallipadi, Venkatesh @ 2005-01-21 17:58 UTC (permalink / raw)
  To: Matthias-Christian Ott; +Cc: linux-kernel, linux, Nakajima, Jun, Zou, Nanhai

 

>-----Original Message-----
>From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de] 
>Sent: Friday, January 21, 2005 9:34 AM
>To: Matthias-Christian Ott
>Cc: Pallipadi, Venkatesh; linux-kernel@vger.kernel.org; 
>linux@brodo.de; Nakajima, Jun; Zou, Nanhai
>Subject: Re: [BUG?]: cpufreqency scaling - wrong frequency detected
>
>Matthias-Christian Ott wrote:
>
>>>  
>>>
>> Hi!
>> Cpufreq (with enabled debugging (not CONFIG_DEBUG_KERNEL)) doesn't 
>> display any additional messages. I'll compile it with 
>> CONFIG_DEBUG_KERNEL.
>>
>> Matthias-Christian Ott
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>Hi!
>CONFIG_DEBUG_KERNEL doesn't display any additional messages. What do I 
>have activate to get such debugging messages:
>dprintk("P4 - MSR_EBC_FREQUENCY_ID: 0x%x 0x%x\n", msr_lo, msr_hi);
>
>Matthias-Christian Ott
>

Enable CPU_FREQ_DEBUG and activate it.
Thanks,
Venki

config CPU_FREQ_DEBUG
        bool "Enable CPUfreq debugging"
        depends on CPU_FREQ
        help
          Say Y here to enable CPUfreq subsystem (including drivers)
          debugging. You will need to activate it via the kernel
          command line by passing
             cpufreq.debug=<value>

          To get <value>, add
               1 to activate CPUfreq core debugging,
               2 to activate CPUfreq drivers debugging, and
               4 to activate CPUfreq governor debugging



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

* Re: [BUG?]: cpufreqency scaling - wrong frequency detected
  2005-01-20 20:12 Matthias-Christian Ott
@ 2005-01-21 16:25 ` Dominik Brodowski
  0 siblings, 0 replies; 8+ messages in thread
From: Dominik Brodowski @ 2005-01-21 16:25 UTC (permalink / raw)
  To: Matthias-Christian Ott
  Cc: Linux Kernel Mailing List, jun.nakajima, venkatesh.pallipadi, nanhai.zou

Hi,

> I hope this information can help you. I don't know if it's really a bug, 

yes, this seems to be a bug.

> so I send it to the mailing list instead of reporting it to the bugzilla 
> bugtracking system. if you need additional information, I'll compile a 
> Kernel with cpufreq debugging.

Unfortunately, this seems to be necessary. Please re-compile with cpufreq
debugging enabled, pass cpufreq.debug=2 on the kernel boot line, and send me
the dmesg (off-list).

Thanks,
	Dominik

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

* RE: [BUG?]: cpufreqency scaling - wrong frequency detected
@ 2005-01-20 20:56 Pallipadi, Venkatesh
  0 siblings, 0 replies; 8+ messages in thread
From: Pallipadi, Venkatesh @ 2005-01-20 20:56 UTC (permalink / raw)
  To: Matthias-Christian Ott, linux-kernel; +Cc: linux, Nakajima, Jun, Zou, Nanhai


Hi,

Can you send the output of 'acpidmp' from this system to me? If acpidmp
is not already installed, you should be able to grab it from here.
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/ 

Thanks,
Venki

>-----Original Message-----
>From: Matthias-Christian Ott [mailto:matthias.christian@tiscali.de] 
>Sent: Thursday, January 20, 2005 12:13 PM
>To: Linux Kernel Mailing List
>Cc: linux@brodo.de; Nakajima, Jun; Pallipadi, Venkatesh; Zou, Nanhai
>Subject: [BUG?]: cpufreqency scaling - wrong frequency detected
>
>Hi!
>The Kernel cpufrequency scaling modul seems to have a bug, it displays 
>the frequency of 14,60 Ghz. I don't enabled debugging in the 
>config, but 
>I hope this information can help you. I don't know if it's 
>really a bug, 
>so I send it to the mailing list instead of reporting it to 
>the bugzilla 
>bugtracking system. if you need additional information, I'll compile a 
>Kernel with cpufreq debugging.
>
>Matthias-Christian Ott
>
>[fox@iceowl ~]$ cat /proc/version
>Linux version 2.6.11-rc1-bk7-ott (root@iceowl.ott.dyndns.info) 
>(gcc-Version 3.4.3) #1 SMP Thu Jan 20 16:18:06 CET 2005
>
>[root@iceowl ~]# dmesg
>ACPI: RSDP (v000 MSISYS                                ) @ 0x000f7550
>ACPI: RSDT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>0x17ff3000
>ACPI: FADT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 
>0x17ff3040
>ACPI: MADT (v001 MSISYS AWRDACPI 0x42302e31 AWRD 0x00000000) @ 
>0x17ff6c40
>ACPI: DSDT (v001 MSISYS AWRDACPI 0x00001000 MSFT 0x0100000c) @ 
>0x00000000
>ACPI: PM-Timer IO Port: 0x4008
>ACPI: Local APIC address 0xfee00000
>ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
>Processor #0 15:1 APIC version 20
>ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
>IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
>ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high level)
>ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
>ACPI: IRQ0 used by override.
>ACPI: IRQ2 used by override.
>ACPI: IRQ9 used by override.
>Enabling APIC mode:  Flat.  Using 1 I/O APICs
>Using ACPI (MADT) for SMP configuration information
>Built 1 zonelists
>Kernel command line: root=/dev/discs/disc0/part1 
>video=vesafb:ywrap,mtrr 
>vga=0x318 elevator=cfq ro mem=393152K
>[..]
>CPU: After generic identify, caps: 3febfbff 00000000 00000000 00000000 
>00000000 00000000 00000000
>CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 
>00000000 00000000 00000000
>CPU: Trace cache: 12K uops, L1 D cache: 8K
>CPU: L2 cache: 256K
>CPU: Hyper-Threading is disabled
>CPU: After all inits, caps: 3febfbff 00000000 00000000 
>00000080 00000000 
>00000000 00000000
>Intel machine check architecture supported.
>Intel machine check reporting enabled on CPU#0.
>CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
>CPU0: Thermal monitoring enabled
>Enabling fast FPU save and restore... done.
>Enabling unmasked SIMD FPU exception support... done.
>Checking 'hlt' instruction... OK.
>CPU0: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
>per-CPU timeslice cutoff: 731.50 usecs.
>[..]
>Total of 1 processors activated (3563.52 BogoMIPS).
>ENABLING IO-APIC IRQs
>..TIMER: vector=0x31 pin1=2 pin2=-1
>Brought up 1 CPUs
>CPU0 attaching sched-domain:
> domain 0: span 1
>  groups: 1
>  domain 1: span 1
>   groups: 1
>[..]
>ACPI: Subsystem revision 20041210
>    ACPI-1138: *** Error: Method execution failed [\STRC] (Node 
>d7fc3660), AE_AML_BUFFER_LIMIT
>    ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0._INI] 
>(Node d7fc7420), AE_AML_BUFFER_LIMIT
>ACPI: Interpreter enabled
>ACPI: Using IOAPIC for interrupt routing
>ACPI: PCI Root Bridge [PCI0] (00:00)
>PCI: Probing PCI hardware (bus 00)
>PCI: Transparent bridge - 0000:00:1e.0
>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
>ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
>ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
>ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
>[..]
>ACPI: Power Button (FF) [PWRF]
>ACPI: Sleep Button (CM) [SLPB]
>ACPI: Fan [FAN] (on)
>ACPI: CPU0 (power states: C1[C1] C2[C2])
>ACPI: Processor [CPU0] (supports 2 throttling states)
>ACPI: Thermal Zone [THRM] (22 C)
>[..]
>p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
>[..]
>
>[root@iceowl ~]# cat /proc/cpuinfo
>processor       : 0
>vendor_id       : GenuineIntel
>cpu family      : 15
>model           : 1
>model name      : Intel(R) Pentium(R) 4 CPU 1.80GHz
>stepping        : 2
>cpu MHz         : 1800.257
>cache size      : 256 KB
>physical id     : 0
>siblings        : 1
>fdiv_bug        : no
>hlt_bug         : no
>f00f_bug        : no
>coma_bug        : no
>fpu             : yes
>fpu_exception   : yes
>cpuid level     : 2
>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
>bogomips        : 3563.52
>
>[root@iceowl ~]# cat 
>/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
>14600000
>
>[root@iceowl ~]# cat 
>/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
>3650000 5475000 7300000 9125000 10950000 12775000 14600000
>
>[root@iceowl ~]# cat 
>/home/fox/builds/kernel/kernel-2.6.10-rc1-ott/config
>[..]
>CONFIG_X86_PC=y
>[..]
>CONFIG_MPENTIUM4=y
>[..]
>CONFIG_X86_GENERIC=y
>CONFIG_X86_CMPXCHG=y
>CONFIG_X86_XADD=y
>CONFIG_X86_L1_CACHE_SHIFT=7
>CONFIG_RWSEM_XCHGADD_ALGORITHM=y
>CONFIG_GENERIC_CALIBRATE_DELAY=y
>CONFIG_X86_WP_WORKS_OK=y
>CONFIG_X86_INVLPG=y
>CONFIG_X86_BSWAP=y
>CONFIG_X86_POPAD_OK=y
>CONFIG_X86_GOOD_APIC=y
>CONFIG_X86_INTEL_USERCOPY=y
>CONFIG_X86_USE_PPRO_CHECKSUM=y
>CONFIG_HPET_TIMER=y
>CONFIG_SMP=y
>CONFIG_NR_CPUS=4
>CONFIG_SCHED_SMT=y
>CONFIG_PREEMPT=y
>CONFIG_PREEMPT_BKL=y
>CONFIG_X86_LOCAL_APIC=y
>CONFIG_X86_IO_APIC=y
>CONFIG_X86_TSC=y
>CONFIG_X86_MCE=y
>CONFIG_X86_MCE_NONFATAL=m
>CONFIG_X86_MCE_P4THERMAL=y
>CONFIG_TOSHIBA=m
>CONFIG_I8K=m
>[..]
>CONFIG_PM=y
># CONFIG_PM_DEBUG is not set
>CONFIG_SOFTWARE_SUSPEND=y
>CONFIG_PM_STD_PARTITION=""
>[..]
>CONFIG_ACPI=y
>CONFIG_ACPI_BOOT=y
>CONFIG_ACPI_INTERPRETER=y
>CONFIG_ACPI_SLEEP=y
>CONFIG_ACPI_SLEEP_PROC_FS=y
>CONFIG_ACPI_AC=y
>CONFIG_ACPI_BATTERY=y
>CONFIG_ACPI_BUTTON=y
>CONFIG_ACPI_VIDEO=y
>CONFIG_ACPI_FAN=y
>CONFIG_ACPI_PROCESSOR=y
>CONFIG_ACPI_THERMAL=y
>CONFIG_ACPI_ASUS=m
>CONFIG_ACPI_IBM=m
>CONFIG_ACPI_TOSHIBA=m
>CONFIG_ACPI_BLACKLIST_YEAR=0
># CONFIG_ACPI_DEBUG is not set
>CONFIG_ACPI_BUS=y
>CONFIG_ACPI_EC=y
>CONFIG_ACPI_POWER=y
>CONFIG_ACPI_PCI=y
>CONFIG_ACPI_SYSTEM=y
>CONFIG_X86_PM_TIMER=y
># CONFIG_ACPI_CONTAINER is not set
>[..]
>CONFIG_CPU_FREQ=y
># CONFIG_CPU_FREQ_DEBUG is not set
>CONFIG_CPU_FREQ_STAT=m
>CONFIG_CPU_FREQ_STAT_DETAILS=y
># CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
>CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
>CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
>CONFIG_CPU_FREQ_GOV_POWERSAVE=y
>CONFIG_CPU_FREQ_GOV_USERSPACE=y
>CONFIG_CPU_FREQ_GOV_ONDEMAND=y
>CONFIG_CPU_FREQ_TABLE=y
>[..]
>CONFIG_X86_ACPI_CPUFREQ=y
>CONFIG_X86_POWERNOW_K6=m
>CONFIG_X86_POWERNOW_K7=m
>CONFIG_X86_POWERNOW_K7_ACPI=y
>CONFIG_X86_POWERNOW_K8=m
>CONFIG_X86_POWERNOW_K8_ACPI=y
>CONFIG_X86_GX_SUSPMOD=m
>CONFIG_X86_SPEEDSTEP_CENTRINO=m
>CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
>CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
>CONFIG_X86_SPEEDSTEP_ICH=m
>CONFIG_X86_SPEEDSTEP_SMI=m
>CONFIG_X86_P4_CLOCKMOD=y
>CONFIG_X86_CPUFREQ_NFORCE2=m
>CONFIG_X86_LONGRUN=m
>CONFIG_X86_LONGHAUL=m
>[..]
># CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
>CONFIG_X86_SPEEDSTEP_LIB=y
>CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
>[..]
>
>
>

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

* [BUG?]: cpufreqency scaling - wrong frequency detected
@ 2005-01-20 20:12 Matthias-Christian Ott
  2005-01-21 16:25 ` Dominik Brodowski
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias-Christian Ott @ 2005-01-20 20:12 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: linux, jun.nakajima, venkatesh.pallipadi, nanhai.zou

Hi!
The Kernel cpufrequency scaling modul seems to have a bug, it displays 
the frequency of 14,60 Ghz. I don't enabled debugging in the config, but 
I hope this information can help you. I don't know if it's really a bug, 
so I send it to the mailing list instead of reporting it to the bugzilla 
bugtracking system. if you need additional information, I'll compile a 
Kernel with cpufreq debugging.

Matthias-Christian Ott

[fox@iceowl ~]$ cat /proc/version
Linux version 2.6.11-rc1-bk7-ott (root@iceowl.ott.dyndns.info) 
(gcc-Version 3.4.3) #1 SMP Thu Jan 20 16:18:06 CET 2005

[root@iceowl ~]# dmesg
ACPI: RSDP (v000 MSISYS                                ) @ 0x000f7550
ACPI: RSDT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x17ff3000
ACPI: FADT (v001 MSISYS MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x17ff3040
ACPI: MADT (v001 MSISYS AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x17ff6c40
ACPI: DSDT (v001 MSISYS AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:1 APIC version 20
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Built 1 zonelists
Kernel command line: root=/dev/discs/disc0/part1 video=vesafb:ywrap,mtrr 
vga=0x318 elevator=cfq ro mem=393152K
[..]
CPU: After generic identify, caps: 3febfbff 00000000 00000000 00000000 
00000000 00000000 00000000
CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 
00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 256K
CPU: Hyper-Threading is disabled
CPU: After all inits, caps: 3febfbff 00000000 00000000 00000080 00000000 
00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
CPU0: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
per-CPU timeslice cutoff: 731.50 usecs.
[..]
Total of 1 processors activated (3563.52 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 pin1=2 pin2=-1
Brought up 1 CPUs
CPU0 attaching sched-domain:
 domain 0: span 1
  groups: 1
  domain 1: span 1
   groups: 1
[..]
ACPI: Subsystem revision 20041210
    ACPI-1138: *** Error: Method execution failed [\STRC] (Node 
d7fc3660), AE_AML_BUFFER_LIMIT
    ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0._INI] 
(Node d7fc7420), AE_AML_BUFFER_LIMIT
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
[..]
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN] (on)
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Thermal Zone [THRM] (22 C)
[..]
p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
[..]

[root@iceowl ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 1
model name      : Intel(R) Pentium(R) 4 CPU 1.80GHz
stepping        : 2
cpu MHz         : 1800.257
cache size      : 256 KB
physical id     : 0
siblings        : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
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
bogomips        : 3563.52

[root@iceowl ~]# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
14600000

[root@iceowl ~]# cat 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
3650000 5475000 7300000 9125000 10950000 12775000 14600000

[root@iceowl ~]# cat /home/fox/builds/kernel/kernel-2.6.10-rc1-ott/config
[..]
CONFIG_X86_PC=y
[..]
CONFIG_MPENTIUM4=y
[..]
CONFIG_X86_GENERIC=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_HPET_TIMER=y
CONFIG_SMP=y
CONFIG_NR_CPUS=4
CONFIG_SCHED_SMT=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=m
CONFIG_X86_MCE_P4THERMAL=y
CONFIG_TOSHIBA=m
CONFIG_I8K=m
[..]
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=""
[..]
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_IBM=m
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
[..]
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_TABLE=y
[..]
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K6=m
CONFIG_X86_POWERNOW_K7=m
CONFIG_X86_POWERNOW_K7_ACPI=y
CONFIG_X86_POWERNOW_K8=m
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_GX_SUSPMOD=m
CONFIG_X86_SPEEDSTEP_CENTRINO=m
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
CONFIG_X86_SPEEDSTEP_ICH=m
CONFIG_X86_SPEEDSTEP_SMI=m
CONFIG_X86_P4_CLOCKMOD=y
CONFIG_X86_CPUFREQ_NFORCE2=m
CONFIG_X86_LONGRUN=m
CONFIG_X86_LONGHAUL=m
[..]
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_X86_SPEEDSTEP_LIB=y
CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
[..]



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

end of thread, other threads:[~2005-01-21 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-20 21:32 [BUG?]: cpufreqency scaling - wrong frequency detected Pallipadi, Venkatesh
2005-01-21 14:42 ` Matthias-Christian Ott
2005-01-21 17:33   ` Matthias-Christian Ott
  -- strict thread matches above, loose matches on Subject: below --
2005-01-21 17:58 Pallipadi, Venkatesh
2005-01-21 21:16 ` Matthias-Christian Ott
2005-01-20 20:56 Pallipadi, Venkatesh
2005-01-20 20:12 Matthias-Christian Ott
2005-01-21 16:25 ` Dominik Brodowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).