From owner-aic7xxx Fri Jul 20 5:49:49 2001 Delivered-To: aic7xxx@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id 02E0C37B401 for ; Fri, 20 Jul 2001 05:49:47 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.2/8.9.3) with ESMTP id f6KCnhU33564; Fri, 20 Jul 2001 06:49:43 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Message-Id: <200107201249.f6KCnhU33564@aslan.scsiguy.com> To: Kayoko Isshi Cc: "'aic7xxx@FreeBSD.ORG'" Subject: Re: test at Target mode In-Reply-To: Your message of "Mon, 16 Jul 2001 15:27:20 +0900." <3B528948.FF1D5A9@cs.fujitsu.co.jp> Date: Fri, 20 Jul 2001 06:49:43 -0600 From: "Justin T. Gibbs" Sender: owner-aic7xxx@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >> Sorry. >> Your design is right:target driver should reset only once. >> After that,I read the comment about BusReset in sequencer code,and I got >> it. > >This question has revived. >Your design is logically right ,but it's not right in my condition. >When the 2nd BusReset continues to occur, ENSELI bit in SCSISEQ is reset by >anyone. >Do you know who reset it? After checking with a hardware engineer, it appears that the chip ( at least the 7899, but perhaps some of the older ones too) automatically resets this bit on either an outgoing or incoming bus reset. In 6.2.0, I've chnaged the target mode reset behavior to re-enable the interrupt immediately after we see a reset. This leaves us open to the "interrupt storm" problems I listed before, but at least ensures that we will always respond to selection. Targets are supposed to respond to selection "as soon as possible" after a reset, so reducing the interrupt rate by setting a timer to re-enable select-ins every few milliseconds probably wouldn't cut it. I'll have to go review the SPI-4 and SAM-2 specs again. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message