[4989] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

[Long] Problems with NCR 876 & ncr53c8xx 3.x

daemon@ATHENA.MIT.EDU (Chris Chiappa)
Sat Oct 24 00:25:07 1998

Date: 	Sat, 24 Oct 1998 00:22:35 -0400
From: Chris Chiappa <griffon@snurgle.org>
To: linux-scsi@vger.rutgers.edu
Reply-To: griffon@snurgle.org

Just got a Diamond Dual Fireport 40, and upgraded from my old NCR 810 card.
I have 2 fast narrow 2 gig barracudas on one chain and a Philips CDD-2600 on
the other, configured as such...

Channel A -- Barracuda -- Barracuda (Terminated with Power from Drive)
Channel B -- Philips CDD-2600 (Terminated)

I'm appending the detection phase of the driver to the end of this message...

In my rc.local I have:
echo "setsync all 25" > /proc/scsi/ncr53c8xx/0
echo "setsync all 25" > /proc/scsi/ncr53c8xx/1
echo "settags all 4"  > /proc/scsi/ncr53c8xx/0
echo "settags all 4"  > /proc/scsi/ncr53c8xx/1

Other information about my system: K6-2/350 based, 128MB SDRAM, FIC PA-2013
motherboard. No IRQ conflicts.  Other stuff: SB 16, Matrox Millenium G200,
Canopus Pure3D, 3Com 3C905, 2 IDE Disks.  The Barracudas run as a raid0
stripe.  Kernel is stock 2.0.35 (+ updated NCR drivers) compiled with gcc
2.7.2.3.

<griffon>KeyserSoze-ttyp0[31]/usr/src/linux$ grep NCR53C8XX .config
CONFIG_SCSI_NCR53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=64
CONFIG_SCSI_NCR53C8XX_SYNC=5
# CONFIG_SCSI_NCR53C8XX_PROFILE is not set
# CONFIG_SCSI_NCR53C8XX_IOMAPPED is not set
CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT=y


I have two problems with this.  The first (more minor) one is that timings
as reported by hdparm seem slow...
<griffon>KeyserSoze-ttyp0[22]~$ sudo hdparm -t /dev/sda /dev/sdb

/dev/sda:
 Timing buffer-cache reads:   32 MB in  0.57 seconds =56.14 MB/sec
 Timing buffered disk reads:  16 MB in  4.40 seconds = 3.64 MB/sec
  
/dev/sdb:
 Timing buffer-cache reads:   32 MB in  0.67 seconds =47.76 MB/sec
 Timing buffered disk reads:  16 MB in  5.01 seconds = 3.19 MB/sec

These values vary heavily between 3 and 4 MB/sec.  Under my 810 I was
typically getting a little over 6 MB/sec.  I know hdparm isn't a "rigorous"
test but this still seems out of whack.

The more serious problem is that when using the 3.x driver, I get serious
problems with heavy disk activity (ie untarring a large file, compiling
etc).  Sample:
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=01387020 (cancel)
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=01387820 (cancel)
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=01786020 (cancel)
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=01786820 (cancel)
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=019ca020 (cancel)
<lots of stuff like this deleted>
Oct 23 11:58:53 KeyserSoze kernel: ncr53c875-0: abort ccb=036c0820 (cancel)
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0: resetting, command
processing suspended for 2 seconds
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0: restart (scsi reset).
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0: enabling clock multiplier
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0: command processing resumed
Oct 23 11:58:54 KeyserSoze kernel: ncr53c875-0-<4,*>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 23 11:58:55 KeyserSoze kernel: ncr53c875-0-<5,*>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0-<5,0>: phase change 6-7
3@070ca4b0 resid=2.
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0-<5,0>: M_REJECT received
(80:8).
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0:5: ERROR (0:4) (0-a7-80)
(f/35) @ (script 380:860b0000).
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0: script cmd = 78340800
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0: regdump: da 10 80 35 47 0f
05 0a 01 00 84 a7 80 00 07 02.
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0: have to clear fifos.
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0: unexpected disconnect
Oct 23 12:14:20 KeyserSoze kernel: ncr53c875-0-<5,0>: COMMAND FAILED (8a ff)
@070ca020.
...
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0:5: ERROR (81:0) (47-67-20)
(f/35) @ (mem 8062930:ffffffff).
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: regdump: da 10 80 35 47 0f
05 0a 91 47 85 67 80 00 07 00.
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: have to clear fifos.
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: resetting, command
processing suspended for 2 seconds
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: restart (scsi reset).
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: enabling clock multiplier
Oct 23 21:43:26 KeyserSoze kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Oct 23 21:43:27 KeyserSoze kernel: ncr53c875-0:5: SIR 16, incorrect nexus
identification on reselection
Oct 23 21:43:27 KeyserSoze kernel: ncr53c875-0:5: SIR 16, incorrect nexus
identification on reselection
Oct 23 21:43:27 KeyserSoze kernel: ncr53c875-0:4: SIR 16, incorrect nexus
identification on reselection

