Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: "axp-list@redhat.com" <axp-list@redhat.com>
Subject: ncr53c8xx timeouts
Date: Sun, 15 Aug 1999 02:35:54 -0500	[thread overview]
Message-ID: <37B66DDA.BFE51731@paralleldata.com> (raw)


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


             reply	other threads:[~1999-08-15  7:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-15  7:35 Wes Bauske [this message]
1999-08-15 16:12 ` ncr53c8xx timeouts Michal Jaegermann
1999-08-15 16:18   ` Peter Petrakis
1999-08-15 17:35     ` Wes Bauske
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox