]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Add a drivers/ide style DMA disable
authorAlan Cox <alan@redhat.com>
Tue, 2 Oct 2007 16:38:26 +0000 (12:38 -0400)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:45 +0000 (14:55 -0400)
commit152215a5cd83fa42104c8382516f1ccb4d2e30bf
tree1595a67c8b09f9222c4d59f466acca681a56a02c
parent96f2a6b180d669e58f47f610168b62af93f9d77e
libata: Add a drivers/ide style DMA disable

This is useful when debugging, handling problem systems, or for
distributions just to get the system installed so it can be sorted
out later.

This is a bit smarter than the old IDE one and lets you do

libata.dma=0 Disable all PATA DMA like old IDE
libata.dma=1 Disk DMA only
libata.dma=2 ATAPI DMA only
libata.dma=4 CF DMA only

(or combinations thereof - 0,1,3 being the useful ones I suspect)

(I've split CF as it seems to be a seperate case of pain and suffering
different to the others and caused by assorted PIO wired adapters etc)

Signed-off-by: Alan Cox <alan@redhat.com>
[edited to work on SATA too, changing name from 'pata_dma' to 'dma']
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
include/linux/libata.h