Confusion with Adaptec 3940UW on YellowDogLinux

Blottman John B NPRI BlottmanJB at npt.nuwc.navy.mil
Tue Dec 7 18:15:36 PST 1999


Hi,
I have been trying to build a linux dev. system using the YDL  CS 1.1
dist. on a Beige G3. I planned to use an adaptec 3940UW controler and
8.5GB internal drive.  Unfortunately, the dist. would not build there,
so I put an external (apple scsi bus) 2GB narrow drive on to get
started.  

Installation of YDL went smoothly on the external., once the adaptec
card was ripped out.  I then updated the kernel to 2.2.10 following the
advice on Robert Shaws excellent HOWTO: 
http://www.linuxppc.org/blueg3/g2_kernel_howto.shtml

vmlinux 2.2.10 came with an updated aic7xxx driver, but still didn't
boot with the adaptec card in place.  The scsi bus went into an infinite
reset loop.  So, getting tired of pulling the card in and out, I rebuilt
the 2.2.10 with the aic7xxx as a module.  This permitted me to continue
with YDL, leaving the adaptec card in place.

I have tried many permutations both with aic7xxx parameters and with
hardware. i.e. swap out scsi ribbon cable, swap channels, passive and
auto termination, even slowing the disk down to 10 Mb/s
I have run out of ideas.

The following are snippets of messages extracted from the system. Not
sure what else to look at.

Configuration:
Beige G3 / Adaptec 3940UW / Internal IBM UW 39130 / Extern. Apple SCSI
Bus 1.2G Narrow SCSI
YDL Champion Server ver 1.1, vmunix 2.2.10, aic7xxx built as module.

/var/log/boot.log :

