From owner-freebsd-current@FreeBSD.ORG Sat Jun 27 17:22:13 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 948781065670 for ; Sat, 27 Jun 2009 17:22:13 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4A58FC18 for ; Sat, 27 Jun 2009 17:22:12 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 246987856; Sat, 27 Jun 2009 20:22:09 +0300 Message-ID: <4A46553C.4000504@FreeBSD.org> Date: Sat, 27 Jun 2009 20:22:04 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: gary.jennejohn@freenet.de References: <4A4517BE.9040504@FreeBSD.org> <20090627164406.155f002d@ernst.jennejohn.org> In-Reply-To: <20090627164406.155f002d@ernst.jennejohn.org> Content-Type: multipart/mixed; boundary="------------050304090601030407060503" Cc: FreeBSD-Current Subject: Re: RFC: ATA to CAM integration patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2009 17:22:13 -0000 This is a multi-part message in MIME format. --------------050304090601030407060503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Gary Jennejohn wrote: > - remove atapicam from you kernel config file, otherwise the kernel > pancis in xpt (at least, mine did) Thank you for report. Problem is that atapicam provides fake emulated SPI transport, but not a native ATA in terms of updated CAM. Small attached patch fixes this for me: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,ada0) at scbus3 target 0 lun 0 (cd0,pass1) -- Alexander Motin --------------050304090601030407060503 Content-Type: text/plain; name="atapicam.port.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="atapicam.port.patch" --- /usr/src/sys/dev/ata/atapi-cam.c.prev 2009-05-26 09:28:25.000000000 +0300 +++ atapi-cam.c 2009-06-27 20:04:17.000000000 +0300 @@ -376,7 +376,7 @@ atapi_action(struct cam_sim *sim, union cpi->unit_number = cam_sim_unit(sim); cpi->bus_id = cam_sim_bus(sim); cpi->base_transfer_speed = 3300; - cpi->transport = XPORT_ATA; + cpi->transport = XPORT_SPI; cpi->transport_version = 2; cpi->protocol = PROTO_SCSI; cpi->protocol_version = SCSI_REV_2; @@ -456,7 +456,7 @@ atapi_action(struct cam_sim *sim, union struct ccb_trans_settings *cts = &ccb->cts; cts->protocol = PROTO_SCSI; cts->protocol_version = SCSI_REV_2; - cts->transport = XPORT_ATA; + cts->transport = XPORT_SPI; cts->transport_version = XPORT_VERSION_UNSPECIFIED; cts->proto_specific.valid = 0; cts->xport_specific.valid = 0; --------------050304090601030407060503--