From owner-freebsd-current@FreeBSD.ORG Thu Sep 24 15:27:58 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 C2B38106566C; Thu, 24 Sep 2009 15:27:58 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE518FC16; Thu, 24 Sep 2009 15:27:57 +0000 (UTC) Received: by yxe14 with SMTP id 14so3185735yxe.7 for ; Thu, 24 Sep 2009 08:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=xOFisJxwStmLSCgEBoB5mPzpCtntFYEoUzFEJ+3hjLY=; b=P6RUXXCNYFNnkQf/IN+15ie0wwsTvTDKmbBZNhQTejikhaIeEqAcwX8md7q/iUWjMM R+Mveu+tnJhOpHzPP8fJL0GVLMEVO/O1E5NGST6t6BqdTZCIhVH2fe88zcb8e4EUpI+E jHoUszsERYV5+uUQc6ainsLhCcfcCxs+b4iR8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=B1XvyMOSrtdvablg+hb4z9eeeZuogg0hIhWcjNA60h2saOHShxDUeY5aWwiSjNQubW Ok1l5LqUTRMg515blVP40tqggMiMGpQjLcjUImf8YXDtdgeteXplyn7xtgbR1nLxXnKF +yUhQqXSOxD2CDNl9NxoHMQpCGmWGZO1VdEEU= Received: by 10.90.198.4 with SMTP id v4mr56551agf.79.1253806077216; Thu, 24 Sep 2009 08:27:57 -0700 (PDT) Received: from ?192.168.1.100? ([190.177.214.159]) by mx.google.com with ESMTPS id 4sm37505aga.69.2009.09.24.08.27.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Sep 2009 08:27:56 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-current@freebsd.org Date: Thu, 24 Sep 2009 12:27:53 -0300 User-Agent: KMail/1.9.10 References: <20090923055647.GA2183@a91-153-125-115.elisa-laajakaista.fi> <20090924060805.GA2057@a91-153-125-115.elisa-laajakaista.fi> <4ABB3DA6.5090004@FreeBSD.org> In-Reply-To: <4ABB3DA6.5090004@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909241227.53719.gnemmi@gmail.com> Cc: Peter Holm , Alexander Motin , scottl@freebsd.org, Andriy Gapon , Jaakko Heinonen , Thomas Quinot , Kostik Belousov Subject: Re: Fwd: core dump on kldload atapicam 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: Thu, 24 Sep 2009 15:27:58 -0000 On Thursday 24 September 2009 6:36:38 am Alexander Motin wrote: > Jaakko Heinonen wrote: > > On 2009-09-23, Alexander Motin wrote: > >> Then please explain me how it happens. I don't think that > >> explanation "it just works" sufficient. > >> > >> Any ideas what needed to reproduce that? Because it looks like not > >> going to fall in my case: > > > > It happens if a parent ata device is not attached. I can reproduce > > the problem on system which hash ata0, ata2 and ata3 devices but > > ata1 fails to probe. > > Nice catch. I think it is newbus problem, not ata. I am able to > simulate this problem locally and attached patch fixes it. Any > objections? After a lot of going back and forth and trying Jaakko's patch, I did a clean -RC1 install today, applied your patch, make kernel, reboot and it works. Here's the output: [gonzalo@inferna ~]% ssh root@192.168.1.15 Password: Last login: Thu Sep 24 12:19:54 2009 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 8.0-RC1 (GENERIC) #0: Thu Sep 24 12:06:44 ART 2009 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. gargoyle# kldload atapicam gargoyle# tail -15 /var/log/messages Sep 24 12:19:46 gargoyle kernel: uhub6: 6 ports with 6 removable, self powered Sep 24 12:19:46 gargoyle kernel: Trying to mount root from ufs:/dev/ad4s4a Sep 24 12:19:47 gargoyle kernel: bge0: link state changed to UP Sep 24 12:19:54 gargoyle login: ROOT LOGIN (root) ON ttyv0 Sep 24 12:20:35 gargoyle kernel: acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): CAM Status: SCSI Status Error Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): SCSI Status: Check Condition Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): NOT READY asc:3a,0 Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): Medium not present Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): Unretryable error Sep 24 12:20:35 gargoyle kernel: cd0 at ata0 bus 0 target 0 lun 0 Sep 24 12:20:35 gargoyle kernel: cd0: Removable CD-ROM SCSI-0 device Sep 24 12:20:35 gargoyle kernel: cd0: 33.000MB/s transfers Sep 24 12:20:35 gargoyle kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present gargoyle# camcontrol devlist at scbus1 target 0 lun 0 (pass0,cd0) gargoyle# If you'd like me to test something in particular, just tell me what and how and I'll do it right away. Your patch solved my problem. Thanks _a_lot_ !! Best Regards Gonzalo -- Blessings Gonzalo Nemmi