Date: Thu, 11 Jul 2002 16:29:16 -0700 From: Tom Hugunin <tom_hugunin@pacbell.net> To: aic7xxx@FreeBSD.org Subject: Target Mode Issue Message-ID: <3D2E14CC.9000800@pacbell.net>
next in thread | raw e-mail | index | archive | help
I am working on a Freebsd 4.5 system with an adaptec aic7880 chip enabled for target mode. If i do an inquiry with a disconnect (msg out) C0 (cmd) 12 00 00 00 30 00) (data in) 03 00 02 02 FC 00 00 32 - 46 72 65 65 42 53 44 20 54 4D 2D 50 54 20 20 20 - 20 20 20 20 20 20 20 20 30 2E 30 20 00 00 00 00 - 00 00 00 00 00 00 00 00 the inquiry data is returned to the host and is ok but with no disconnect (msg out) 80 (cmd) 12 00 00 00 30 00 (data in) 80 12 00 00 00 F0 00 03 - 00 02 02 FC 00 00 32 46 72 65 65 42 53 44 20 54 - 4D 2D 50 54 20 20 20 20 20 20 20 20 20 20 20 30 - 2E 30 20 00 00 00 00 00 The data sent back to the initiator always has the command plus the message out added to the start of the data returned This also happens with request sense and receive commands transfer mode is async, narrow bus. Also if an extended message is sent before the command such as a speed negotiation it is also returned in the buffer I.E (msg out) 80 (msg out) 01 03 01 19 08 (msg in) 01 03 01 19 08 (cmd) 12 00 00 00 30 00 (data in) 80 01 03 01 19 08 12 00 - 00 00 F0 00 03 00 02 02 FC 00 00 32 46 72 65 65 - 42 53 44 20 54 4D 2D 50 54 20 20 20 20 20 20 20 - 20 20 20 20 30 2E 30 20 I have found this issue on FreeBSD 4.4, FreeBSD 4.5, Freebsd 4.6 Placing some debug code to print out the buffer before it is sent to the card in (aic7xxx_osm.c:ahc_setup_data) right before bus_dmap_load. The data printed out is not corrupted with the command when disconnects are disabled. So I am assuming that the data is getting from the cam layer to the aic7xxx driver O.K. but is getting corrupted from the aic7xxx to the scsi bus. I have verified that the data on the bus is corrupted with a scsi bus analyzer. Is there any way to fix this problem. Or something I have overlooked -- ---------------------------------- Tom Hugunin tom_hugunin@pacbell.net ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2E14CC.9000800>