Date: Tue, 16 Sep 2003 17:02:19 +0200 From: Thomas Quinot <thomas@cuivre.fr.eu.org> To: deischen@freebsd.org Cc: current@freebsd.org Subject: Re: scsi_cd or atapicam crash in current. Message-ID: <20030916150218.GB62176@melusine.cuivre.fr.eu.org> In-Reply-To: <Pine.GSO.4.10.10309161044002.10005-100000@pcnet5.pcnet.com> References: <20030916121916.GB47779@melusine.cuivre.fr.eu.org> <Pine.GSO.4.10.10309161044002.10005-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Le 2003-09-16, Daniel Eischen écrivait :
> I get this even without atapicam in the kernel. Is trying
> CAMDEBUG and CAM_DEBUG_CDB going to show anything interesting?
No, indeed, probably not. Can you try the following patch:
Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.11
diff -u -r1.11 ata-lowlevel.c
--- ata-lowlevel.c 10 Sep 2003 09:57:16 -0000 1.11
+++ ata-lowlevel.c 16 Sep 2003 15:00:13 -0000
@@ -374,6 +374,11 @@
/* ATAPI PIO commands */
case ATA_R_ATAPI:
+ if (request->status & (ATA_S_ERROR | ATA_S_DWF)) {
+ request->error = ATA_IDX_INB(ch, ATA_ERROR);
+ break;
+ }
+
length = ATA_IDX_INB(ch, ATA_CYL_LSB)|(ATA_IDX_INB(ch, ATA_CYL_MSB)<<8);
switch ((ATA_IDX_INB(ch, ATA_IREASON) & (ATA_I_CMD | ATA_I_IN)) |
@@ -446,8 +451,6 @@
case ATAPI_P_ABORT:
case ATAPI_P_DONE:
- if (request->status & (ATA_S_ERROR | ATA_S_DWF))
- request->error = ATA_IDX_INB(ch, ATA_ERROR);
break;
default:
--
Thomas.Quinot@Cuivre.FR.EU.ORG
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/ZyX5AE1UuDk9JGkRAkxcAJ45smameys9W4gkXAY7ePz6H5gUewCfTE5C
UUyUTWQ0aDfsoRyaPJsY8fk=
=qD8I
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030916150218.GB62176>
