Subject: Help! HD problems, ncr0: no ccb.
To: None <port-i386@NetBSD.ORG>
From: Lundman <lundman@argonaut.com>
List: port-i386
Date: 07/28/1998 21:39:28
Hello everyone :)

1.3.2kernel, 1.3A userland.

NetBSD acc 1.3.2 NetBSD 1.3.2 (acc) #1: Wed Jul 15 10:42:34 BST 1998    
lundman@Cranberry:/var/spool/news/src/sys/arch/i386/compile/acc i386


Just added a new HD (sd4 - previously tested on win95 before install) to
our machine and it totally hangs the machine on IO access.




The interesting part of the kernel boot log are:


Jul 28 19:55:25 acc /netbsd: ncr0 at pci0 dev 15 function 0: ncr
53c810 		fast10 scsi
Jul 28 19:55:25 acc /netbsd: ncr0: interrupting at irq 11
Jul 28 19:55:25 acc /netbsd: ncr0: minsync=25, maxsync=206, maxoffs=8, 
		16 dwords burst, normal dma fifo
Jul 28 19:55:25 acc /netbsd: ncr0: single-ended, open drain IRQ driver
Jul 28 19:55:25 acc /netbsd: ncr0: restart (scsi reset).
Jul 28 19:55:25 acc /netbsd: scsibus0 at ncr0: 8 targets

Jul 28 19:55:25 acc /netbsd: sd0 at scsibus0 targ 0 lun 0: <FUJITSU, 		
M2932S-512, 0112> SCSI2 0/direct fixed
Jul 28 19:55:25 acc /netbsd: sd0: sd0(ncr0:0:0): 10.0 MB/s (100 ns, 	
offset 8)
Jul 28 19:55:25 acc /netbsd: 2076MB, 3421 cyl, 9 head, 138 sec, 512 		
bytes/sect x 4253391 sectors

Jul 28 19:55:25 acc /netbsd: sd1 at scsibus0 targ 1 lun 0: <SEAGATE, 		
ST11200N, 8334> SCSI2 0/direct fixed
Jul 28 19:55:25 acc /netbsd: sd1: sd1(ncr0:1:0): 10.0 MB/s (100 ns, 	
offset 8)
Jul 28 19:55:25 acc /netbsd: 1005MB, 1872 cyl, 15 head, 73 sec, 512 		
bytes/sect x 2059140 sectors

Jul 28 19:55:25 acc /netbsd: sd2 at scsibus0 targ 2 lun 0: <MICROP, 		
3391NS, P429> SCSI2 0/direct fixed
Jul 28 19:55:25 acc /netbsd: sd2: sd2(ncr0:2:0): 10.0 MB/s (100 ns, 	
offset 8)
Jul 28 19:55:25 acc /netbsd: sd2(ncr0:2:0): M_DISCONNECT received,
but 			datapointer not saved:
Jul 28 19:55:26 acc /netbsd:    data=7d1b4 save=756b0 goal=756d4.
Jul 28 19:55:26 acc /netbsd: 8681MB, 4811 cyl, 21 head, 175 sec, 512 		
bytes/sect x 17780058 sectors

Jul 28 19:55:26 acc /netbsd: sd3 at scsibus0 targ 3 lun 0: <QUANTUM, 		
XP34301, 1051> SCSI2 0/direct fixed
Jul 28 19:55:26 acc /netbsd: sd3: sd3(ncr0:3:0): 10.0 MB/s (100 ns, 	
offset 8)
Jul 28 19:55:26 acc /netbsd: 4106MB, 4076 cyl, 20 head, 103 sec, 512 		
bytes/sect x 8410200 sectors

Jul 28 19:55:26 acc /netbsd: sd4 at scsibus0 targ 6 lun 0: <MICROP, 		
3391NS, M09D> SCSI2 0/direct fixed
Jul 28 19:55:26 acc /netbsd: sd4: sd4(ncr0:6:0): 10.0 MB/s (100 ns, 	
offset 8)
Jul 28 19:55:26 acc /netbsd: 8681MB, 4811 cyl, 22 head, 167 sec, 512 		
bytes/sect x 17780058 sectors


sd0 is boot disk, sd1, sd2 and sd3 all work fine and are mounted(and
full). Incidentally, sd2 and sd4 are the same make/drives.

sd4 has been labelled - just the one partition, as:

#        size   offset    fstype   [fsize bsize   cpg]
  c: 17675614        0      4.2BSD     1024  8192    16  

(hope that right)

Now if I go to newfs this drive, it starts, writes about 2 numbers in
(supoer block phase?) and then the machine hangs. After reboot,
/var/log/messages have the following messages:

Jul 28 21:14:08 acc /netbsd: ncr0: no ccb.
Jul 28 21:14:08 acc /netbsd: sd4: not queued, error 5
Jul 28 21:14:08 acc /netbsd: ncr0: no ccb.
Jul 28 21:14:08 acc /netbsd: sd4: not queued, error 5
Jul 28 21:14:08 acc /netbsd: ncr0: no ccb.
Jul 28 21:14:08 acc /netbsd: sd4: not queued, error 5
Jul 28 21:14:08 acc /netbsd: ncr0: no ccb.
Jul 28 21:14:08 acc /netbsd: sd4: not queued, error 5

etc....

I was under the impression the "no ccb" bug was fixed in a 1.3.2 kernel?
am I doing something wrong? Partitioning it incorrectly perhaps? We've
looked at SCSI termination and cables too, nothing seems amiss.


I look forward to any reply, and thanks for any help.


-- 
Jorgen Lundman
Programmer
Argonaut
http://www.argonaut.com
http://www.whiterose.net/users/lundman