From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 7 05:46:47 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 8BB8716A4CE for ; Fri, 7 Nov 2003 05:46:47 -0800 (PST) Received: from omega.uar.net (Omega.UAR.Net [194.44.214.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AA4643FE9 for ; Fri, 7 Nov 2003 05:46:45 -0800 (PST) (envelope-from technoservice@mail.lviv.ua) Received: from localhost (localhost [127.0.0.1]) by omega.uar.net (8.12.10/8.12.9) with ESMTP id hA7DkUen089944; Fri, 7 Nov 2003 15:46:30 +0200 (EET) Received: from omega.uar.net ([127.0.0.1]) by localhost (omega.uar.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 79145-03-4; Fri, 7 Nov 2003 15:46:18 +0200 (EET) Received: from server ([194.44.243.240]) by omega.uar.net (8.12.10/8.12.9) with SMTP id hA7DjGAf088028; Fri, 7 Nov 2003 15:45:18 +0200 (EET) Message-ID: <000b01c3a535$7e9c2d40$0100000a@server> From: "Technoservice" To: "Chuck Tuffli" References: <000b01c3a451$7f1bf230$0100000a@server> <20031106155149.GA90020@cre85086tuf.rose.agilent.com> Date: Fri, 7 Nov 2003 15:44:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 cc: freebsd-scsi@freebsd.org Subject: Re: problem with 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, 07 Nov 2003 13:46:47 -0000 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: 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" To: "Technoservice" Cc: 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