From owner-freebsd-current@FreeBSD.ORG Mon Mar 9 22:38:43 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5881B106564A; Mon, 9 Mar 2009 22:38:43 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id A35928FC15; Mon, 9 Mar 2009 22:38:42 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so747087fgb.35 for ; Mon, 09 Mar 2009 15:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=B86o+alzevPXh8di7JLitL95mBFLq+qV4tnVd9Dv8+g=; b=jdQYM7jqUgHm/9oLKPoyrtLExoJkQFoeCgzCp/C9p8j2BwCApILawEA00HyKcLQv5j /xFdJsfIPCTSYpez4GgDFKIei0b3naJE0VPTWhpp5+itMIPJK5MZ0yhOAZusCYeM6Kki L4xrZOALLIErlhyGSoOMRC+9DbPxEH0l+Tlew= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ck64cLt983pW8Q0gvH1kZuTkYeRBB/i2xDn1JbVSLeCehbL8lWDm95zD08MUWCbjXX mQ2geVKCezAtPmxj4bl7jo6A5ozU+rqimwYUCjBwfOLCl5Q9c2zemELNw9IQkb6Mr+kw 5Lx6LuAcj7K/VMDmol8fmvaELGu2hPt6c4INI= MIME-Version: 1.0 Received: by 10.86.66.19 with SMTP id o19mr3972299fga.60.1236638321599; Mon, 09 Mar 2009 15:38:41 -0700 (PDT) In-Reply-To: References: <49B58CF6.7070104@FreeBSD.org> <49B594B5.2060706@FreeBSD.org> Date: Tue, 10 Mar 2009 01:38:41 +0300 Message-ID: From: pluknet To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current Subject: Re: Unable to set devclass (devname: (null) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 22:38:43 -0000 2009/3/10 pluknet : > 2009/3/10 Alexander Motin : >> pluknet wrote: >>> >>> 2009/3/10 Alexander Motin : >>>> >>>> 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 > Well, yes. That confirms with numerous devclass_alloc_unit() EEXIST hidden messages; atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0065 atkbd: keyboard ID 0x83ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000 ioapic0: routing intpin 1 (ISA IRQ 1) to lapic 0 vector 54 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: unable to allocate IRQ atkbdc: atkbdc-1 already exists; skipping it driver bug: Unable to set devclass (devname: (null)) dl->driver->name: atkbdc device_get_unit(child): -1 atkbdc: atkbdc-1 already exists; skipping it device_set_devclass(): 17 psmcpnp0: port 0x60,0x64 irq 12 on acpi0 psm0: current command byte:0065 psm0: irq 12 on atkbdc0 ioapic0: routing intpin 12 (ISA IRQ 12) to lapic 0 vector 55 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4-00, 5 buttons psm0: config:00000000, flags:00000008, packet size:4 psm0: syncmask:08, syncbits:00 ppc0: using extended I/O port range ppc0: using extended I/O port range pnp_identify: Trying Read_Port at 203 pnp_identify: Trying Read_Port at 243 pnp_identify: Trying Read_Port at 283 pnp_identify: Trying Read_Port at 2c3 pnp_identify: Trying Read_Port at 303 pnp_identify: Trying Read_Port at 343 pnp_identify: Trying Read_Port at 383 pnp_identify: Trying Read_Port at 3c3 PNP Identify complete isa_probe_children: disabling PnP devices pmtimer0 on isa0 ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it atkbdc: atkbdc0 already exists; skipping it sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it [...] -- wbr, pluknet