linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata-pata: how to select PIO mode instead of DMA?
@ 2006-12-20 12:23 Erik Mouw
  0 siblings, 0 replies; only message in thread
From: Erik Mouw @ 2006-12-20 12:23 UTC (permalink / raw)
  To: linux-ide; +Cc: alan

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-20 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-20 12:23 libata-pata: how to select PIO mode instead of DMA? Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).