Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 01:26:11 +0300
From:      pluknet <pluknet@gmail.com>
To:        Alexander Motin <mav@freebsd.org>
Cc:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: Unable to set devclass (devname: (null)
Message-ID:  <a31046fc0903091526m33363223ja667eff83de19ff0@mail.gmail.com>
In-Reply-To: <49B594B5.2060706@FreeBSD.org>
References:  <gp418i$kc8$1@FreeBSD.cs.nctu.edu.tw> <49B58CF6.7070104@FreeBSD.org> <a31046fc0903091504h24626240p3bb46401fedb37a@mail.gmail.com> <49B594B5.2060706@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/3/10 Alexander Motin <mav@freebsd.org>:
> pluknet wrote:
>>
>> 2009/3/10 Alexander Motin <mav@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).
>
> It does not gives much info. Can you try to add dl->driver->name,
> device_get_unit(child) and device_set_devclass() result printing there?
>

That gives:
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
driver bug: Unable to set devclass (devname: (null))
dl->driver->name: atkbdc
device_get_unit(child): -1
device_set_devclass(): 17


-- 
wbr,
pluknet



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