Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ncr53c8xx timeouts
@ 1999-08-15  7:35 Wes Bauske
  1999-08-15 16:12 ` Michal Jaegermann
  0 siblings, 1 reply; 4+ messages in thread
From: Wes Bauske @ 1999-08-15  7:35 UTC (permalink / raw)
  To: axp-list@redhat.com


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ncr53c8xx timeouts
  1999-08-15  7:35 ncr53c8xx timeouts Wes Bauske
@ 1999-08-15 16:12 ` Michal Jaegermann
  1999-08-15 16:18   ` Peter Petrakis
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Jaegermann @ 1999-08-15 16:12 UTC (permalink / raw)
  To: axp-list

Wes Bauske wrote:
> 
> Multiply ms after it's calculated by 2. For some
> reason, the newer ncr53c8xx.c is computing the
> wrong MHZ for my scsi cards.

I have seen something, so far only on dp264, which **may** be related to
that.  On various occasions with **the same** version of a driver, on
the same machine and without touching anything in a controller itself I
see reports "NCR clock is xKHz" (this is from ncr_getclock() in
sym53c8xx.c) where x is either 21626, or 40037 or 80074.  The third case
is followed by "PCI clock seems too high" and no disks.  It does not
appear to matter which of the other two values was chosen - things
are ok in both cases.

> This has happened on
> 875/875J/895 so it isn't isolated to a single type
> of card.

What I see seems to be related how a kernel was built (configuration and
maybe a compiler itself) but I still cannot point to a culprit with any
conviction.  I start to suspect some timing issues in reading an
information from a hardware/firmware.  Maybe some delays are not not
long enough for ev6?  Messing with a disk controller without knowing
what I am really doing does not strike me as a very exciting option;
especially when I cannot predict which clock value will show up.

> /* wsb */
>         ms=ms*2;

You know that this is safe or it just happens to work?

   Michal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ncr53c8xx timeouts
  1999-08-15 16:12 ` Michal Jaegermann
@ 1999-08-15 16:18   ` Peter Petrakis
  1999-08-15 17:35     ` Wes Bauske
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Petrakis @ 1999-08-15 16:18 UTC (permalink / raw)
  To: axp-list

I've seen this exact same behavior on my LX with a ncr53c895. It was the
result of a bad U2W hardrive.

Peter
----- Original Message -----
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: <axp-list@redhat.com>
Sent: Sunday, August 15, 1999 12:12 PM
Subject: Re: ncr53c8xx timeouts


| Wes Bauske wrote:
| >
| > Multiply ms after it's calculated by 2. For some
| > reason, the newer ncr53c8xx.c is computing the
| > wrong MHZ for my scsi cards.
|
| I have seen something, so far only on dp264, which **may** be related to
| that.  On various occasions with **the same** version of a driver, on
| the same machine and without touching anything in a controller itself I
| see reports "NCR clock is xKHz" (this is from ncr_getclock() in
| sym53c8xx.c) where x is either 21626, or 40037 or 80074.  The third case
| is followed by "PCI clock seems too high" and no disks.  It does not
| appear to matter which of the other two values was chosen - things
| are ok in both cases.
|
| > This has happened on
| > 875/875J/895 so it isn't isolated to a single type
| > of card.
|
| What I see seems to be related how a kernel was built (configuration and
| maybe a compiler itself) but I still cannot point to a culprit with any
| conviction.  I start to suspect some timing issues in reading an
| information from a hardware/firmware.  Maybe some delays are not not
| long enough for ev6?  Messing with a disk controller without knowing
| what I am really doing does not strike me as a very exciting option;
| especially when I cannot predict which clock value will show up.
|
| > /* wsb */
| >         ms=ms*2;
|
| You know that this is safe or it just happens to work?
|
|    Michal
|
| --
| To unsubscribe: send e-mail to axp-list-request@redhat.com with
| 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
|
|


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ncr53c8xx timeouts
  1999-08-15 16:18   ` Peter Petrakis
@ 1999-08-15 17:35     ` Wes Bauske
  0 siblings, 0 replies; 4+ messages in thread
From: Wes Bauske @ 1999-08-15 17:35 UTC (permalink / raw)
  To: axp-list

Peter Petrakis wrote:
> 
> I've seen this exact same behavior on my LX with a ncr53c895. It was the
> result of a bad U2W hardrive.
> 

Humm. I've got 3 U2W's and an UW on the card. They
work fine on 2.2.3 so I kind of doubt it's the HD's.

Also, note the <0,*> part of the message. That's the
controller, not a drive.

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)
            -----

I have seen it complain about a specific drive
but the notation above changes and shows the scsi id
of the drive. That happens occasionally when a drive
doesn't spin up on it's own. I just power the disk
off and back on to get it spinning.

> |
> | > /* wsb */
> | >         ms=ms*2;
> |
> | You know that this is safe or it just happens to work?
> |

I came to this solution after booting with "ncr53c8xx=verb:2"
on my 2.2.3 kernel and seeing how it computed the number of
msec's it used that ALWAYS worked with that kernel. If it
helps, I tried this on a couple different kernels and it
seems to behave OK. (2.2.5 and 2.2.11)

Basically, the routine kept getting 80mhz and it would not
work. Of course, this may be due to my mixing U2W/UW drives
but the 53c895 with transceiver is supposed to handle that
correctly. Also, I'm using a SE active terminator on both
sides of the bus so it really can't run U2W LVD. So, it's 
possible the 895 and U2W disks are attempting to negotiate
a 80MB/sec handshake and since the terminator doesn't support
it, it's hanging. For, now, I'll leave it in. When I get a
U2W LVD terminator, I'll try that but the same problem occurs
on a 53c875 so I'm not hopeful that's the problem.

As usual, YMMV.

System is still running at the moment with this change but
I won't be stressing it until latter today.


Wes


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-15 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-15  7:35 ncr53c8xx timeouts Wes Bauske
1999-08-15 16:12 ` Michal Jaegermann
1999-08-15 16:18   ` Peter Petrakis
1999-08-15 17:35     ` Wes Bauske

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