Subject: Re: New aic78xx driver code update
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Frank van der Linden <frank@wins.uva.nl>
List: current-users
Date: 03/07/2000 21:41:46
On Tue, Mar 07, 2000 at 09:36:22PM +0100, Manuel Bouyer wrote:
> Under ligth use I got the following messages:
> sd0(ahc0:0:0):  Check Condition on CDB: 0x08 08 ab 90 10 00
>     SENSE KEY:  Aborted Command
>      ASC/ASCQ:  Overlapped Commands Attempted
> 
> and:
> sd0(ahc0:0:0): SCB 1c - timed out while idle, SEQADDR == 0xc
> SCSIRATE == 0x0
> sd0(ahc0:0:0): Queuing a BDR SCB
> sd0(ahc0:0:0): Bus Device Reset Message Sent
> sd0(ahc0:0:0): no longer in timeout, status = 0
> ahc0: Bus Device Reset on A:0. 1 SCBs aborted

I'm pretty sure I fixed that one. Apply the following diff to
src/sys/dev/microcode/aic7xxx/aic7xxx.seq, and do
"make -f Makefile.sequencer headers" in that directory. Then
recompile. 

If you do this, let me know how it goes.

Thanks,

- Frank


*** aic7xxx.seq.orig	Tue Mar  7 20:40:56 2000
--- aic7xxx.seq	Tue Mar  7 20:42:59 2000
***************
*** 1227,1234 ****
  	/* If we are untagged, clear our address up in host ram */
  	test	SCB_CONTROL, TAG_ENB jnz complete_queue;
  	mov	A, SAVED_TCL;
! 	mvi	UNTAGGEDSCB_OFFSET call post_byte_setup;
! 	mvi	SCB_LIST_NULL call post_byte;
  
  complete_queue:
  	mov	SCB_TAG call complete_post;
--- 1227,1235 ----
  	/* If we are untagged, clear our address up in host ram */
  	test	SCB_CONTROL, TAG_ENB jnz complete_queue;
  	mov	A, SAVED_TCL;
! 	/* fvdl - let ahc_intr clear this to avoid race conditions */
! 	/* mvi	UNTAGGEDSCB_OFFSET call post_byte_setup; */
! 	/* mvi	SCB_LIST_NULL call post_byte; */
  
  complete_queue:
  	mov	SCB_TAG call complete_post;