From owner-svn-src-all@FreeBSD.ORG Thu Jun 23 17:21:49 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C676106566C; Thu, 23 Jun 2011 17:21:49 +0000 (UTC) (envelope-from ache@vniz.net) Received: from vniz.net (vniz.net [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 9FAE38FC08; Thu, 23 Jun 2011 17:21:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vniz.net (8.14.4/8.14.4) with ESMTP id p5NHLlbE048183; Thu, 23 Jun 2011 21:21:47 +0400 (MSD) (envelope-from ache@vniz.net) Received: (from ache@localhost) by localhost (8.14.5/8.14.5/Submit) id p5NHLkYI048182; Thu, 23 Jun 2011 21:21:46 +0400 (MSD) (envelope-from ache) Date: Thu, 23 Jun 2011 21:21:46 +0400 From: Andrey Chernov To: Alexander Motin , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20110623172146.GA48158@vniz.net> Mail-Followup-To: Andrey Chernov , Alexander Motin , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <201106231510.p5NFAixO004455@svn.freebsd.org> <20110623160010.GA47278@vniz.net> <20110623162458.GA47670@vniz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110623162458.GA47670@vniz.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: svn commit: r223475 - head/sys/cam/ata X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 17:21:49 -0000 Here is old cd0 probe message with old kernel when it was probed, just in case it helps (nothing unusual with it, and it still works under Win7): cd0 at ata2 bus 0 scbus2 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 100.000MB/s transfers (UDMA5, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed On Thu, Jun 23, 2011 at 08:24:58PM +0400, Andrey Chernov wrote: > On Thu, Jun 23, 2011 at 08:00:10PM +0400, Andrey Chernov wrote: > > On Thu, Jun 23, 2011 at 03:10:44PM +0000, Alexander Motin wrote: > > > Author: mav > > > Date: Thu Jun 23 15:10:44 2011 > > > New Revision: 223475 > > > URL: http://svn.freebsd.org/changeset/base/223475 > > > > > > Log: > > > Fix ATAPI breakage introduced by r223443. It made SCSI commands to ATAPI > > > device to never complete, that caused probe process (system boot) stuck. > > > > With that commit I have no more those "run_interrupt_driven_hooks:..." > > messages, but still have hang at boot related to DVD (no hang if DVDs are > > physically unplugged). Moreover, I have only 1 of 2 plain ATA DVDs > > detected in probe messages as cd1 (no cd0 there). DDB's ps show sleep in > > the xpt_thrd (xpt_scanner_thread) at "ccb_scan" and sleep at "caplck", no > > locks are shown by 'show lock'. > > More about "caplck": it was cdopen() who calls cam_periph_hold() and > sleeps there forever. > > -- > http://ache.vniz.net/ -- http://ache.vniz.net/