From owner-freebsd-current@FreeBSD.ORG Wed Sep 1 19:58:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C84A616A4CF for ; Wed, 1 Sep 2004 19:58:59 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08AAF43D48 for ; Wed, 1 Sep 2004 19:58:59 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i81JwoW6026070; Wed, 1 Sep 2004 21:58:50 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <413629D9.6090606@DeepCore.dk> Date: Wed, 01 Sep 2004 21:58:17 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <20040716231556.7D2225D08@ptavv.es.net> <41362174.7030900@root.org> In-Reply-To: <41362174.7030900@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable cc: current@freebsd.org Subject: Re: ATA DVD playback hanging in physrd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 01 Sep 2004 19:58:59 -0000 Nate Lawson wrote: > Kevin Oberman wrote: >=20 >>> Date: Fri, 16 Jul 2004 15:50:03 -0700 >>> From: Nate Lawson >>> Sender: owner-freebsd-current@freebsd.org >> >> >>> While playing back a DVD on my Thinkpad, it hangs at some point (2-5 >>> minutes after beginning playback). The player is hung in "physrd" an= d >>> the drive stops spinning. This hang happens when the drive is in PIO= 4 >>> or DMA mode. >>> >>> However, starting another process (i.e. cat /dev/acd0) spins up the >>> drive and it works (and the other process begins running again). >>> What's interesting is that I can quickly trigger this hang by startin= g >>> IO on a completely different channel (i.e. dd if=3D/dev/ad0 of=3D/dev= /null >>> bs=3D1m). This indicates that it may be a driver issue since the DVD= >>> drive that hangs is on a different channel and irq than the hard >>> drive. >>> >>> Devices: >>> atapci0: port >>> 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on p= ci0 >>> ata0: at 0x1f0 irq 14 on atapci0 >>> ata1: at 0x170 irq 15 on atapci0 >>> [...] >>> ad0: 19077MB [41344/15/63] at ata0-master UDMA100 >>> ata1-master: FAILURE - ATAPI_RESET no interrupt >>> acd0: DVDROM at ata1-master PIO4 >>> >>> The same behavior also happens on my DVD/CDRW drive. >>> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt >>> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt >>> ata1-master: FAILURE - ATAPI_RESET no interrupt >>> acd0: CDRW at ata1-master PIO4 >> >> >> I have been seeing the same thing on my ThinkPad for a couple of >> weeks. It may have been there for longer as I had not heavily used the= >> DVD for a while. There have been similar reports from others, but this= >> is the most exact match to what I have been seeing. Mine is a Toshiba >> DVD/CDRW (DW-28E) at ata1-master UDMA33. >=20 > I don't know if others reported back on this yet, but the problem is=20 > fixed. I believe Soeren's race fix was the key. Yes, this was the race that could get a request lost.. > Thanks! NP! -S=F8ren