AIC7899's 2 SCSI channels infect with each other in target mode?

Jingrong Xie xjrcool at hotmail.com
Thu Jul 31 20:16:20 PDT 2003


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)

<<<<<<<<Dump Card State Ends>>>>>>>>
ahc1: Bus Device Reset on Ahc0(0:5:1) SCBS aborted.



=========This is my enviroment and test:
A# dmesg |grep SCSI
ahc0: <Adaptec 3960D Ultra160 SCSI adapter> 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: <Adaptec 3960D Ultra160 SCSI adapter> 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



More information about the freebsd-scsi mailing list