libata: Add support for SATA attachment to SAS adapters
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | libata: Setup nbytes in ata_sg_init_onedrivers/ | +1 | 2 replies | |
| 2/15 | libata: Add some dummy noop functionsdrivers/ include/ | +4 | 1 reply | |
| 3/15 | libata: ata_scsi_slave_config cleanupdrivers/ | +37 | 0 replies | |
| 4/15 | libata: ata_scsi_queuecmd cleanupdrivers/ | +16 | 3 replies | |
| 5/15 | libata: Add __ata_scsi_ioctldrivers/ include/ | +24 | 3 replies | |
| 6/15 | libata: Stop using host->max_cmd_lendrivers/ drivers/ | +8 | 2 replies | |
| 7/15 | libata: Remove dependence on host_set->dev for SASdrivers/ include/ | +8 | 1 reply | |
| 8/15 | libata: Add host lock to struct ata_portdrivers/ drivers/ include/ | +28 | 0 replies | |
| 9/15 | libata: Add support for SATA attachment to SAS adaptersdrivers/ drivers/ drivers/ +1 more | +165 | 0 replies | |
| 10/15 | ipr: Disk remove path cleanupdrivers/ drivers/ | +4 | 0 replies | |
| 11/15 | ipr: Fixup device type checkdrivers/ drivers/ | +18 | 0 replies | |
| 12/15 | ipr: Simplify status area dumpingdrivers/ | +4 | 0 replies | |
| 13/15 | ipr: printk macro cleanup/removaldrivers/ drivers/ | +14 | 0 replies | |
| 14/15 | ipr: Reset device cleanupdrivers/ | +41 | 0 replies | |
| 15/15 | ipr: Support attaching SATA devicesdrivers/ drivers/ drivers/ +1 more | +642 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/15] libata: Add support for SATA attachment to SAS adapters
This is a repost of the patchset I have been carrying. No real feature changes here, mainly just a refresh against Jeff's #upstream libata git tree. I've been running with these patches for a while now without problems.
The following patchset enhances libata to allow SAS device drivers to utilize libata to talk to SATA devices. It introduces some new APIs which allow libata to be used without allocating a virtual scsi host.
New APIs:
ata_sas_port_alloc - Allocate an ata_portata_sas_port_init - Initialize an ata_port (probe device, etc) ata_sas_port_destroy - Free an ata_port allocated by ata_sas_port_alloc ata_sas_slave_configure - configure scsi device ata_sas_queuecmd - queue a scsi command, similar to ata_scsi_queuecomand
These new APIs can be used either directly by a SAS LLDD or could be used by the SAS transport class.
Possible usage for a SAS LLDD would be:
scsi_scan_host
target_alloc
ata_sas_port_alloc
slave_alloc
ata_sas_port_init
slave_configure
ata_sas_slave_configure
Commands received by the LLDD for SATA devices would call ata_sas_queuecmd.
Device teardown would occur with:
slave_destroy
port_disabletarget_destroy
ata_sas_port_destroy
Signature · 3 lines
Brian King eServer Storage I/O IBM Linux Technology Center