From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21034 invoked from network); 15 Aug 1999 07:37:31 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 15 Aug 1999 07:37:31 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA02382 for ; Sun, 15 Aug 1999 03:37:30 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Sun, 15 Aug 1999 02:42:14 -0500 Received: by paralleldata.com from paralleldata.com (207.136.50.150::mail daemon; unverified,SLMail V2.5); Sun, 15 Aug 1999 02:42:12 -0500 Sender: "Wsb" Message-ID: <37B66DDA.BFE51731@paralleldata.com> Date: Sun, 15 Aug 1999 02:35:54 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: ncr53c8xx timeouts Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit As I've been testing SCSI cards, I got tired of those timeout messages from the ncr53c8xx driver. If you get the following types of messages at boot: ncr53c895-0: command processing resumed ncr53c895-0-<0,*>: WIDE SCSI (16 bit) enabled. ncr53c895-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15) scsi : aborting command due to timeout : pid 17, scsi1, channel 0, id 0, lun 0 Test Unit Ready 00 00 00 00 00 ncr53c8xx_abort: pid=17 serial_number=18 serial_number_at_timeout=18 ncr53c895-0: abort ccb=fffffc0017fd9440 (cancel) SCSI host 1 abort (pid 17) timed out - resetting SCSI bus is being reset for host 1 channel 0. ncr53c8xx_reset: pid=17 reset_flags=2 serial_number=18 serial_number_at_timeout=18 ncr53c895-0: resetting, command processing suspended for 2 seconds ncr53c895-0: restart (scsi reset). ncr53c895-0: Downloading SCSI SCRIPTS. ncr53c895-0: command processing resumed ncr53c895-0-<0,*>: WIDE SCSI (16 bit) enabled. ncr53c895-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15) SCSI host 1 abort (pid 17) timed out - resetting SCSI bus is being reset for host 1 channel 0. ncr53c8xx_reset: pid=17 reset_flags=2 serial_number=19 serial_number_at_timeout=19 ncr53c895-0: resetting, command processing suspended for 2 seconds etc.... Then do the following to ncr53c8xx.c in routine: static unsigned ncrgetfreq (ncb_p np, int gen) Multiply ms after it's calculated by 2. For some reason, the newer ncr53c8xx.c is computing the wrong MHZ for my scsi cards. This has happened on 875/875J/895 so it isn't isolated to a single type of card. My code segment: while (!(INW(nc_sist) & GEN) && ms++ < 100000) UDELAY (1000); /* count ms */ OUTB (nc_stime1, 0); /* disable general purpose timer */ /* * set prescaler to divide by whatever 0 means * 0 ought to choose divide by 2, but appears * to set divide by 3.5 mode in my 53c810 ... */ OUTB (nc_scntl3, 0); /* wsb */ ms=ms*2; if (bootverbose >= 2) printk ("%s: Delay (GEN=%d): %u msec\n", ncr_name(np), gen, ms); This may be specific to my XP1000/21264, but I recall others saying they saw the same problem so if you want it to quit resetting over and over, try this. The sym53c8xx.c code has the same problem. Wes