There were a lot of errors but it caused a lot of kernel GPFs to start
happening etc, and syslogd apparently died.  Often times there are less
fatal errors, simple SCSI bus timeouts where the driver resets the card and
things seem to recover fine (until the next problem of course).  As far as I
can tell I don't have a choice but to have the card auto terminating (I
don't see any termination options in the BIOS).  The cables both seem to be
good quality.  The one connecting the Barracudas is the one that came with
the Fireport (4 head, so one is free).  Any help/suggestions would be
appreciated.  I can provide any other necessary info or whatnot, or do any
debugging if needed.


Output for 2.5f.1:
Oct 24 09:53:03 KeyserSoze kernel: ncr53c8xx: at PCI bus 0, device 11,
function 0
Oct 24 09:53:03 KeyserSoze kernel: ncr53c8xx: 53c875 detected with Symbios
NVRAM
Oct 24 09:53:03 KeyserSoze kernel: ncr53c8xx: at PCI bus 0, device 11,
function 1
Oct 24 09:53:03 KeyserSoze kernel: ncr53c8xx: 53c875 detected with Symbios
NVRAM
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: rev=0x14, base=0xe5000000,
io_port=0x7000, irq=11
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: Symbios format NVRAM, ID 7,
Fast-20, Parity Checking
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: initial
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/4e/80/01/00/24
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: final
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/46/a0/00/08/24
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: on-board RAM at 0xe5001000
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: on-board ram mapped at
virtual address 0x8807000
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: requesting shared irq 11
(dev_id=0x398080)
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: resetting, command
processing suspended for 2 seconds
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: restart (scsi reset).
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: enabling clock multiplier
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: copying script fragments
into the on-board RAM ...
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: rev=0x14, base=0xe5002000,
io_port=0x7400, irq=11
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: Symbios format NVRAM, ID 7,
Fast-20, Parity Checking
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: initial
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/4e/80/01/00/24
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: final
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/46/a0/00/08/24
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: on-board RAM at 0xe5003000
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: on-board ram mapped at
virtual address 0x880b000
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: requesting shared irq 11
(dev_id=0x94080)
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: resetting, command
processing suspended for 2 seconds
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: restart (scsi reset).
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: enabling clock multiplier
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: copying script fragments
into the on-board RAM ...
Oct 24 09:53:03 KeyserSoze kernel: scsi0 : ncr53c8xx - revision 2.5f.1
Oct 24 09:53:03 KeyserSoze kernel: scsi1 : ncr53c8xx - revision 2.5f.1
Oct 24 09:53:03 KeyserSoze kernel: scsi2 : SCSI host adapter emulation for
IDE ATAPI devices
Oct 24 09:53:03 KeyserSoze kernel: scsi : 3 hosts.
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0: command processing resumed
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-1: command processing resumed
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0-<4,0>: using tagged command
queueing, up to 12 cmds/lun
Oct 24 09:53:03 KeyserSoze kernel:   Vendor: SEAGATE   Model: ST32550N 
Rev: 0022
Oct 24 09:53:03 KeyserSoze kernel:   Type:   Direct-Access 
ANSI SCSI revision: 02
Oct 24 09:53:03 KeyserSoze kernel: Detected scsi disk sda at scsi0, channel
0, id 4, lun 0
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0-<5,0>: using tagged command
queueing, up to 12 cmds/lun
Oct 24 09:53:03 KeyserSoze kernel:   Vendor: SEAGATE   Model: ST32550N 
Rev: 0022
Oct 24 09:53:03 KeyserSoze kernel:   Type:   Direct-Access 
ANSI SCSI revision: 02
Oct 24 09:53:03 KeyserSoze kernel: Detected scsi disk sdb at scsi0, channel
0, id 5, lun 0
Oct 24 09:53:03 KeyserSoze kernel:   Vendor: PHILIPS   Model: CDD2600 
Rev: 1.07
Oct 24 09:53:03 KeyserSoze kernel:   Type:   CD-ROM 
ANSI SCSI revision: 02
Oct 24 09:53:03 KeyserSoze kernel: scsi : detected 2 SCSI disks total.
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0-<4,0>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 24 09:53:03 KeyserSoze kernel: SCSI device sda: hdwr sector= 512 bytes.
Sectors= 4194058 [2047 MB] [2.0 GB]
Oct 24 09:53:03 KeyserSoze kernel: ncr53c875-0-<5,0>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 24 09:53:03 KeyserSoze kernel: SCSI device sdb: hdwr sector= 512 bytes.
Sectors= 4194058 [2047 MB] [2.0 GB]