Dec  2 08:29:33 xdcr syslog: syslogd startup succeeded
Dec  2 08:29:33 xdcr syslog: klogd startup succeeded
Dec  2 08:29:34 xdcr atd: atd startup succeeded
Dec 31 19:00:20 xdcr rc.sysinit: Loading default keymap succeeded 
Dec 31 19:00:20 xdcr rc.sysinit: Setting default font succeeded 
Dec 31 19:00:20 xdcr swapon: swapon: warning: /dev/sda7 has insecure
permissions 0660, 0600 suggested 
Dec 31 19:00:20 xdcr rc.sysinit: Activating swap partitions succeeded 
Dec 31 19:00:20 xdcr rc.sysinit: Setting hostname xdcr.npt.nuwc.navy.mil
succeeded 
Dec 31 19:00:20 xdcr fsck: /dev/sda6: clean, 48143/415744 files,
745890/1658100 blocks 
Dec 31 19:00:20 xdcr rc.sysinit: Checking root filesystem succeeded 
Dec 31 19:00:20 xdcr rc.sysinit: Remounting root filesystem in read-write
mode succeeded 
Dec 31 19:00:21 xdcr rc.sysinit: Finding module dependencies succeeded 
Dec 31 19:00:21 xdcr rc.sysinit: Checking filesystems succeeded 
Dec 31 19:00:22 xdcr rc.sysinit: Mounting local filesystems succeeded 
Dec 31 19:00:22 xdcr rc.sysinit: Turning on user and group quotas for
local filesystems succeeded 
Dec  2 08:29:26 xdcr date: Thu Dec  2 08:29:26 EST 1999 
Dec  2 08:29:35 xdcr crond: crond startup succeeded
Dec  2 08:29:26 xdcr rc.sysinit: Setting clock : Thu Dec  2 08:29:26 EST
1999 succeeded 
Dec  2 08:29:26 xdcr rc.sysinit: Enabling swap space succeeded 
Dec  2 08:29:30 xdcr network: Bringing up interface lo succeeded 
Dec  2 08:29:31 xdcr network: Bringing up interface eth0 succeeded 
Dec  2 08:29:32 xdcr portmap: portmap startup succeeded 
Dec  2 08:29:32 xdcr netfs: Mounting other filesystems succeeded 
Dec  2 08:29:32 xdcr random: Initializing random number generator
succeeded 
Dec  2 08:29:35 xdcr inet: inetd startup succeeded
Dec  2 08:29:36 xdcr lpd: lpd startup succeeded
Dec  2 08:29:37 xdcr nfs: Starting NFS services:  succeeded
Dec  2 08:29:38 xdcr nfs: rpc.statd startup succeeded
Dec  2 08:29:39 xdcr nfs: rpc.rquotad startup succeeded
Dec  2 08:29:39 xdcr nfs: rpc.mountd startup succeeded
Dec  2 08:29:40 xdcr nfs: rpc.nfsd startup succeeded
Dec  2 08:29:40 xdcr keytable: Loading keymap: 
Dec  2 08:29:40 xdcr keytable: Loading system font: 
Dec  2 08:29:40 xdcr keytable: /etc/rc.d/rc5.d/S75keytable:
/etc/sysconfig/keyboard: line 2: unexpected EOF while looking for
matching `"'
Dec  2 08:29:40 xdcr keytable: /etc/rc.d/rc5.d/S75keytable:
/etc/sysconfig/keyboard: line 3: syntax error: unexpected end of file
Dec  2 08:29:40 xdcr rc: Starting keytable succeeded
Dec  2 08:29:41 xdcr sendmail: sendmail startup succeeded
Dec  2 08:29:42 xdcr gpm: gpm startup succeeded
Dec  2 08:29:42 xdcr sound: Starting sound configuration: 
Dec  2 08:29:42 xdcr sound: sound
Dec  2 08:29:42 xdcr sound: 
Dec  2 08:29:42 xdcr rc: Starting sound succeeded
Dec  2 08:29:44 xdcr xfs: xfs startup succeeded
Dec  2 08:30:15 xdcr atalk: atalkd startup succeeded
Dec  2 08:30:28 xdcr atalk: papd startup succeeded
Dec  2 08:30:28 xdcr atalk: afpd startup succeeded
Dec  2 08:30:28 xdcr linuxconf: Linuxconf final setup
Dec  2 08:30:29 xdcr rc: Starting linuxconf succeeded
Dec  2 08:30:29 xdcr rc: Starting local succeeded


/proc/scsi/aic7xxx/1 : 
Adaptec AIC7xxx driver version: 5.1.17/3.2.4
Compile Options:
  TCQ Enabled By Default : Disabled
  AIC7XXX_PROC_STATS     : Enabled
  AIC7XXX_RESET_DELAY    : 15

Adapter Configuration:
           SCSI Adapter: Adaptec AHA-394X Ultra SCSI host adapter
                           Ultra Wide Controller Channel A
    PCI MMAPed I/O Base: 0x80801000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 1
                   SCBs: Active 0, Max Active 1,
                         Allocated 15, HW 16, Page 255
             Interrupts: 322
      BIOS Control Word: 0x0286
   Adapter Control Word: 0x007f
   Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
     Ultra Enable Flags: 0x0000
 Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 8
    Tagged Queue By Device array for aic7xxx host instance 0:
      {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
    Actual queue depth per device for aic7xxx host instance 0:
      {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}

Statistics:

(scsi1:0:0:0)
  Device using Narrow/Async transfers.
  Transinfo settings: current(0/0/0/0), goal(12/8/1/0), user(12/15/1/0)
  Total transfers 0 (0 reads and 0 writes)
             < 2K      2K+     4K+     8K+    16K+    32K+    64K+
128K+
   Reads:       0       0       0       0       0       0       0       0
  Writes:       0       0       0       0       0       0       0       0

/proc/scsi/scsi :
Didn't save this, but the UW disk was recognized as existing, but could
not be identified.
I thought that suggested termination problems, but it works fine under
Mac OS.

/var/log/messages :

excerpt during: modprobe aic7xxx.o aic7xxx='verbose'

Dec  2 12:04:34 xdcr kernel: (scsi1) <Adaptec AHA-394X Ultra SCSI host
adapter> found at PCI 4/0 
Dec  2 12:04:34 xdcr kernel: (scsi1) Wide Channel A, SCSI ID=7, 16/255
SCBs 
Dec  2 12:04:34 xdcr kernel: (scsi1) Warning - detected auto-termination 
Dec  2 12:04:34 xdcr kernel: (scsi1) Please verify driver detected
settings are correct. 
Dec  2 12:04:34 xdcr kernel: (scsi1) If not, then please properly set the
device termination 
Dec  2 12:04:34 xdcr kernel: (scsi1) in the Adaptec SCSI BIOS by hitting
CTRL-A when prompted 
Dec  2 12:04:34 xdcr kernel: (scsi1) during machine bootup. 
Dec  2 12:04:34 xdcr kernel: (scsi1) Cables present (Int-50 NO, Int-68
YES, Ext-68 NO) 
Dec  2 12:04:34 xdcr kernel: (scsi1) Downloading sequencer code... 413
instructions downloaded 
Dec  2 12:04:34 xdcr kernel: (scsi2) <Adaptec AHA-394X Ultra SCSI host
adapter> found at PCI 5/0 
Dec  2 12:04:34 xdcr kernel: (scsi2) Wide Channel B, SCSI ID=7, 16/255
SCBs 
Dec  2 12:04:34 xdcr kernel: (scsi2) Warning - detected auto-termination 
Dec  2 12:04:34 xdcr kernel: (scsi2) Please verify driver detected
settings are correct. 
Dec  2 12:04:34 xdcr kernel: (scsi2) If not, then please properly set the
device termination 
Dec  2 12:04:34 xdcr kernel: (scsi2) in the Adaptec SCSI BIOS by hitting
CTRL-A when prompted 
Dec  2 12:04:34 xdcr kernel: (scsi2) during machine bootup. 
Dec  2 12:04:34 xdcr kernel: (scsi2) Cables present (Int-50 NO, Int-68
NO, Ext-68 NO) 
Dec  2 12:04:34 xdcr kernel: (scsi2) Downloading sequencer code... 413
instructions downloaded 
Dec  2 12:04:34 xdcr kernel: scsi1 : Adaptec AHA274x/284x/294x
(EISA/VLB/PCI-Fast SCSI) 5.1.17/3.2.4 
Dec  2 12:04:34 xdcr kernel:        <Adaptec AHA-394X Ultra SCSI host
adapter> 
Dec  2 12:04:34 xdcr kernel: scsi2 : Adaptec AHA274x/284x/294x
(EISA/VLB/PCI-Fast SCSI) 5.1.17/3.2.4 
Dec  2 12:04:34 xdcr kernel:        <Adaptec AHA-394X Ultra SCSI host
adapter> 
Dec  2 12:04:34 xdcr kernel: scsi : 3 hosts. 
Dec  2 12:04:40 xdcr kernel: scsi : aborting command due to timeout : pid
7600, scsi1, channel 0, id 0, lun 0 Test Unit Ready 00 00 00 00 00  
Dec  2 12:04:40 xdcr kernel: (scsi1:0:0:0) Aborting scb 0, flags 0x6 
Dec  2 12:04:41 xdcr kernel: SCSI host 1 abort (pid 7600) timed out -
resetting Dec  2 12:04:41 xdcr kernel: SCSI bus is being reset for host
1 channel 0. 
Dec  2 12:04:41 xdcr kernel: (scsi1:0:0:0) Reset called, scb 0, flags
0x16 
Dec  2 12:04:41 xdcr kernel: (scsi1:0:0:0) Bus Device reset, scb flags
0x16, Message-Out phase 
Dec  2 12:04:41 xdcr kernel: (scsi1:0:0:0) SCSISIGI 0xb4, SEQADDR 0xa3,
SSTAT0 0x5, SSTAT1 0x2 
Dec  2 12:04:41 xdcr kernel: (scsi1:0:0:0) Queueing device reset command.

Dec  2 12:04:41 xdcr kernel: (scsi1:-1:-1:-1) 0 commands found and queued
for completion. 
Dec  2 12:04:43 xdcr kernel: SCSI host 1 channel 0 reset (pid 7600) timed
out - trying harder 

And then the infinte reset loop:

Dec  2 08:25:16 xdcr kernel: SCSI bus is being reset for host 1 channel
0. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:0:0) Reset called, scb 0, flags
0x1066 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Reset channel called, will
initiate reset. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Resetting currently active
channel. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Channel reset 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Reset device, active_scb 0 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:0:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:1:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:2:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:3:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:4:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:5:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:6:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:8:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:9:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:10:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:11:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:12:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:13:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:14:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:15:-1) Cleaning up status
information and delayed_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Cleaning QINFIFO. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Cleaning waiting_scbs. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Cleaning waiting for
selection list. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:-1:-1) Cleaning disconnected scbs
list. 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:0:0) Aborting scb 0 
Dec  2 08:25:16 xdcr kernel: (scsi1:0:0:0) Aborting scb 1 
Dec  2 08:25:16 xdcr kernel: (scsi1:-1:-1:-1) 2 commands found and queued
for completion. 
Dec  2 08:25:22 xdcr kernel: SCSI host 1 abort (pid 4266) timed out -
resetting 
Dec  2 08:25:22 xdcr kernel: SCSI bus is being reset for host 1 channel
0. 
Dec  2 08:25:22 xdcr kernel: (scsi1:0:0:0) Reset called, scb 0, flags 0x6

Dec  2 08:25:22 xdcr kernel: (scsi1:0:0:0) Bus Device reset, scb flags
0x6, Message-Out phase 
Dec  2 08:25:22 xdcr kernel: (scsi1:0:0:0) SCSISIGI 0xb4, SEQADDR 0xa3,
SSTAT0 0x5, SSTAT1 0x2 
Dec  2 08:25:22 xdcr kernel: (scsi1:0:0:0) Queueing device reset command.

Dec  2 08:25:22 xdcr kernel: (scsi1:-1:-1:-1) 0 commands found and queued
for completion. 
Dec  2 08:25:23 xdcr kernel: SCSI host 1 channel 0 reset (pid 4266) timed
out - trying harder 

Note that if I disconnect everything from the adaptec, and run the
modprobe again, the reset of course does go away...

I tried to apply aic7xxx-5.1.19-2.2.10.patch provided by:
people.redhat.com/dledford/aic7xxx.html

excerpt during: modprobe aic7xxx.o aic7xxx='verbose'

Dec  7 11:12:42 xdcr kernel: Machine check in kernel mode. 
Dec  7 11:12:42 xdcr kernel: Caused by (from msr): regs c68c78f0 Unknown
values in msr 
Dec  7 11:12:42 xdcr kernel: NIP: CC82DABC XER: 00000000 LR: CC82D918
REGS: c68c78f0 TRAP: 0200 
Dec  7 11:12:42 xdcr kernel: MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR:
11 
Dec  7 11:12:42 xdcr kernel: TASK = c68c6000[732] 'insmod' mm->pgd
c6917000 Last syscall: 128  
Dec  7 11:12:42 xdcr kernel: last math c68c6000 
Dec  7 11:12:42 xdcr kernel: GPR00: 000000FF C68C79A0 C68C6000 00000000
00000020 00000040 800011C0 00000000  
Dec  7 11:12:42 xdcr kernel: GPR08: C0400000 00000087 C0180000 FE000000
42242484 0184F3A0 00000000 00000000  
Dec  7 11:12:42 xdcr kernel: GPR16: 018D0210 00000000 00400000 C68C79A8
CC838D10 0000001E 00000000 C68C7D5C  
Dec  7 11:12:42 xdcr kernel: GPR24: 00000000 0000000F C05BBA40 CC840000
CC840000 C68C7D58 C68C79B8 C6CD1000  
Dec  7 11:12:42 xdcr kernel: Call backtrace:  
Dec  7 11:12:42 xdcr kernel: CC82D918 C00F8BE0 C00F973C CC832DF8 C0017FBC
C0003888 018056FC  
Dec  7 11:12:42 xdcr kernel: 01803428 01803AD4 016DDD54 00000000  
Dec  7 11:12:42 xdcr kernel: Kernel panic: machine check 
Dec  7 12:33:20 xdcr syslogd 1.3-3: restart.

And that was that!

If you have followed me this far, I thank you.  If you can point me down
the road further, I would be grateful.

regards,
John Blottman




To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list