Skip to contentSkip to conversation

What's in libata-dev.git?

DISCUSSION Jeff Garzik 2 participants 2 messages Sep 11, 2009 – Sep 13, 2009 libata

lore
Share & tools
lore
#0 lore raw

This is a summary of the changes current queued on the #upstream branch of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git

These will be pushed to Linus in the next day or so, when merges start flowing.

linux-ide hackers, speak up is something is obviously wrong or missing.

The only outstanding patch is Robert Hancock's enhance-command-parsing
patch: I'm still on the fence about leaving the huge switch table, or choosing a better data structure.

Alan Cox (1):
[libata] Add pata_rdc driver for RDC ATA devices

Ashish Kalra (1):
sata_fsl: Defer non-ncq commands when ncq commands active

Jeff Garzik (2):
[libata] EH: freeze port before aborting commands [libata] sata_sil: disable DMA engine in sil_freeze()

Joe Perches (1):
drivers/ata: Remove unnecessary semicolons

Julia Lawall (1):
drivers/ata: use resource_size

Marcin Slusarz (1):
pata_rz1000: use printk_once

Martin K. Petersen (1):
libata: Delegate nonrot flag setting to SCSI

Matthew Garrett (1):
libata: Export AHCI capabilities

Otavio Salvador (1):
pata_cs5535: add pci id for AMD based CS5535 controllers

Robert Hancock (2):
libata: add command name parsing for error output
sata_sil24: always set protocol override for non-ATAPI data commands

Shane Huang (3):
libata: add SATA PMP revision information for spec 1.2
ahci: Add AMD SB900 SATA/IDE controller device IDs
ahci: kill @force_restart and refine CLO for ahci_kick_engine()

Shaohua Li (1):
[libata] add DMA setup FIS auto-activate feature

Tejun Heo (9):
libata: clear eh_info on reset completion
libata: remove spindown skipping and warning
sata_sis: convert to slave_link
libata: unbreak TPM filtering by reorganizing ata_scsi_pass_thru()
dmi: fix date handling in dmi_get_year()
dmi: extend dmi_get_year() to dmi_get_date()
ahci: make ahci_asus_m2a_vm_32bit_only() quirk more generic
ahci: Gigabyte GA-MA69VM-S2 can't do 64bit DMA
libata: fix off-by-one error in ata_tf_read_block()

 Documentation/feature-removal-schedule.txt |   18 -
 arch/x86/pci/direct.c                      |    5 
 drivers/acpi/blacklist.c                   |    5 
 drivers/ata/Kconfig                        |   21 +
 drivers/ata/Makefile                       |    1 
 drivers/ata/ahci.c                         |  143 +++++++---
 drivers/ata/libata-acpi.c                  |    7 
 drivers/ata/libata-core.c                  |   44 ++-
 drivers/ata/libata-eh.c                    |  146 ++++++++++
 drivers/ata/libata-pmp.c                   |    2 
 drivers/ata/libata-scsi.c                  |  159 +++--------
 drivers/ata/libata.h                       |    1 
 drivers/ata/pata_atiixp.c                  |    1 
 drivers/ata/pata_cs5535.c                  |    3 
 drivers/ata/pata_octeon_cf.c               |    4 
 drivers/ata/pata_platform.c                |    8 
 drivers/ata/pata_rb532_cf.c                |    2 
 drivers/ata/pata_rdc.c                     |  400 +++++++++++++++++++++++++++++
 drivers/ata/pata_rz1000.c                  |    4 
 drivers/ata/sata_fsl.c                     |    1 
 drivers/ata/sata_inic162x.c                |    2 
 drivers/ata/sata_mv.c                      |    2 
 drivers/ata/sata_sil.c                     |   13 
 drivers/ata/sata_sil24.c                   |   11 
 drivers/ata/sata_sis.c                     |   75 +----
 drivers/firmware/dmi_scan.c                |   77 ++++-
 drivers/ide/atiixp.c                       |    1 
 drivers/pci/quirks.c                       |    4 
 include/linux/ata.h                        |   36 ++
 include/linux/dmi.h                        |   13 
 include/linux/libata.h                     |    3 
 include/linux/pci_ids.h                    |    4 
 32 files changed, 946 insertions(+), 270 deletions(-)
#1 lore raw
Quoted 4 lines · Jeff Garzik

This is a summary of the changes current queued on the #upstream branch of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git

Quoted 8 lines

These will be pushed to Linus in the next day or so, when merges start flowing.

linux-ide hackers, speak up is something is obviously wrong or missing.

The only outstanding patch is Robert Hancock's enhance-command-parsing
patch: I'm still on the fence about leaving the huge switch table, or choosing a better data structure.

I just tried implementing some table-based code to achieve something like what the patch I posted was doing. The combined code+data size was only marginally smaller (about a 3K increase versus 4K with the switch version), the function was about the same number of lines, it would be slower (scanning through a table rather than the compiler-generated jump table, though it's not like it's used on a hot path anyway) and it's also less flexible. Particularly with some weird commands (like the way they seem to be heading with the DATA SET MANAGEMENT command where the feature register is being used as a bitmask instead of a simple command code), it would be a lot simpler to implement that in a switch statement rather than having to modify an entire table structure to accommodate it.

So essentially my advocated patch is unchanged after that experiment. It may not be the prettiest thing in the world, but I'm not sure it really gets much better..