On Fri, 6 Aug 1999, Douglas Gilbert wrote:

> Just a thought for people looking into this SCSI
> bus reset problem:
> # echo "scsi dump 0" > /proc/scsi/scsi
> 
> This will output all the mid level command blocks to
> the console/log. [This may only be useful if your
> root partition is on a IDE disk.] See the function
> scsi_dump_status() in scsi.c to interprete all
> those numbers. Active commands during those resets
> may have useful information in the 3 "timeout"
> related fields.

I'm actually calling scsi_dump_status just before the timoeout message
is printed now anyway.  Here's what I'm getting (repeated over and over)
on this particular occasion:

Aug 18 19:56:35 condor kernel: Dump of scsi host parameters: 
Aug 18 19:56:35 condor kernel:  0 1 1 : 0 00000000 
Aug 18 19:56:35 condor kernel:  0 0 0 : 0 00000000 
Aug 18 19:56:35 condor kernel:  
Aug 18 19:56:35 condor kernel:  
Aug 18 19:56:35 condor kernel: Dump of scsi command parameters: 
Aug 18 19:56:35 condor kernel: h:c:t:l (dev sect nsect cnumsec sg) (ret all flg) 
(to/cmd to ito) cmd snse result 
Aug 18 19:56:35 condor kernel: (  0)  0:0: 4: 0 ( 00:00    0    0    0 ffff 0) (0 3 0x 
0) (3000    0    0) 0x25 0x00 0x00000000 
Aug 18 19:56:35 condor kernel: (  1)  0:0: 4: 0 ( 00:00    0    0    0 ffffffff 0) (0 
0 0x 0) (   0    0    0) 0x00 0x00 0x00000000 
Aug 18 19:56:35 condor kernel: (  2)  0:0: 4: 0 ( 00:00    0    0    0 ffffffff 0) (0 
0 0x 0) (   0    0    0) 0x00 0x00 0x00000000 
Aug 18 19:56:35 condor kernel: h:c:t:l (dev sect nsect cnumsec sg) (ret all flg) 
(to/cmd to ito) cmd snse result 
Aug 18 19:56:35 condor kernel: Dump of pending block device requests 
Aug 18 19:56:35 condor kernel: wait_for_request = c01b8578 
Aug 18 19:56:35 condor kernel: scsi : aborting command due to timeout : pid 36, scsi0, 
channel 0, id 4, lun 0 Read Capacity 00 00 00 00 00 00 00 00 00  

There is no process 36.

> Also the low level driver probably  outputs
> debug information as well. In the case of my first
> Advansys adapter:
> # cat /proc/scsi/advansys/0

# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 5.1.19/3.2.4
Compile Options:
  TCQ Enabled By Default : Disabled
  AIC7XXX_PROC_STATS     : Enabled
  AIC7XXX_RESET_DELAY    : 5

Adapter Configuration:
           SCSI Adapter: Adaptec AIC-7895 Ultra SCSI host adapter
                           Ultra Wide Controller Channel A
    PCI MMAPed I/O Base: 0xe8000000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 11
                   SCBs: Active 1, Max Active 1,
                         Allocated 15, HW 32, Page 255
             Interrupts: 113
      BIOS Control Word: 0x18a6
   Adapter Control Word: 0x005e
   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:

(scsi0:0:4:0)
  Device using Narrow/Async transfers.
  Transinfo settings: current(0/0/0/0), goal(0/0/0/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

-- 
Tim
Quidquid latine dictum sit, altum viditur.


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to