libata-pata: how to select PIO mode instead of DMA?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm experimenting with the libata-pata drivers in linux 2.6.19. So far
it looks good, great job Alan! 

We obviously have some drives that due to their damaged nature have
some funny behaviour. One of them is that some drives really don't like
DMA mode anymore and can only be reliably recovered in PIO mode. With
the old IDE drivers that was easy: hdparm -d 0 /dev/hda . Unfortunately
I can't find a way to do the same with libata-pata.

The libata-pata drivers have a set_piomode method that gets called in
libata-core.c:ata_set_mode(), which is only called from the bus probe
function and the exception handler. What is needed to force a drive
into PIO mode from userspace?


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux