Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2006 21:18:26 -0300
From:      Marcus Alves Grando <mnag@FreeBSD.org>
To:        Nate Lawson <njl@FreeBSD.org>, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   sysctl: dev.cpu.0.freq: Device busy (cpufreq p4tcc / RELENG_6)
Message-ID:  <4404E852.80908@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080308030401040307080502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I have problems in cpufreq in RELENG_6 (today).

I try to set another frequency in my laptop and get this error:

# sysctl dev.cpu.0.freq=250
dev.cpu.0.freq: 2000
sysctl: dev.cpu.0.freq: Device busy

Some information below...

# sysctl -a | grep freq
...
debug.cpufreq.lowest: 0
debug.cpufreq.verbose: 8
machdep.acpi_timer_freq: 3579545
machdep.tsc_freq: 1995011972
machdep.i8254_freq: 1193182
dev.cpu.0.freq: 2000
dev.cpu.0.freq_levels: 2000/22000 1750/19250 1500/16500 1250/13750 
1000/11000 750/8250 500/5500 250/2750
dev.acpi_perf.0.freq_settings: 2000/22000
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.p4tcc.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 
3750/-1 2500/-1 1250/-1

I set debug.cpufreq.verbose=8 and get some messages, dmesg attached. 
pciconf are attached too.

Another problem are in kldunload and cpufreq. Does not work. Message below.

# kldstat
Id Refs Address    Size     Name
  1    2 0xc0400000 4b9a28   kernel
  2    1 0xc2c49000 8000     cpufreq.ko
# kldunload -v cpufreq
Unloading cpufreq.ko, id=2
kldunload: can't unload file: Device not configured

Thanks

-- 
Marcus Alves Grando
marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
   mnag(at)FreeBSD.org         |  FreeBSD.org

--------------080308030401040307080502
Content-Type: text/plain;
 name="dmesg.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg.txt"

