Unable to set devclass (devname: (null)

pluknet pluknet at gmail.com
Mon Mar 9 15:04:47 PDT 2009


2009/3/10 Alexander Motin <mav at freebsd.org>:
> pluknet wrote:
>>
>> Is it ok (and how much harmfull) to see this message?
>>
>> driver bug: Unable to set devclass (devname: (null))
>>
>> P.S.
>> This is introduced in subr_bus.c, v1.216
>> -                                       PDEBUG(("Unable to set device
>> class"));
>> +                                       printf("driver bug: Unable to set
>> devclass (devname: %s)\n",
>> +                                           (child ?
>> device_get_name(child) :
>> +                                               "no device"));
>>
>> where PDEBUG was moved from BUS_DEBUG to general output.
>
> Actually this check was introduced in rev. 1.214, just was not logged.
> Before this change system could crash soon after this message. Now it should
> not, but related device probably will not work properly. It is probably not
> good and should be fixed, but it can be just a low memory symptom. It was
> noticed for ata driver, but I hope it was fixed. Where have you get it?

This is during the boot, see dmesg (attached).

-- 
wbr,
pluknet
-------------- next part --------------
Copyright (c) 1992-2009 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 8.0-CURRENT #5: Mon Mar  9 23:19:36 UTC 2009
    root at c8.h3:/usr/obj/usr/src/sys/C8
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz (907.18-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6fd  Stepping = 13
  Features=0x78bf3ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x9<SSE3,MON>
  TSC: P-state invariant
real memory  = 1073676288 (1023 MB)
avail memory = 1041125376 (992 MB)
ACPI APIC Table: <VBOX   VBOXAPIC>
pnpbios: Bad PnP BIOS data checksum
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe07fffff at device 2.0 on pci0
em0: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0xc010-0xc017 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0
em0: [FILTER]
em0: Ethernet address: 08:00:27:52:58:b9
pci0: <base peripheral> at device 4.0 (no driver attached)
pci0: <multimedia, audio> at device 5.0 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0
ohci0: [ITHREAD]
usbus0: <OHCI (generic) USB controller> on ohci0
pci0: <bridge> at device 7.0 (no driver attached)
ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 0xf0805000-0xf0805fff irq 19 at device 11.0 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0
atapci1: <Intel AHCI controller> port 0xc240-0xc247,0xc250-0xc257,0xc260-0xc26f mem 0xf0806000-0xf0807fff irq 21 at device 13.0 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 1 ports PM not supported
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> 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]
atkbd0: [ITHREAD]
driver bug: Unable to set devclass (devname: (null))
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc8fff,0xe2000-0xe2fff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT Real Time Clock> at port 0x70 irq 8 on isa0
ppc0: parallel port not found.
Timecounter "TSC" frequency 907182267 Hz quality 800
Timecounters tick every 100.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ad0: 10240MB <VBOX HARDDISK 1.0> at ata0-master UDMA33
acd0: DVDROM <VBOX CD-ROM/1.0> at ata1-master UDMA33
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Root mount waiting for: usbus1 usbus0
ugen0.1: <Apple> at usbus0
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Expensive timeout(9) function: 0xc05fa130(0xc3e4d460) 0.010208559 s
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
Root mount waiting for: usbus1 usbus0
uhub0: 8 ports with 8 removable, self powered
Expensive timeout(9) function: 0xc05fa130(0xc3e4d460) 0.040580297 s
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
uhub1: 8 ports with 8 removable, self powered
Trying to mount root from ufs:/dev/ad0s1a


More information about the freebsd-current mailing list