2.6.x-rc libata updates
PATCH 1/1 2.6.x-rc libata updates
Andrew/Linus, please apply.
Linus,
Note this conflicts with the libata iomap patch, so if you continue to play with that, you'll want to clone a tree before you pull.
Please do a
bk pull bk://gkernel.bkbits.net/libata-2.6
This will update the following files:
drivers/scsi/ata_piix.c | 24 +-- drivers/scsi/libata-core.c | 308 ++++++++++++++++++++++++++------------------ drivers/scsi/sata_nv.c | 66 +++------ drivers/scsi/sata_promise.c | 8 - drivers/scsi/sata_sil.c | 12 - drivers/scsi/sata_sis.c | 58 +++----- drivers/scsi/sata_svw.c | 74 ++++++++++ drivers/scsi/sata_sx4.c | 8 - drivers/scsi/sata_via.c | 53 ++----- drivers/scsi/sata_vsc.c | 8 - include/linux/libata.h | 22 +-- 11 files changed, 361 insertions(+), 280 deletions(-)
through these ChangeSets:
<[email protected]> (04/09/14 1.1867.6.5)
[libata sata_svw] race condition fix, new device support
* address race condition WRT order of DMA-start and ATA command issue (see code comment for more details)
* Add support for Frodo 4/8
<[email protected]> (04/09/14 1.1867.6.4)
[libata] minor comment updates, preparing for iomap merge
<[email protected]> (04/09/13 1.1867.6.3)
[libata] consolidate legacy/native mode init code into helpers
Eliminates duplicate code in sata_nv, sata_sis, and sata_via.
<[email protected]> (04/09/13 1.1867.6.2)
[libata] remove distinction between MMIO/PIO helper functions
Prepare for use of new generic iomap API.
<[email protected]> (04/09/13 1.1867.6.1)
[libata sata_nv] sync with 2.4
Driver should be using LIBATA_MAX_PRD not ATA_MAX_PRD, due to iommu layer splitting.
drivers/scsi/ata_piix.c +12 -12
@@ -125,15 +125,15 @@ .set_piomode = piix_set_piomode, .set_dmamode = piix_set_dmamode, - .tf_load = ata_tf_load_pio, - .tf_read = ata_tf_read_pio, - .check_status = ata_check_status_pio, - .exec_command = ata_exec_command_pio, + .tf_load = ata_tf_load, + .tf_read = ata_tf_read, + .check_status = ata_check_status, + .exec_command = ata_exec_command, .phy_reset = piix_pata_phy_reset, - .bmdma_setup = ata_bmdma_setup_pio, - .bmdma_start = ata_bmdma_start_pio, + .bmdma_setup = ata_bmdma_setup, + .bmdma_start = ata_bmdma_start, .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot,
@@ -149,15 +149,15 @@static struct ata_port_operations piix_sata_ops = { .port_disable = ata_port_disable, - .tf_load = ata_tf_load_pio, - .tf_read = ata_tf_read_pio, - .check_status = ata_check_status_pio, - .exec_command = ata_exec_command_pio, + .tf_load = ata_tf_load, + .tf_read = ata_tf_read, + .check_status = ata_check_status, + .exec_command = ata_exec_command, .phy_reset = piix_sata_phy_reset, - .bmdma_setup = ata_bmdma_setup_pio, - .bmdma_start = ata_bmdma_start_pio, + .bmdma_setup = ata_bmdma_setup, + .bmdma_start = ata_bmdma_start, .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot,
drivers/scsi/libata-core.c +188 -120
560 lines not on this page · raw message
drivers/scsi/sata_nv.c +22 -44
109 lines not on this page · raw message
drivers/scsi/sata_promise.c +4 -4
@@ -107,8 +107,8 @@static struct ata_port_operations pdc_sata_ops = { .port_disable = ata_port_disable, .tf_load = pdc_tf_load_mmio, - .tf_read = ata_tf_read_mmio, - .check_status = ata_check_status_mmio, + .tf_read = ata_tf_read, + .check_status = ata_check_status, .exec_command = pdc_exec_command_mmio, .phy_reset = pdc_phy_reset, .qc_prep = pdc_qc_prep,
@@ -468,7 +468,7 @@ {WARN_ON (tf->protocol ==ATA_PROT_DMA || tf->protocol ==ATA_PROT_NODATA ); -ata_tf_load_mmio (ap, tf); +ata_tf_load (ap, tf); }
@@ -476,7 +476,7 @@ {WARN_ON (tf->protocol ==ATA_PROT_DMA || tf->protocol ==ATA_PROT_NODATA ); -ata_exec_command_mmio (ap, tf); +ata_exec_command (ap, tf); }
drivers/scsi/sata_sil.c +6 -6
@@ -125,14 +125,14 @@static struct ata_port_operations sil_ops = { .port_disable = ata_port_disable, .dev_config = sil_dev_config, - .tf_load = ata_tf_load_mmio, - .tf_read = ata_tf_read_mmio, - .check_status = ata_check_status_mmio, - .exec_command = ata_exec_command_mmio, + .tf_load = ata_tf_load, + .tf_read = ata_tf_read, + .check_status = ata_check_status, + .exec_command = ata_exec_command, .phy_reset = sata_phy_reset, .post_set_mode = sil_post_set_mode, - .bmdma_setup = ata_bmdma_setup_mmio, - .bmdma_start = ata_bmdma_start_mmio, + .bmdma_setup = ata_bmdma_setup, + .bmdma_start = ata_bmdma_start, .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .eng_timeout = ata_eng_timeout,
drivers/scsi/sata_sis.c +21 -37
98 lines not on this page · raw message
drivers/scsi/sata_svw.c +71 -3
94 lines not on this page · raw message
drivers/scsi/sata_sx4.c +4 -4
@@ -193,8 +193,8 @@static struct ata_port_operations pdc_20621_ops = { .port_disable = ata_port_disable, .tf_load = pdc_tf_load_mmio, - .tf_read = ata_tf_read_mmio, - .check_status = ata_check_status_mmio, + .tf_read = ata_tf_read, + .check_status = ata_check_status, .exec_command = pdc_exec_command_mmio, .phy_reset = pdc_20621_phy_reset, .qc_prep = pdc20621_qc_prep,
@@ -887,7 +887,7 @@ {WARN_ON (tf->protocol ==ATA_PROT_DMA || tf->protocol ==ATA_PROT_NODATA ); -ata_tf_load_mmio (ap, tf); +ata_tf_load (ap, tf); }
@@ -895,7 +895,7 @@ {WARN_ON (tf->protocol ==ATA_PROT_DMA || tf->protocol ==ATA_PROT_NODATA ); -ata_exec_command_mmio (ap, tf); +ata_exec_command (ap, tf); }
drivers/scsi/sata_via.c +19 -34
88 lines not on this page · raw message
drivers/scsi/sata_vsc.c +4 -4
@@ -211,11 +211,11 @@ .port_disable = ata_port_disable, .tf_load = vsc_sata_tf_load, .tf_read = vsc_sata_tf_read, - .exec_command = ata_exec_command_mmio, - .check_status = ata_check_status_mmio, + .exec_command = ata_exec_command, + .check_status = ata_check_status, .phy_reset = sata_phy_reset, - .bmdma_setup = ata_bmdma_setup_mmio, - .bmdma_start = ata_bmdma_start_mmio, + .bmdma_setup = ata_bmdma_setup, + .bmdma_start = ata_bmdma_start, .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .eng_timeout = ata_eng_timeout,
include/linux/libata.h +10 -12
@@ -379,19 +379,19 @@/* * Default driver ops implementations */ -extern void ata_tf_load_pio (struct ata_port *ap,struct ata_taskfile *tf); -extern void ata_tf_load_mmio (struct ata_port *ap,struct ata_taskfile *tf); -extern void ata_tf_read_pio (struct ata_port *ap,struct ata_taskfile *tf); -extern void ata_tf_read_mmio (struct ata_port *ap,struct ata_taskfile *tf); +extern void ata_tf_load (struct ata_port *ap,struct ata_taskfile *tf); +extern void ata_tf_read (struct ata_port *ap,struct ata_taskfile *tf);extern void ata_tf_to_fis (struct ata_taskfile *tf,u8 *fis,u8 pmp);extern void ata_tf_from_fis (u8 *fis,struct ata_taskfile *tf); -extern u8 ata_check_status_pio (struct ata_port *ap); -extern u8 ata_check_status_mmio (struct ata_port *ap); -extern void ata_exec_command_pio (struct ata_port *ap,struct ata_taskfile *tf); -extern void ata_exec_command_mmio (struct ata_port *ap,struct ata_taskfile *tf); +extern u8 ata_check_status (struct ata_port *ap); +extern void ata_exec_command (struct ata_port *ap,struct ata_taskfile *tf);extern int ata_port_start (struct ata_port *ap);extern void ata_port_stop (struct ata_port *ap);extern irqreturn_t ata_interrupt (int irq,void *dev_instance,struct pt_regs *regs); +extern struct ata_probe_ent * +ata_pci_init_native_mode (struct pci_dev *pdev,struct ata_port_info **port); +extern struct ata_probe_ent * +ata_pci_init_legacy_mode (struct pci_dev *pdev,struct ata_port_info **port);extern void ata_qc_prep (struct ata_queued_cmd *qc);extern int ata_qc_issue_prot (struct ata_queued_cmd *qc); extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf,
@@ -400,10 +400,8 @@ unsigned int n_elem);extern void ata_dev_id_string (struct ata_device *dev,unsigned char *s,unsigned int ofs,unsigned int len); -extern void ata_bmdma_setup_mmio (struct ata_queued_cmd *qc); -extern void ata_bmdma_start_mmio (struct ata_queued_cmd *qc); -extern void ata_bmdma_setup_pio (struct ata_queued_cmd *qc); -extern void ata_bmdma_start_pio (struct ata_queued_cmd *qc); +extern void ata_bmdma_setup (struct ata_queued_cmd *qc); +extern void ata_bmdma_start (struct ata_queued_cmd *qc);extern void ata_bmdma_irq_clear (struct ata_port *ap);extern int pci_test_config_bits (struct pci_dev *pdev,struct pci_bits *bits);extern void ata_qc_complete (struct ata_queued_cmd *qc,u8 drv_stat);