Copyright (c) 1992-2006 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 6.1-PRERELEASE #15: Tue Feb 28 20:55:50 BRT 2006
    root@notemg.grupos.com.br:/usr/obj/usr/src/sys/NOTEMG
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Mobile Intel(R) Celeron(R) CPU 2.00GHz (1995.01-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4400<CNTX-ID,<b14>>
real memory  = 250871808 (239 MB)
avail memory = 235220992 (224 MB)
kbd1 at kbdmux0
netsmb_dev: loaded
acpi0: <TOSHIB 750> on motherboard
acpi0: Power Button (fixed)
can't fetch resources for \\_SB_.PCI0.FNC0.PRT_ - AE_BAD_DATA
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xd808-0xd80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_perf0: <ACPI CPU Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral> at device 0.1 (no driver attached)
pci0: <base peripheral> at device 0.3 (no driver attached)
agp0: <Intel 8285xM (85xGM GMCH) SVGA controller> port 0xeff8-0xefff mem 0xd8000000-0xdfffffff,0xd0000000-0xd007ffff irq 10 at device 2.0 on pci0
agp0: detected 16252k stolen memory
agp0: aperture size is 128M
pci0: <display> at device 2.1 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xcfe0-0xcfff irq 10 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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
ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xcffffc00-0xcfffffff irq 11 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: wrong number of companions (3 != 1)
usb1: companion controller, 2 ports each: usb0
usb1: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 6 ports with 6 removable, self powered
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
fxp0: <Intel 82801DB (ICH4) Pro/100 VE Ethernet> port 0xcf40-0xcf7f mem 0xcfeff000-0xcfefffff irq 11 at device 8.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:08:0d:3f:79:62
cbb0: <ToPIC100 PCI-CardBus Bridge> at device 11.0 on pci1
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf irq 11 at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pcm0: <Intel ICH4 (82801DB)> port 0xbe00-0xbeff,0xbdc0-0xbdff mem 0xcfdffe00-0xcfdfffff,0xcfdffd00-0xcfdffdff irq 11 at device 31.5 on pci0
pcm0: <Analog Devices AD1981B AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_lid0: <Control Method Lid Switch> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_toshiba0: <Toshiba HCI Extras> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model GlidePoint, device ID 0
ppc0: parallel port not found.
ppc0: parallel port not found.
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xe0000-0xeffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1995011972 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 28615MB <TOSHIBA MK3021GAS GA124A> at ata0-master UDMA100
acd0: CDRW <TOSHIBA DVD-ROM SD-R2412/1330> at ata1-master UDMA33
Trying to mount root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TOSHIBA DVD-ROM SD-R2412 1330> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cpufreq: get returning known freq 2000
cpufreq: get returning known freq 2000
cpufreq: get returning known freq 2000
cpufreq: adding abs setting 2000 at head
cpufreq: adding 8 relative settings
cpufreq: expand set added rel setting 100% to 2000 level
cpufreq: dup set considering derived setting 1750
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 1750 after 2000
cpufreq: expand set added rel setting 87% to 1750 level
cpufreq: dup set considering derived setting 1500
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 1500 after 1750
cpufreq: expand set added rel setting 75% to 1500 level
cpufreq: dup set considering derived setting 1250
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 1250 after 1500
cpufreq: expand set added rel setting 62% to 1250 level
cpufreq: dup set considering derived setting 1000
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 1000 after 1250
cpufreq: expand set added rel setting 50% to 1000 level
cpufreq: dup set considering derived setting 750
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 750 after 1000
cpufreq: expand set added rel setting 37% to 750 level
cpufreq: dup set considering derived setting 500
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 500 after 750
cpufreq: expand set added rel setting 25% to 500 level
cpufreq: dup set considering derived setting 250
cpufreq: removed last relative driver: p4tcc0
cpufreq: dup done, inserting new level 250 after 500
cpufreq: expand set added rel setting 12% to 250 level

--------------080308030401040307080502
Content-Type: text/plain;
 name="pciconf.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="pciconf.txt"

hostb0@pci0:0:0:	class=0x060000 card=0x00011179 chip=0x35808086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82852GM/GME/GMV/PM, 855GM/GME Montara Host-Hub Interface Bridge'
    class    = bridge
    subclass = HOST-PCI
none0@pci0:0:1:	class=0x088000 card=0x00011179 chip=0x35848086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82852GM/GME/GMV/PM, 855GM/GME Montara System Memory Controller'
    class    = base peripheral
none1@pci0:0:3:	class=0x088000 card=0x00011179 chip=0x35858086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82852GM/GME/GMV/PM, 855GM/GME Montara Configuration Process'
    class    = base peripheral
agp0@pci0:2:0:	class=0x030000 card=0x00021179 chip=0x35828086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82852GM/GME/GMV/PM, 855GM/GME Montara Integrated Graphics Device'
    class    = display
    subclass = VGA
none2@pci0:2:1:	class=0x038000 card=0x00021179 chip=0x35828086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82852GM/GME/GMV/PM, 855GM/GME Montara Integrated Graphics Device'
    class    = display
uhci0@pci0:29:0:	class=0x0c0300 card=0x00011179 chip=0x24c28086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller'
    class    = serial bus
    subclass = USB
ehci0@pci0:29:7:	class=0x0c0320 card=0x00011179 chip=0x24cd8086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller'
    class    = serial bus
    subclass = USB
pcib1@pci0:30:0:	class=0x060400 card=0x00000000 chip=0x24488086 rev=0x83 hdr=0x01
    vendor   = 'Intel Corporation'
    device   = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
    class    = bridge
    subclass = PCI-PCI
isab0@pci0:31:0:	class=0x060100 card=0x00000000 chip=0x24cc8086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DBM (ICH4-M) LPC Interface Bridge'
    class    = bridge
    subclass = PCI-ISA
atapci0@pci0:31:1:	class=0x01018a card=0x00011179 chip=0x24ca8086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DBM (ICH4-M) UltraATA/100 EIDE Controller'
    class    = mass storage
    subclass = ATA
pcm0@pci0:31:5:	class=0x040100 card=0x02411179 chip=0x24c58086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller'
    class    = multimedia
    subclass = audio
none3@pci0:31:6:	class=0x070300 card=0x00011179 chip=0x24c68086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller'
    class    = simple comms
    subclass = generic modem
fxp0@pci1:8:0:	class=0x020000 card=0x00011179 chip=0x103d8086 rev=0x83 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82801DB (ICH4) PRO/100 VE Network Connection'
    class    = network
    subclass = ethernet
cbb0@pci1:11:0:	class=0x060700 card=0x00011179 chip=0x06171179 rev=0x33 hdr=0x02
    vendor   = 'Toshiba America Information Systems'
    device   = 'ToPIC100 PCI to CardBus Bridge with ZV support'
    class    = bridge
    subclass = PCI-CardBus

--------------080308030401040307080502--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4404E852.80908>