Skip to contentSkip to conversation

libata fixes, and release notes

PATCH New Jeff Garzik 1 participant 1 message Mar 1, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata fixes, and release notes

RELEASE NOTES:

There remains an outstanding CD/DVD burning regression, which is IMO a release blocker. A fix exists[1], but it is still being discussed[2].

A data corruptor fix on ATI SB600 (AHCI clone) also exists[3], and is waiting on confirmation/feedback from AMD, but the existing workaround (AHCI_HFLAG_32BIT_ONLY) seems to work _most_ of the time, if only by luck.

[1] http://marc.info/?l=linux-ide&m=120418865825486&w=2
[2] http://marc.info/?t=120418867400002&r=1&w=2
[3] http://marc.info/?l=linux-ide&m=120423157501944&w=2

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus

to receive the following updates:

 drivers/ata/libata-scsi.c |   10 ++++++
 drivers/ata/sata_svw.c    |   77 ++++++++++++++++++++++++++++++++++++--------
 2 files changed, 73 insertions(+), 14 deletions(-)

Anantha Subramanyam (1):
sata_svw: Add support for HT1100 SATA controller

Jeff Garzik (1):
[libata] wrap kmap_atomic(KM_IRQ0) with local_irq_save/restore()

drivers/ata/libata-scsi.c +10 -0
index 0562b0a..7b1f1ee 100644
@@ -1694,12 +1694,17 @@ void ata_scsi_rbuf_fill(struct ata_scsi_args *args,
 	u8 *rbuf;
 	unsigned int buflen, rc;
 	struct scsi_cmnd *cmd = args->cmd;
+	unsigned long flags;
+
+	local_irq_save(flags);
 
 	buflen = ata_scsi_rbuf_get(cmd, &rbuf);
 	memset(rbuf, 0, buflen);
 	rc = actor(args, rbuf, buflen);
 	ata_scsi_rbuf_put(cmd, rbuf);
 
+	local_irq_restore(flags);
+
 	if (rc == 0)
 		cmd->result = SAM_STAT_GOOD;
 	args->done(cmd);
@@ -2473,6 +2478,9 @@ static void atapi_qc_complete(struct ata_queued_cmd *qc)
 		if ((scsicmd[0] == INQUIRY) && ((scsicmd[1] & 0x03) == 0)) {
 			u8 *buf = NULL;
 			unsigned int buflen;
+			unsigned long flags;
+
+			local_irq_save(flags);
 
 			buflen = ata_scsi_rbuf_get(cmd, &buf);
 
@@ -2490,6 +2498,8 @@ static void atapi_qc_complete(struct ata_queued_cmd *qc)
 			}
 
 			ata_scsi_rbuf_put(cmd, buf);
+
+			local_irq_restore(flags);
 		}
 
 		cmd->result = SAM_STAT_GOOD;
drivers/ata/sata_svw.c +63 -14

154 lines not on this page · raw message