Tejun Heo b9a4197e26 libata: use PIO for non-16 byte aligned ATAPI commands
The IDE driver used DMA for ATAPI commands if READ/WRITE command is
multiple of sector size or sg command is multiple of 16 bytes.  For
libata, READ/WRITE sector alignment is guaranteed by the high level
driver (sr), so we only have to worry about the 16 byte alignment.

This patch makes ata_check_atapi_dma() always request PIO for all data
transfer commands which are not multiple of 16 bytes.

The following reports are related to this problem.

http://bugzilla.kernel.org/show_bug.cgi?id=8605		(confirmed)
http://thread.gmane.org/gmane.linux.kernel/476620	(confirmed)
https://bugzilla.novell.com/show_bug.cgi?id=229260	(probably)

Albert first pointed out the difference between IDE and libata.  Kudos
to him.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-06-27 02:50:08 -04:00
..
2007-06-20 19:56:21 -04:00
2007-05-21 20:26:38 -04:00
2007-05-17 20:57:38 -04:00
2007-05-11 18:09:18 -04:00
2007-05-25 17:29:59 -04:00
2007-05-11 18:09:18 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:14:23 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00
2007-05-21 20:26:38 -04:00
2007-06-27 02:44:18 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00
2007-05-11 18:09:18 -04:00
2007-05-11 18:09:18 -04:00
2007-05-11 18:09:18 -04:00
2007-05-11 18:09:18 -04:00
2007-05-11 18:09:18 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00
2007-06-04 16:48:34 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-24 23:40:15 -04:00
2007-05-21 20:26:38 -04:00
2006-08-10 07:31:37 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:14:23 -04:00
2007-05-25 04:18:42 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-21 20:26:38 -04:00
2007-05-11 18:09:18 -04:00