Output for 3.0i:
Oct 23 20:15:17 KeyserSoze kernel: ncr53c8xx: at PCI bus 0, device 11,
function 0
Oct 23 20:15:17 KeyserSoze kernel: ncr53c8xx: 53c875 detected with Symbios
NVRAM
Oct 23 20:15:17 KeyserSoze kernel: ncr53c8xx: at PCI bus 0, device 11,
function 1
Oct 23 20:15:17 KeyserSoze kernel: ncr53c8xx: 53c875 detected with Symbios
NVRAM
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: rev=0x14, base=0xe5000000,
io_port=0x7000, irq=11
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: Symbios format NVRAM, ID 7,
Fast-20, Parity Checking
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: initial
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/4e/80/01/00/24
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: final
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/46/a0/00/08/24
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: on-chip RAM at 0xe5001000
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: requesting shared irq 11
(dev_id=0x398080)
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: resetting, command
processing suspended for 2 seconds
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: restart (scsi reset).
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: enabling clock multiplier
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: rev=0x14, base=0xe5002000,
io_port=0x7400, irq=11
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: Symbios format NVRAM, ID 7,
Fast-20, Parity Checking
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: initial
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/4e/80/01/00/24
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: final
SCNTL3/DMODE/DCNTL/CTEST 3/4/5 = (hex) 05/46/a0/00/08/24
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: on-chip RAM at 0xe5003000
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: requesting shared irq 11
(dev_id=0x94080)
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: resetting, command
processing suspended for 2 seconds
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: restart (scsi reset).
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: enabling clock multiplier
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: Downloading SCSI SCRIPTS.
Oct 23 20:15:17 KeyserSoze kernel: scsi0 : ncr53c8xx - revision 3.0i
Oct 23 20:15:17 KeyserSoze kernel: scsi1 : ncr53c8xx - revision 3.0i
Oct 23 20:15:17 KeyserSoze kernel: scsi2 : SCSI host adapter emulation for
IDE ATAPI devices
Oct 23 20:15:17 KeyserSoze kernel: scsi : 3 hosts.
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0: command processing resumed
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-1: command processing resumed
Oct 23 20:15:17 KeyserSoze kernel:   Vendor: SEAGATE   Model: ST32550N
Rev: 0022
Oct 23 20:15:17 KeyserSoze kernel:   Type:   Direct-Access 
ANSI SCSI revision: 02
Oct 23 20:15:17 KeyserSoze kernel: Detected scsi disk sda at scsi0, channel
0, id 4, lun 0
Oct 23 20:15:17 KeyserSoze kernel:   Vendor: SEAGATE   Model: ST32550N 
Rev: 0022
Oct 23 20:15:17 KeyserSoze kernel:   Type:   Direct-Access 
ANSI SCSI revision: 02
Oct 23 20:15:17 KeyserSoze kernel: Detected scsi disk sdb at scsi0, channel
0, id 5, lun 0
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0-<4,0>: tagged command queue
depth set to 64
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0-<5,0>: tagged command queue
depth set to 64
Oct 23 20:15:17 KeyserSoze kernel:   Vendor: PHILIPS   Model: CDD2600  
Rev: 1.07
Oct 23 20:15:17 KeyserSoze kernel:   Type:   CD-ROM  
ANSI SCSI revision: 02
Oct 23 20:15:17 KeyserSoze kernel: scsi : detected 2 SCSI disks total.
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0-<4,*>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 23 20:15:17 KeyserSoze kernel: SCSI device sda: hdwr sector= 512 bytes.
Sectors= 4194058 [2047 MB] [2.0 GB]
Oct 23 20:15:17 KeyserSoze kernel: ncr53c875-0-<5,*>: FAST-10 SCSI 10.0 MB/s
(100 ns, offset 15)
Oct 23 20:15:17 KeyserSoze kernel: SCSI device sdb: hdwr sector= 512 bytes.
Sectors= 4194058 [2047 MB] [2.0 GB]

/proc/scsi/scsi:
Attached devices: 
Host: scsi0 Channel: 00 Id: 04 Lun: 00
  Vendor: SEAGATE  Model: ST32550N         Rev: 0022
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 05 Lun: 00
  Vendor: SEAGATE  Model: ST32550N         Rev: 0022
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 06 Lun: 00
  Vendor: PHILIPS  Model: CDD2600          Rev: 1.07
  Type:   CD-ROM                           ANSI SCSI revision: 02
				
/proc/scsi/ncr53c8xx/0:
General information:
  Chip NCR53C875, device id 0xf, revision id 0x14
  IO port address 0x7000, IRQ number 11
  Using memory mapped IO at virtual address 0x8805000
  Synchronous period factor 12, max commands per lun 12
Profiling information:
  num_trans    = 32747
  num_kbytes   = 640102
  num_disc     = 41772
  num_break    = 967
  num_int      = 1000
  num_fly      = 32747
  ms_setup     = 30230
  ms_data      = 194730
  ms_disc      = 589450
  ms_post      = 1340
(1 is more or less similar)










-- 

+------- ---  -- --  -
| griffon@snurgle.N0-SPAM.org   /   My opinions represent snurgle.org :
! Unspoilt by progress         /    http://www.snurgle.org/~griffon   |
                                                 -  -- --  --- -------+

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post