Re: Kernel crashed when writing data from IDE to a SCSI card.

From: sam wun <sam.wun_at_authtec.com>
Date: Fri, 25 Feb 2005 00:01:58 +0800
Hi,

These is the Adaptec card I m using in FreeBSD 5.3:
# grep Adaptec /var/log/messages

Feb 24 23:56:46 gateway kernel: ahd0: <Adaptec 29320 Ultra320 SCSI 
adapter> port 0xde00-0xdeff,0xd000-0xd0ff mem 0xff8fc000-0xff8fdfff irq 
21 at device 0.0 on pci1
Feb 24 23:56:46 gateway kernel: ahd1: <Adaptec 29320 Ultra320 SCSI 
adapter> port 0xd400-0xd4ff,0xd800-0xd8ff mem 0xff8fe000-0xff8fffff irq 
22 at device 0.1 on pci1

sam wun wrote:

> Hi,
>
> I m running FreeBSD 5.3 stable, with an Adaptec card and 2 SCSI 
> Quantum hard drives installed in the system.
> When I tried to copy the whole directory from the IDE disk to one of 
> the Quantum hard disc, the kernel shows alow of message on the screen, 
> these messages are:
>
> Feb 24 23:47:54 gateway nmbd[558]:
> Feb 24 23:47:54 gateway nmbd[558]:   *****
> Feb 24 23:48:26 gateway kernel: (da1:ahd1:0:0:0): Unexpected busfree 
> in Data-out phase, 1 SCBs aborted, PRGMCNT == 0x239
> Feb 24 23:48:26 gateway kernel: >>>>>>>>>>>>>>>>>> Dump Card State 
> Begins <<<<<<<<<<<<<<<<<
> Feb 24 23:48:26 gateway kernel: ahd1: Dumping Card State at program 
> address 0x237 Mode 0x11
> Feb 24 23:48:26 gateway kernel: Card was paused
> Feb 24 23:48:26 gateway kernel: INTSTAT[0x8]:(SCSIINT) SELOID[0x0] 
> SELID[0x0] HS_MAILBOX[0x0]
> Feb 24 23:48:26 gateway kernel: INTCTL[0x80]:(SWTMINTMASK) 
> SEQINTSTAT[0x0] SAVED_MODE[0x11]
> Feb 24 23:48:26 gateway kernel: DFFSTAT[0x11]:(CURRFIFO_1|FIFO0FREE) 
> SCSISIGI[0x0]:(P_DATAOUT)
> Feb 24 23:48:26 gateway kernel: SCSIPHASE[0x0] SCSIBUS[0x0] 
> LASTPHASE[0x0]:(P_DATAOUT)
> Feb 24 23:48:26 gateway kernel: SCSISEQ0[0x0] 
> SCSISEQ1[0x12]:(ENAUTOATNP|ENRSELI)
> Feb 24 23:48:26 gateway kernel: SEQCTL0[0x10]:(FASTMODE) 
> SEQINTCTL[0x0] SEQ_FLAGS[0x20]:(DPHASE)
> Feb 24 23:48:26 gateway kernel: SEQ_FLAGS2[0x0] QFREEZE_COUNT[0x1] 
> KERNEL_QFREEZE_COUNT[0x1]
> Feb 24 23:48:26 gateway kernel: MK_MESSAGE_SCB[0xff00] 
> MK_MESSAGE_SCSIID[0xff] SSTAT0[0x0]
> Feb 24 23:48:26 gateway kernel: SSTAT1[0x8]:(BUSFREE) 
> SSTAT2[0xc0]:(BUSFREE_DFF1)
> Feb 24 23:48:26 gateway kernel: SSTAT3[0x0] PERRDIAG[0x0] 
> SIMODE1[0xac]:(ENSCSIPERR|ENBUSFREE|ENSCSIRST|ENSELTIMO)
> Feb 24 23:48:26 gateway kernel: LQISTAT0[0x0] LQISTAT1[0x0] 
> LQISTAT2[0x0] LQOSTAT0[0x0]
> Feb 24 23:48:26 gateway kernel: LQOSTAT1[0x0] LQOSTAT2[0x0]
> Feb 24 23:48:26 gateway kernel:
> Feb 24 23:48:26 gateway kernel: SCB Count = 16 CMDS_PENDING = 1 
> LASTSCB 0xf CURRSCB 0xf NEXTSCB 0x0
> Feb 24 23:48:26 gateway kernel: qinstart = 717 qinfifonext = 717
> Feb 24 23:48:26 gateway kernel: QINFIFO:
> Feb 24 23:48:26 gateway kernel: WAITING_TID_QUEUES:
> Feb 24 23:48:26 gateway kernel: Pending list:
> Feb 24 23:48:26 gateway kernel: Total 0
> Feb 24 23:48:26 gateway kernel: Kernel Free SCB list: 15 1 2 3 4 5 6 7 
> 8 9 10 11 12 13 14 0
> Feb 24 23:48:26 gateway kernel: Sequencer Complete DMA-inprog list:
> Feb 24 23:48:26 gateway kernel: Sequencer Complete list:
> Feb 24 23:48:26 gateway kernel: Sequencer DMA-Up and Complete list:
> Feb 24 23:48:26 gateway kernel: Sequencer On QFreeze and Complete list:
> Feb 24 23:48:26 gateway kernel:
> Feb 24 23:48:26 gateway kernel:
> Feb 24 23:48:26 gateway kernel: ahd1: FIFO0 Free, LONGJMP == 0x80ff, 
> SCB 0x0
> Feb 24 23:48:26 gateway kernel: 
> SEQIMODE[0x3f]:(ENCFG4TCMD|ENCFG4ICMD|ENCFG4TSTAT|ENCFG4ISTAT|ENCFG4DATA|ENSAVEPTRS) 
>
> Feb 24 23:48:26 gateway kernel: SEQINTSRC[0x0] DFCNTRL[0x0] 
> DFSTATUS[0x89]:(FIFOEMP|HDONE|PRELOAD_AVAIL)
> ....
>
> Then the system is halted few minutes later.
> Can anyone please tell me how to fix this error?
>
> Thanks
> Sam
>
>
>
>


-- 
Senior Security Architect/Consultant
AuthTec Gateway Limited
Mobile: +852 9839 2464	
Email: sam.wun_at_authtec.com
Website: http://www.authtec.com
Received on Thu Feb 24 2005 - 15:00:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC