From owner-freebsd-current@FreeBSD.ORG Tue Oct 21 13:04:11 2008 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 849401065682 for ; Tue, 21 Oct 2008 13:04:11 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF7E8FC4E for ; Tue, 21 Oct 2008 13:04:11 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so765343qwb.7 for ; Tue, 21 Oct 2008 06:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=aUvSpGR5F3mgIYJMYoomCKIdAZ0sKxpCthR8oED29CI=; b=WMq81V/4a19FZbORNqy9anQzgt9+zDqqtBL5052pDchj/vuqq8sJQAQsH7J82FkJBj 190GjNMywZqB6Ldbcscs3qR36di6cb0MXXtaVh+IjL6j6EF00x0j9v+rvZedWzUtY/0V Kkm4ErBpuPESlMuYU5HK1YZL1+xEYPhELkFYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MdfFGop7NfZYAegzquLk7YDkZD4nUlG6BDqpBOPOb1PZNq4Y/XDfL4Qxajj7WTd5cs EtAVzRAguyTBv+uX3fjFFImi8H1dMMrbp7SnrZsCmlOTY+avRDnYcbH+Ej8Fpi610g8o q8MNLUs4i5fKUcwCb8IGqia5DTtt+rWcr35bI= Received: by 10.215.38.3 with SMTP id q3mr13095333qaj.34.1224594250282; Tue, 21 Oct 2008 06:04:10 -0700 (PDT) Received: by 10.215.101.5 with HTTP; Tue, 21 Oct 2008 06:04:09 -0700 (PDT) Message-ID: <47d0403c0810210604me000a11h1d2dc3cfc1da1f3b@mail.gmail.com> Date: Tue, 21 Oct 2008 09:04:09 -0400 From: "Ben Kaduk" To: "Thomas Quinot" In-Reply-To: <20081021071716.GA50364@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47d0403c0810111730p41bb17feva35729f31d0d2f44@mail.gmail.com> <20081020165449.GB10340@melamine.cuivre.fr.eu.org> <47d0403c0810202228s18b21c35ybd073ccfb6548a87@mail.gmail.com> <20081021071716.GA50364@melamine.cuivre.fr.eu.org> Cc: FreeBSD Current Subject: Re: delayed panic loading atapicam (after failed burncd) 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, 21 Oct 2008 13:04:11 -0000 On Tue, Oct 21, 2008 at 3:17 AM, Thomas Quinot wrote: > * Ben Kaduk, 2008-10-21 : > >> # kldload atapicam >> acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 >> cd0 at ata1 bus 0 target 0 lun 0 >> cd0: Removable CD-ROM SCSI-0 device >> cd0: 3.3000MB/s transfers >> cd0: Attempt to query device size failed: NOT READY, Medium not present > > Looks good. After that point device cd0 does exist, right? yes, /dev/cd0 exists here > >> warm boot (no acd0 found): >> # kldload atapicam >> [nothing] > > If there's no acd0 that indicates that the ATA layer does not see the > drive so it's not completely unepected that ATAPI/CAM, which sits on top > of ATA, doesn't see it either. Quite so. > >> cold boot: >> >> # kldload atapicam >> acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 >> cd0: at ata1 bus 0 target 0 lun 0 >> cd0: Removable CD-ROM SCSI-0 device >> cd0: 3.300MB/s transfers >> cd0: cd present [3778x2048 byte records] >> acd0: FAILURE - READ_BIG ILLIGAL REQUEST asc=0x64 ascq=0x00 >> (cd0:ata1:0:0:0): READ(10). CDB: 28 0 0 0 e c1 0 0 1 0 >> (cd0:ata1:0:0:0): CAM Status: SCSI Status Error >> (cd0:ata1:0:0:0): SCSI Status: Check Condition >> (cd0:ata1:0:0:0): ILLEGAL REQUEST asc:64,0 >> (cd0:ata1:0:0:0): Illegal mode for this track >> (cd0:ata1:0:0:0): Unretryable error >> (cd0:ata1:0:0:0): cddone got error 0x6 back >> [no panic] > > Does cd0 exist at this point? Yes. > >> warm boot: >> # kldload atapicam >> [nothing happens] > > Same as above. > > For the case of the unit disappearing at warm reboot, it would be > interesting to have a complete transcript of a verbose boot (boot -v). I took this a few weeks ago, basically when I first got the machine, but it appears to display the behavior in question: http://stuff.mit.edu/afs/sipb.mit.edu/user/kaduk/freebsd/prolix/dmesg.verbose -Ben Kaduk > To avoid copying everything by hand, you can hook a serial console to > your machine and log the messages on a second machine. > >> I don't have the media that was causing the panic here at home; I'll >> try to test that tomorrow and see if the panic >> is gone with the new snapshot. > > OK, thanks, let me know. > > Thomas. > >