From owner-freebsd-scsi@FreeBSD.ORG Thu Jul 31 20:16:19 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAC8037B401 for ; Thu, 31 Jul 2003 20:16:19 -0700 (PDT) Received: from hotmail.com (law14-f116.law14.hotmail.com [64.4.21.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 781AE43F75 for ; Thu, 31 Jul 2003 20:16:19 -0700 (PDT) (envelope-from xjrcool@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 31 Jul 2003 20:16:19 -0700 Received: from 202.94.4.250 by lw14fd.law14.hotmail.msn.com with HTTP; Fri, 01 Aug 2003 03:16:19 GMT X-Originating-IP: [202.94.4.250] X-Originating-Email: [xjrcool@hotmail.com] From: "Jingrong Xie" To: freebsd-scsi@freebsd.org Date: Fri, 01 Aug 2003 03:16:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Aug 2003 03:16:19.0306 (UTC) FILETIME=[46C1B4A0:01C357DB] Subject: AIC7899's 2 SCSI channels infect with each other in target mode? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 03:16:20 -0000 I have two machine A and B, each with a 39160 card (aic7899 processor), the Installatioin Guide of the card says, "The Adaptec SCSI Card 39160 has two INDEPENDENT SCSI channels, ...". I use Nate's scsi_target on A, and my test_write_scsi.c on B to write to Emulated Disk uninterruptedly, it works perfectly. Also using scsi_target on B and test_write_scsi.c on A works perfectly. But when I use the two at the same time, kernel code of scsi_target crash like this: Fatal trap 12: page fault wihle in kernel mode ...... Stopped at targdone + 0x84: movl %eax, 0x20(%edx) <<<<<<<>>>>>>> ahc1: Bus Device Reset on Ahc0(0:5:1) SCBS aborted. =========This is my enviroment and test: A# dmesg |grep SCSI ahc0: port 0xc800-0xc8ff mem 0xe5202000-0xe5202fff irq 10 at device 15.0 on pci1 aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: port 0xcc00-0xccff mem 0xe5203000-0xe5203fff irq 11 at device 15.1 on pci1 aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs A# uname -rm 4.7-RELEASE i386 A# scsi_target 0:5:0 B# camcontrol rescan 0 B# ./test_write_scsi B# scsi_target 1:5:0 A# camcontrol rescan 1 A# ./test-write_scsi any ideas? Thanks, Jacky Xie _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail