From owner-freebsd-stable@FreeBSD.ORG Sun Jan 24 16:49:15 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F37CB1065672; Sun, 24 Jan 2010 16:49:14 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f226.google.com (mail-fx0-f226.google.com [209.85.220.226]) by mx1.freebsd.org (Postfix) with ESMTP id 07B988FC17; Sun, 24 Jan 2010 16:49:13 +0000 (UTC) Received: by fxm26 with SMTP id 26so334084fxm.13 for ; Sun, 24 Jan 2010 08:49:13 -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:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=CO/wPqQnCfpx5JrmnoT+31Rwv8hdZ1euih4gMI6S+WU=; b=lXrW9uQHEPTDEltBSwRoqmEFfg/WcsiZXFOY1RMYU1P5cUdXTC3BUpMcggTrHhuvFh LiJ84/Vzb+NUiFGFH9UTn2bVfee64J+gcjBVzGtZ5eT4fMIfA92xNYe5csB8hoQ0oOcC Svac1k9LqY8zzKXcULo5jAkc+SmYQNWb0W9o0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=nebP95A5xsak88y9d99hJyl5iiFmXb/IPMofub/E4lthItXXW93dpKjgCl0ZM1Xqwl /qHsB3woKwYxFc4i1VJ9qvJkWUSWCk9WjC1veT/HJjGFBLozw/AsVEbJ5cx0s42Mnm/q S+Bi4f4dXFbHwg1iihR0xmSM66MxwnW2P+XBE= Received: by 10.223.59.3 with SMTP id j3mr98510fah.46.1264351752927; Sun, 24 Jan 2010 08:49:12 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm2297269fxm.2.2010.01.24.08.49.11 (version=SSLv3 cipher=RC4-MD5); Sun, 24 Jan 2010 08:49:11 -0800 (PST) Sender: Alexander Motin Message-ID: <4B5C79CF.9070504@FreeBSD.org> Date: Sun, 24 Jan 2010 18:48:15 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: gary.jennejohn@freenet.de References: <4B55D9D4.1000008@FreeBSD.org> <201001231407.o0NE7l8j002620@triton8.kn-bremen.de> <20100123184619.257203d9@ernst.jennejohn.org> In-Reply-To: <20100123184619.257203d9@ernst.jennejohn.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current , FreeBSD Stable , Juergen Lock Subject: Re: Pack of CAM improvements X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 16:49:15 -0000 Gary Jennejohn wrote: > I started seeing a problem a few days ago with one of my DVD drives (a > burner at cd0) under 9-current, which makes it impossible to use it even > to simply read a DVD. > > Here the (rather strange IMO) output in dmesg: > > cd0: Removable CD-ROM SCSI-0 device > cd0: 66.700MB/s transfers (UDMA4, PIO size 65534bytes) > cd0: Attempt to query device size failed: UNIT ATTENTION, Power on, reset, > or bus device reset occurred > cd1 at ata0 bus 0 scbus6 target 1 lun 0 > cd1: Removable CD-ROM SCSI-0 device > cd1: 33.300MB/s transfers (UDMA2, PIO size 65534bytes) > cd1: Attempt to query device size failed: NOT READY, Medium not present - > tray closed > > I haven't the foggiest why cd0 behaves diffrently from cd1, which is a > vanilla DVD drive and just works. I am not sure yet what triggered these changes. May be just some timing issue. That UNIT ATTENTION seems reasonable, as reset indeed just happened there. The real problem is that CAM had several limitations in SCSI status handling, when working with ATAPI or USB devices. It made request processing stop in some cases, where retries would be expected. New patch version should handle this and some other problems: http://people.freebsd.org/~mav/cam-ata.20100124.patch Try it please. Thanks. -- Alexander Motin