From owner-freebsd-scsi Mon Nov 18 20:47:18 2002 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 2A47C37B401; Mon, 18 Nov 2002 20:47:17 -0800 (PST) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD78D43E97; Mon, 18 Nov 2002 20:47:16 -0800 (PST) (envelope-from Scott_Long@adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6+Sun/8.11.6) with ESMTP id gAJ4lGj05768; Mon, 18 Nov 2002 20:47:16 -0800 (PST) Received: from OTCEXC01.otc.adaptec.com (otcexc01.otc.adaptec.com [10.12.1.27]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id UAA24639; Mon, 18 Nov 2002 20:47:15 -0800 (PST) Received: by otcexc01.otc.adaptec.com with Internet Mail Service (5.5.2653.19) id <4TQCXXTH>; Mon, 18 Nov 2002 23:47:14 -0500 Message-ID: <6100BCEB85F8E244959C756C04E0EDD161CB7F@otcexc01.otc.adaptec.com> From: "Long, Scott" To: "'Chuck Tuffli'" , "Long, Scott" Cc: freebsd-scsi@FreeBSD.ORG, "'ken@freebsd.org'" Subject: RE: SIM as loadable module? Date: Mon, 18 Nov 2002 23:47:13 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > On Mon, Nov 18, 2002 at 01:31:14AM -0500, Long, Scott wrote: > > > > What are you setting ccb->ccb_h.status to? Can you share > the body of > > your action method, or at least the XPT_PATH_INQ portions? > > case XPT_PATH_INQ: > { > /* get properties of the SIM driver and HBA */ > struct ccb_pathinq *cpi = &ccb->cpi; > hpFCPortInfo_t fpi; > > cpi->version_num = 1; /* all drivers use version 1 */ > cpi->target_sprt = 0; /* initiator only */ > cpi->hba_eng_cnt = 0; > cpi->bus_id = bus; > cpi->max_target = TACH_MAX_DISKS - 1; > cpi->max_lun = TACH_MAX_LUN - 1; > cpi->hba_misc = PIM_NOBUSRESET; > cpi->hba_inquiry = PI_TAG_ABLE; > > cpi->initiator_id = cpi->max_target + 1; > > fcPortGetInfo(&(ini->tach->root), &fpi); > if (fpi.PortSpeed == 0) { > cpi->base_transfer_speed = 100000; > } else { > cpi->base_transfer_speed = 200000; > } > strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); > strncpy(cpi->hba_vid, "Agilent", HBA_IDLEN); > strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); > cpi->unit_number = unit; > cpi->ccb_h.status = CAM_REQ_CMP; > xpt_done(ccb); > break; > } > Nothing in here is jumping out at me as being wrong, sssuming that ccb->ccb_h.status isn't being changed before you return. Try emailing Ken Merry (ken@freebsd.org) directly to see what he thinks. I'm impressed that Agilent is doing a FreeBSD driver for the Tachyon. Will it be fully open source or half open/half closed? Also, will it do fabrics or just AL? Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message