From owner-freebsd-bugs Wed Nov 25 06:19:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA08187 for freebsd-bugs-outgoing; Wed, 25 Nov 1998 06:19:24 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA08181 for ; Wed, 25 Nov 1998 06:19:23 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA02403; Wed, 25 Nov 1998 06:20:01 -0800 (PST) Date: Wed, 25 Nov 1998 06:20:01 -0800 (PST) Message-Id: <199811251420.GAA02403@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Michael Hohmuth Subject: Re: i386/8855: can't mount CD in ATAPI drive after eject/reload Reply-To: Michael Hohmuth Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/8855; it has been noted by GNATS. From: Michael Hohmuth To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: i386/8855: can't mount CD in ATAPI drive after eject/reload Date: 25 Nov 1998 15:08:40 +0100 Søren Schmidt writes: > Try this patch see if it helps: > > Index: atapi.c > - /* Wait for DRQ from 50 usec to 3 msec for slow devices */ > - int cnt = ata->intrcmd ? 10000 : ata->slow ? 3000 : 50; > + /* Wait for DRQ from 100 usec to 3 msec for slow devices */ > + int cnt = ata->intrcmd ? 10000 : ata->slow ? 3000 : 100; Søren, thanks for your reply! Unfortunately, your patch doesn't change anything... :-( BTW: I just noticed the debug output I quoted was missing a few lines which appear five seconds after the START_STOP command has been logged: > > [...] > > # cdcontrol -f /dev/cdrom close > > > > atapi0.0: intr ireason=0x3, len=0, status=50, error=0 > > atapi0.0: req w 1e-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 len=0 [...] > > atapi0.0: start > > atapi0.0: send cmd START_STOP 1b-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0 atapi0.0: send cmd PREVENT_ALLOW 1e-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 atapi0.0: intr ireason=0x3, len=0, status=50, error=0 Here, the error code is 0 again, but this doesn't change the output "error=20" for the following "mount" command: > > # mount /cdrom > > cd9660: /dev/cdrom: Input/output error > > > > atapi0.0: req w 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 len=0 > > atapi0.0: start > > atapi0.0: send cmd TEST_UNIT_READY 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 > > atapi0.0: intr ireason=0x3, len=0, status=51, error=20 [ and so on ] Michael -- hohmuth@innocent.com, hohmuth@inf.tu-dresden.de http://home.pages.de/~hohmuth/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message