From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 17:04:11 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9CC9106564A; Tue, 9 Nov 2010 17:04:11 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 145638FC1E; Tue, 9 Nov 2010 17:04:10 +0000 (UTC) Received: by bwz2 with SMTP id 2so276774bwz.13 for ; Tue, 09 Nov 2010 09:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=jdvz9OP1uWYEbRswMdWUHQhZg3yqQ5SNHO4fZxgNHWA=; b=RtAaehBsrxFRdXzji0SB1799uoECqDy/m0aTY6578r90jGuLxbLVaDagRacJqvxvyS nDZonLNe52MBEbJ+E+i/k+HGEy5eu+v+YI974enOlZnQr9BpywhOVxa4hrJ1MtYpF+CP IKpVd9cThPwIxyT9Hn03vVKj9D8rmpGCSQmnM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=wXYJrMN/Hy5ZdUxi13ke7Kn3hN6XTHoQidqp4SYuPenqbi/w6WCQo0mSpnYih3kueY Sca5CtZdRGkfNdBX5yZhiOT1W61l6TVJZoqJWb7z0mWtcQ6ddeF75ny9InsX1ciuo+4n V+5LodHUSSLrwtzDW1uNrCP+ih+GDIAvtLNn8= Received: by 10.204.122.8 with SMTP id j8mr6675096bkr.135.1289322249791; Tue, 09 Nov 2010 09:04:09 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id d27sm1191655bkw.2.2010.11.09.09.04.07 (version=SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 09:04:08 -0800 (PST) Sender: Alexander Motin Message-ID: <4CD97F04.6010009@FreeBSD.org> Date: Tue, 09 Nov 2010 19:04:04 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Andriy Gapon , current References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ATA: driver bug: Unable to set devclass 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: Tue, 09 Nov 2010 17:04:11 -0000 Andriy Gapon wrote: > Since one of the recent updates (not sure which revision though) I started to get > "Unable to set devclass" messages in boot dmesg. I'd say that I see the message > every other boot, i.e. not always. > > I added some more debug code there and here's a tack trace: > > driver bug: Unable to set devclass (child = 0xffffff00070d0100, devname: (null)) > #0 0xffffffff803ae127 at device_probe_child+0x127 > #1 0xffffffff803ae40c at device_probe+0x7c > #2 0xffffffff803ae4a1 at device_probe_and_attach+0x11 > #3 0xffffffff803ae56a at bus_generic_attach+0x1a > #4 0xffffffff801df93c at ata_identify+0x2ec > #5 0xffffffff801dfcdb at ata_boot_attach+0x6b > #6 0xffffffff803a8577 at run_interrupt_driven_config_hooks+0xf7 > #7 0xffffffff803a8993 at boot_run_interrupt_driven_config_hooks+0x23 > #8 0xffffffff8032f227 at mi_startup+0xc7 > #9 0xffffffff801719cc at btext+0x2c > >>From kgdb: > (kgdb) p *(device_t)0xffffff00070d0100 > $1 = {ops = 0xffffff0001b07000, link = {tqe_next = 0xffffff0001a65100, tqe_prev = > 0xffffff0006eb0130}, devlink = {tqe_next = 0xffffff0001a65100, tqe_prev = > 0xffffff000706e318}, > parent = 0xffffff0006eb0100, children = {tqh_first = 0xffffff0001a5b200, > tqh_last = 0xffffff0001a5b208}, driver = 0xffffffff8079bc80, devclass = > 0xffffff0001add080, unit = 0, > nameunit = 0xffffff00070931a0 "ad0", desc = 0xffffff000711e7c0 > "ST3320620A/3.AAF", busy = 0, state = DS_ATTACHED, devflags = 0, flags = 89, order > = 0, ivars = 0xffffff000711e5e0, > softc = 0xffffff000706a400, sysctl_ctx = {tqh_first = 0xffffff000711e600, > tqh_last = 0xffffff000711e708}, sysctl_tree = 0xffffff00070f9500} > > Apparently sometimes something happens too soon? :-) What controller is there? Any other differences/interesting things in verbose dmesg? Any new "CONNECT requested" messages or anything else? -- Alexander Motin