Date: Wed, 25 Nov 1998 06:20:01 -0800 (PST) From: Michael Hohmuth <hohmuth@inf.tu-dresden.de> To: freebsd-bugs@FreeBSD.ORG Subject: Re: i386/8855: can't mount CD in ATAPI drive after eject/reload Message-ID: <199811251420.GAA02403@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/8855; it has been noted by GNATS. From: Michael Hohmuth <hohmuth@inf.tu-dresden.de> To: =?ISO-8859-1?Q?S=F8ren?= Schmidt <sos@freebsd.dk> 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 <sos@freebsd.dk> 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<ready,opdone>, 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<ready,opdone>, 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<ready,opdone,check>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811251420.GAA02403>