Re: RFC: ATA to CAM integration patch

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Sat, 27 Jun 2009 20:22:04 +0300
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
<OCZ-VERTEX 1.30>                  at scbus0 target 0 lun 0 (pass0,ada0)
<Slimtype DVD A  DS8A1P CA11>      at scbus3 target 0 lun 0 (cd0,pass1)

-- 
Alexander Motin

--- /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
_at__at_ -376,7 +376,7 _at__at_ 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;
_at__at_ -456,7 +456,7 _at__at_ 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;
Received on Sat Jun 27 2009 - 15:22:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC