public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Quick question about libata and hdparm
@ 2009-04-19  0:22 Rogério Brito
  2009-04-19  6:31 ` Robert Hancock
  2009-04-19 12:33 ` Mark Lord
  0 siblings, 2 replies; 30+ messages in thread
From: Rogério Brito @ 2009-04-19  0:22 UTC (permalink / raw)
  To: linux-kernel

Dear people,

I have one small question regarding the libata drivers and the  
interaction with hdparm.

I am presently using PATA/IDE devices only, but some distributions  
provide kernels with libata by default (and some defconfigs also use  
libata even for IDE devices).

Using the usual IDE drivers, I can use/query various parameters with  
hdparm, like, for instance, the -m option, the -c option or even  
disabling DMA. With the libata drivers, this is all that I get:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lutz:~# hdparm /dev/sda

/dev/sda:
  IO_support    =  0 (default)
  readonly      =  0 (off)
  readahead     = 256 (on)
  geometry      = 48641/255/63, sectors = 781420655, start = 0
lutz:~# hdparm -c 1 /dev/sda

/dev/sda:
  setting 32-bit IO_support flag to 1
  HDIO_SET_32BIT failed: Invalid argument
  IO_support    =  0 (default)
lutz:~# hdparm -m 16 /dev/sda

/dev/sda:
  setting multcount to 16
  HDIO_SET_MULTCOUNT failed: Inappropriate ioctl for device
  HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
lutz:~#
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Am I doing something incorrectly? I would like at least to understand  
what is happening and, if possible, to fine-tune some settings.

If necessary, please let me know and I will provide any further  
information that may be needed.


Thanks in advance, Rogério Brito.


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2009-05-11 18:35 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19  0:22 Quick question about libata and hdparm Rogério Brito
2009-04-19  6:31 ` Robert Hancock
2009-04-19 12:33 ` Mark Lord
2009-04-19 12:44   ` Michael Tokarev
2009-04-19 12:57     ` Jeff Garzik
2009-04-19 13:06       ` Michael Tokarev
2009-04-19 20:11       ` Rogério Brito
2009-04-19 21:27         ` Jeff Garzik
2009-04-20 17:35           ` Rogério Brito
2009-04-20 18:40             ` Alan Cox
2009-04-20 20:41               ` Rogério Brito
2009-04-20 21:16                 ` Alan Cox
2009-04-20 20:31             ` Bartlomiej Zolnierkiewicz
2009-04-20 20:45               ` Rogério Brito
2009-04-20 21:19               ` Alan Cox
2009-04-20 22:57                 ` Rogério Brito
2009-04-21  5:32                 ` Rogério Brito
2009-04-21 12:59                   ` Bartlomiej Zolnierkiewicz
2009-04-23  5:56                     ` Rogério Brito
2009-04-23 21:31                       ` Bartlomiej Zolnierkiewicz
2009-04-24  3:00                         ` Rogério Brito
2009-05-01  9:18                           ` Rogério Brito
2009-05-01 10:31                             ` Alan Cox
2009-05-01 11:50                               ` Rogério Brito
2009-05-01 13:16                                 ` Alan Cox
2009-05-01 14:19                                 ` Rogério Brito
2009-05-01 11:20                             ` Bartlomiej Zolnierkiewicz
2009-05-11 18:34               ` Jeff Garzik
2009-04-19 20:03   ` Rogério Brito
2009-04-19 23:41     ` Mark Lord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox