Re: CDROM / UDMA problem on -current (2 hours old)

From: Thomas Quinot <thomas_at_FreeBSD.ORG>
Date: Mon, 6 Oct 2003 00:57:10 +0200
Le 2003-10-04, Jan Stocker écrivait :

> are printed so fast i cant really read .... but it must be something
> like that:
> acd1: WARNING - REQUEST_UDMA .... (error request)
> acd1: WARNING - INQUIRE_SENSE .... (retrying request)

Little can be said without complete and accurate error messages,
preferrably including a complete kernel backtrace, but still it would be
interesting to know whether the enclosed patch changes anything to your
situation.

Thomas.

Index: ata-queue.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-queue.c,v
retrieving revision 1.6
diff -u -r1.6 ata-queue.c
--- ata-queue.c	19 Sep 2003 12:46:12 -0000	1.6
+++ ata-queue.c	5 Oct 2003 22:56:28 -0000
_at__at_ -223,7 +223,7 _at__at_
 
     /* if this is a UDMA CRC error, retry request */
     if (request->flags & ATA_R_DMA && request->error & ATA_E_ICRC) {
-	if (request->retries--) {
+	if (request->retries-- > 0) {
 	    ata_prtdev(request->device,
 		       "WARNING - %s UDMA ICRC error (retrying request)\n",
 		       ata_cmd2str(request));
 
-- 
    Thomas.Quinot_at_Cuivre.FR.EU.ORG
Received on Sun Oct 05 2003 - 13:57:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC