Date: Fri, 7 Nov 2003 15:44:46 +0200 From: "Technoservice" <technoservice@mail.lviv.ua> To: "Chuck Tuffli" <chuck_tuffli@agilent.com> Cc: freebsd-scsi@freebsd.org Subject: Re: problem with target mode Message-ID: <000b01c3a535$7e9c2d40$0100000a@server> References: <000b01c3a451$7f1bf230$0100000a@server> <20031106155149.GA90020@cre85086tuf.rose.agilent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I added CAMDEBUG family of options to my kernel. Here is the /var/log/messages output: ... Nov 7 11:38:04 tsproxy kernel: ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xe000-0xe0ff mem 0xdd001000-0xdd001fff irq 5 at device 19.0 on pci0 Nov 7 11:38:04 tsproxy kernel: aic7880: Ultra Wide Channel A, SCSI Id=5, 16/253 SCBs ... Nov 7 11:39:08 tsproxy kernel: Configuring Target Mode Nov 7 11:39:08 tsproxy kernel: (noperiph:ahc0:0:3:0): xpt_compile_path Nov 7 11:39:08 tsproxy kernel: (noperiph:ahc0:0:3:0): Lun now enabled for target mode Nov 7 11:39:08 tsproxy kernel: (noperiph:ahc0:0:3:0): xpt_done Nov 7 11:39:08 tsproxy kernel: (noperiph:ahc0:0:3:0): xpt_free_path Nov 7 11:39:08 tsproxy kernel: (noperiph:ahc0:0:3:0): xpt_release_path Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): xpt_setup_ccb Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): xpt_action Nov 7 11:39:08 tsproxy kernel: (xpt0:ahc0:0:3:0): debugging flags now 20 Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): Sending inline ccb 0x4 (0xbfbff9e0) Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc1414a00 Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): sendccb 0xc1414a00 Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc1414a00 Nov 7 11:39:08 tsproxy kernel: cam_debug: targfreeccb descr 0xc09fa420 and Nov 7 11:39:08 tsproxy kernel: cam_debug: freeing ccb 0xc1414a00 Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 | Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc1503100 | it repeat 32 times Nov 7 11:39:08 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x804f000) | ... //I started program scsi_target Nov 7 11:39:17 tsproxy kernel: ahc0: Someone reset channel A Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): targdone 0xc1504e00 Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): targread Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): targread ccb 0xc1504e00 (0x8055f00) Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc1504e00 Nov 7 11:39:17 tsproxy kernel: cam_debug: targfreeccb descr 0xc127b960 and Nov 7 11:39:17 tsproxy kernel: cam_debug: freeing ccb 0xc1504e00 | Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 | Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): Sending inline ccb 0x10 (0xbfbff810) | Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc1533200 | Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): Changing abort for 0x804f000 to 0xc1503100 | it repeat 32 times Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): sendccb 0xc1533200 | Nov 7 11:39:17 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc1533200 | Nov 7 11:39:19 tsproxy kernel: cam_debug: targfreeccb descr 0xc127b300 and | ... Nov 7 11:39:19 tsproxy kernel: cam_debug: freeing ccb 0xc13f7e00 | Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targread | Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targread ccb 0xc1503100 (0x804f000) |it repeat 32 times Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc1503100 | Nov 7 11:39:19 tsproxy kernel: cam_debug: targfreeccb descr 0xc09fa440 and | ... Nov 7 11:39:19 tsproxy kernel: cam_debug: freeing ccb 0xc157e000 Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc1504900 Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x804ff00) Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targread Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targread ccb 0xc157de00 (0x8055000) | Nov 7 11:39:19 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc157de00 |it repeat 15 times Nov 7 11:39:19 tsproxy kernel: cam_debug: targfreeccb descr 0xc127bb60 and | Nov 7 11:39:19 tsproxy kernel: cam_debug: freeing ccb 0xc157de00 | ... Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 | Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc157dc00 |it repeat 16 times Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x8055d00) | ... Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sending queued ccb 0x933 (0x8056200) Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targstart 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): sendccb 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sending queued ccb 0x933 (0x8056300) ... Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 | Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc1503000 |it repeat 11 times Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x804f800) | ... Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc157d000 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x8055e00) Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targdone 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targread Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targread ccb 0xc12b1800 (0x8056200) Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: cam_debug: targfreeccb descr 0xc127b860 and Nov 7 11:39:20 tsproxy kernel: cam_debug: returning queued ccb 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): targstart 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): sendccb 0xc12b1800 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): getccb 0xc157d100 Nov 7 11:39:20 tsproxy kernel: (targ0:ahc0:0:3:0): Sent ATIO/INOT (0x804f400) Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): targdone 0xc157d100 Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): targread Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): targread ccb 0xc157d100 (0x804f400) Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): targreturnccb 0xc157d100 Nov 7 11:39:25 tsproxy kernel: cam_debug: targfreeccb descr 0xc09fa420 and Nov 7 11:39:25 tsproxy kernel: cam_debug: freeing ccb 0xc157d100 Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): write - uio_resid 4 Nov 7 11:39:25 tsproxy kernel: (targ0:ahc0:0:3:0): Sending queued ccb 0x933 (0x8056200) Nov 7 11:40:55 tsproxy kernel: (targ0:ahc0:0:3:0): Target mode disabled Nov 7 11:40:55 tsproxy kernel: Configuring Initiator Mode Thanks, Vladyka Igor. ----- Original Message ----- From: "Chuck Tuffli" <chuck_tuffli@agilent.com> To: "Technoservice" <technoservice@mail.lviv.ua> Cc: <freebsd-scsi@freebsd.org> Sent: Thursday, November 06, 2003 5:51 PM Subject: Re: problem with target mode > Have you tried adding the CAMDEBUG family of options to your kernel? > It's kind of a big hammer to use, but it would give you the visibility > into what the CAM and XPT are/aren't doing. > > ---chuck > > On Thu, Nov 06, 2003 at 05:32:31AM -0500, Technoservice wrote: > > Hi, > > > > I have two AHA-2940UW cards on two different machines respectively. I > > named them TARGET_COMP and INITIATOR_COMP. They are connected by an > > internal 50-pin SCSI cable. On TARGET_COMP machine is FreeBSD 5.1. > > > > When I triggered the target mode operation on the TARGET_COMP machine, > > then is messages: > > > > "Configuring TARGET Mode > > > > (noperiph:ahc0:0:5:0): Lun now enable for TARGET_COMP mode" > > > > When I rescans the bus from the INITIATOR_COMP machine (when machine is > > starting), it found nothing. On the one way, the INITIATOR_COMP did > > select the target mode controller, but it got no response and returned > > with time out message. On the other way, the TARGET_COMP controller > > didn't capture any select request. On the other way, the INITIATOR_COMP > > did select the TARGET_COMP mode controller, but it got no response and > > returned message: "Improper termination or faulty cable detected. Please > > rectify". In this time on TARGET_COMP machine is message: "Someone reset > > channel A". This is not a cabling or termination problem. (I connected > > HDD to both AHA-2940UW cards and it work properly.) > > > > Help me, please. > > > > > > > > Thanks, > > > > Vladyka Igor > > > > _______________________________________________ > > freebsd-scsi@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > > -- > Chuck Tuffli > Agilent Technologies, Storage Area Networking
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c3a535$7e9c2d40$0100000a>