From nobody@FreeBSD.org Tue Jul 3 20:24:58 2007 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D85716A46C for ; Tue, 3 Jul 2007 20:24:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 5D9D413C46A for ; Tue, 3 Jul 2007 20:24:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l63KOw7p006826 for ; Tue, 3 Jul 2007 20:24:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l63KOvgA006824; Tue, 3 Jul 2007 20:24:58 GMT (envelope-from nobody) Message-Id: <200707032024.l63KOvgA006824@www.freebsd.org> Date: Tue, 3 Jul 2007 20:24:58 GMT From: Evren Yurtesen To: freebsd-gnats-submit@FreeBSD.org Subject: cpufreq doesnt work when compiled in to kernel on amd64 platform X-Send-Pr-Version: www-3.0 >Number: 114270 >Category: amd64 >Synopsis: [cpufreq] cpufreq doesnt work when compiled in to kernel on amd64 platform >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 03 20:30:05 GMT 2007 >Closed-Date: Mon Dec 06 12:06:51 UTC 2010 >Last-Modified: Mon Dec 06 12:06:51 UTC 2010 >Originator: Evren Yurtesen >Release: 6.2-STABLE >Organization: IsporNET Internet Services >Environment: FreeBSD host 6.2-STABLE FreeBSD 6.2-STABLE #3: Tue Jul 3 22:54:11 EEST 2007 user@host:/usr/obj/usr/src/sys/XXXXX amd64 >Description: When cpufreq is loaded as a module it detects several cpu frequencies supported. However when it is compiled into the kernel it doesnt work. Compiled in kernel: ------------------ host:/root#kldstat Id Refs Address Size Name 1 1 0xffffffff80100000 572c18 kernel host:/root#kldload cpufreq kldload: can't load cpufreq: File exists host:/root#sysctl -a |grep freq kern.acct_chkfreq: 15 debug.cpufreq.lowest: 0 debug.cpufreq.verbose: 0 machdep.acpi_timer_freq: 3579545 machdep.tsc_freq: 1600007070 machdep.i8254_freq: 1193182 host:/root#dmesg Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #3: Tue Jul 3 22:54:11 EEST 2007 user@host:/usr/obj/usr/src/sys/XXXXX ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5310 @ 1.60GHz (1600.01-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6f7 Stepping = 7 Features=0xbfebfbff Features2=0x4e33d,CX16,XTPR,,> AMD Features=0x20000800 AMD Features2=0x1 Cores per package: 4 real memory = 3219488768 (3070 MB) avail memory = 3106340864 (2962 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 2000 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x908-0x90b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci9: on pcib1 pcib2: at device 0.0 on pci9 pci10: on pcib2 pcib3: at device 0.0 on pci10 pci11: on pcib3 pcib4: at device 1.0 on pci10 pci14: on pcib4 pcib5: at device 0.0 on pci14 pci15: on pcib5 pcib6: at device 4.0 on pci15 pci16: on pcib6 ciss0: port 0x4000-0x40ff mem 0xfdf80000-0xfdffffff,0xfdf70000-0xfdf77fff irq 17 at device 8.0 on pci15 ciss0: [GIANT-LOCKED] pcib7: at device 2.0 on pci10 pci17: on pcib7 pcib8: at device 0.3 on pci9 pci18: on pcib8 pcib9: at device 3.0 on pci0 pci6: on pcib9 pcib10: at device 4.0 on pci0 pci19: on pcib10 pcib11: at device 5.0 on pci0 pci22: on pcib11 pcib12: at device 6.0 on pci0 pci23: on pcib12 pcib13: at device 7.0 on pci0 pci26: on pcib13 pcib14: at device 28.0 on pci0 pci2: on pcib14 pcib15: at device 0.0 on pci2 pci3: on pcib15 bce0: mem 0xf8000000-0xf9ffffff irq 16 at device 0.0 on pci3 miibus0: on bce0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bce0: Ethernet address: 00:1a:4b:e9:85:86 bce0: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); F/W (0x01090605); Flags( MFW ) pcib16: at device 28.1 on pci0 pci4: on pcib16 pcib17: at device 0.0 on pci4 pci5: on pcib17 bce1: mem 0xfa000000-0xfbffffff irq 17 at device 0.0 on pci5 miibus1: on bce1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bce1: Ethernet address: 00:1a:4b:e9:85:84 bce1: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); F/W (0x01090605); Flags( MFW ) uhci0: port 0x1000-0x101f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1020-0x103f irq 17 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1040-0x105f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1060-0x107f irq 19 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xf7df0000-0xf7df03ff irq 16 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: waiting for BIOS to give up control usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib18: at device 30.0 on pci0 pci1: on pcib18 pci1: at device 3.0 (no driver attached) pci1: at device 4.0 (no driver attached) pci1: at device 4.2 (no driver attached) uhci4: port 0x3800-0x381f irq 22 at device 4.4 on pci1 uhci4: [GIANT-LOCKED] usb5: on uhci4 usb5: USB revision 1.0 uhub5: (0x103c) UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered pci1: at device 4.6 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x500-0x50f irq 17 at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xc0000-0xcafff,0xe6000-0xe7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd0: HP Virtual Keyboard, rev 1.10/0.02, addr 2, iclass 3/1 kbd2 at ukbd0 ums0: HP Virtual Keyboard, rev 1.10/0.02, addr 2, iclass 3/1 ums0: X report 0x0002 not supported device_attach: ums0 attach returned 6 uhub6: HP Virtual Hub, class 9/0, rev 1.10/0.01, addr 3 uhub6: 7 ports with 7 removable, self powered Timecounters tick every 1.000 msec SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! da0 at ciss0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 135.168MB/s transfers da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C) Trying to mount root from ufs:/dev/da0s1a bce1: link state changed to UP module_register: module cpu/ichss already exists! Module cpu/ichss failed to register: 17 module_register: module pci/ichss_pci already exists! Module pci/ichss_pci failed to register: 17 module_register: module cpu/powernow already exists! Module cpu/powernow failed to register: 17 module_register: module cpu/ichss already exists! Module cpu/ichss failed to register: 17 module_register: module pci/ichss_pci already exists! Module pci/ichss_pci failed to register: 17 module_register: module cpu/powernow already exists! Module cpu/powernow failed to register: 17 Loaded as module: ------------------ host:/root#kldstat Id Refs Address Size Name 1 1 0xffffffff80100000 570440 kernel host:/root#sysctl -a |grep freq kern.acct_chkfreq: 15 debug.cpufreq.lowest: 0 debug.cpufreq.verbose: 0 machdep.acpi_timer_freq: 3579545 machdep.tsc_freq: 1600011450 machdep.i8254_freq: 1193182 host:/root#kldload cpufreq host:/root#kldstat Id Refs Address Size Name 1 2 0xffffffff80100000 570440 kernel 2 1 0xffffffffc5bbe000 5d3f cpufreq.ko host:/root#sysctl -a | grep freq kern.acct_chkfreq: 15 debug.cpufreq.lowest: 0 debug.cpufreq.verbose: 0 machdep.acpi_timer_freq: 3579545 machdep.tsc_freq: 1600011450 machdep.i8254_freq: 1193182 dev.cpu.0.freq: 1601 dev.cpu.0.freq_levels: 1601/-1 1400/-1 1200/-1 1000/-1 800/-1 600/-1 dev.p4tcc.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 dev.p4tcc.1.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 dev.p4tcc.2.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 dev.p4tcc.3.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 dev.cpufreq.1.%driver: cpufreq dev.cpufreq.1.%parent: cpu1 dev.cpufreq.2.%driver: cpufreq dev.cpufreq.2.%parent: cpu2 dev.cpufreq.3.%driver: cpufreq dev.cpufreq.3.%parent: cpu3 host:/root#dmesg Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #4: Tue Jul 3 23:07:11 EEST 2007 user@host:/usr/obj/usr/src/sys/XXXXX ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5310 @ 1.60GHz (1600.01-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6f7 Stepping = 7 Features=0xbfebfbff Features2=0x4e33d,CX16,XTPR,,> AMD Features=0x20000800 AMD Features2=0x1 Cores per package: 4 real memory = 3219488768 (3070 MB) avail memory = 3106349056 (2962 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 2000 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x908-0x90b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci9: on pcib1 pcib2: at device 0.0 on pci9 pci10: on pcib2 pcib3: at device 0.0 on pci10 pci11: on pcib3 pcib4: at device 1.0 on pci10 pci14: on pcib4 pcib5: at device 0.0 on pci14 pci15: on pcib5 pcib6: at device 4.0 on pci15 pci16: on pcib6 ciss0: port 0x4000-0x40ff mem 0xfdf80000-0xfdffffff,0xfdf70000-0xfdf77fff irq 17 at device 8.0 on pci15 ciss0: [GIANT-LOCKED] pcib7: at device 2.0 on pci10 pci17: on pcib7 pcib8: at device 0.3 on pci9 pci18: on pcib8 pcib9: at device 3.0 on pci0 pci6: on pcib9 pcib10: at device 4.0 on pci0 pci19: on pcib10 pcib11: at device 5.0 on pci0 pci22: on pcib11 pcib12: at device 6.0 on pci0 pci23: on pcib12 pcib13: at device 7.0 on pci0 pci26: on pcib13 pcib14: at device 28.0 on pci0 pci2: on pcib14 pcib15: at device 0.0 on pci2 pci3: on pcib15 bce0: mem 0xf8000000-0xf9ffffff irq 16 at device 0.0 on pci3 miibus0: on bce0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bce0: Ethernet address: 00:1a:4b:e9:85:86 bce0: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); F/W (0x01090605); Flags( MFW ) pcib16: at device 28.1 on pci0 pci4: on pcib16 pcib17: at device 0.0 on pci4 pci5: on pcib17 bce1: mem 0xfa000000-0xfbffffff irq 17 at device 0.0 on pci5 miibus1: on bce1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bce1: Ethernet address: 00:1a:4b:e9:85:84 bce1: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); F/W (0x01090605); Flags( MFW ) uhci0: port 0x1000-0x101f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1020-0x103f irq 17 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1040-0x105f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1060-0x107f irq 19 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xf7df0000-0xf7df03ff irq 16 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: waiting for BIOS to give up control usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib18: at device 30.0 on pci0 pci1: on pcib18 pci1: at device 3.0 (no driver attached) pci1: at device 4.0 (no driver attached) pci1: at device 4.2 (no driver attached) uhci4: port 0x3800-0x381f irq 22 at device 4.4 on pci1 uhci4: [GIANT-LOCKED] usb5: on uhci4 usb5: USB revision 1.0 uhub5: (0x103c) UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered pci1: at device 4.6 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x500-0x50f irq 17 at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xc0000-0xcafff,0xe6000-0xe7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd0: HP Virtual Keyboard, rev 1.10/0.02, addr 2, iclass 3/1 kbd2 at ukbd0 ums0: HP Virtual Keyboard, rev 1.10/0.02, addr 2, iclass 3/1 ums0: X report 0x0002 not supported device_attach: ums0 attach returned 6 uhub6: HP Virtual Hub, class 9/0, rev 1.10/0.01, addr 3 uhub6: 7 ports with 7 removable, self powered Timecounters tick every 1.000 msec SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! da0 at ciss0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 135.168MB/s transfers da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C) Trying to mount root from ufs:/dev/da0s1a bce1: link state changed to UP p4tcc0: on cpu0 p4tcc1: on cpu1 p4tcc2: on cpu2 p4tcc3: on cpu3 host:/root# >How-To-Repeat: Compile cpufreq into kernel >Fix: - >Release-Note: >Audit-Trail: From: Andriy Gapon To: bug-followup@freebsd.org, yurtesen@ispro.net Cc: Subject: Re: amd64/114270: [cpufreq] cpufreq doesnt work when compiled in to kernel on amd64 platform Date: Sun, 05 Dec 2010 15:44:12 +0200 Is this still an issue? -- Andriy Gapon From: Evren Yurtesen To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/114270: [cpufreq] cpufreq doesnt work when compiled in to kernel on amd64 platform Date: Mon, 06 Dec 2010 13:31:43 +0200 On 12/5/2010 3:44 PM, Andriy Gapon wrote: > > Is this still an issue? > No, I guess it is not an issue anymore, I have it working on some 7.3 and 8.1 boxes. You can close this PR. State-Changed-From-To: open->closed State-Changed-By: avg State-Changed-When: Mon Dec 6 12:06:35 UTC 2010 State-Changed-Why: The issue has been resolved. http://www.freebsd.org/cgi/query-pr.cgi?pr=114270 >Unformatted: