Skip to contentSkip to conversation

stupid SATA questions

DISCUSSION Kumar Gala 5 participants 7 messages Jun 7, 2005 – Jun 12, 2005

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

These questions were posed to me and I was hoping someone would have better knowledge about the works and usage of SATA then I do. All of these questions are around understanding how important the performance of PIO mode is.

How often would one run in PIO mode? Why would one run in PIO mode?

Thanks

- kumar

#1 lore raw
Quoted 3 lines · Kumar Gala

These questions were posed to me and I was hoping someone would have better knowledge about the works and usage of SATA then I do. All of these questions are around understanding how important the performance of PIO mode is.

How often would one run in PIO mode? Why would one run in PIO mode?

Never. No idea. :)

Unless you have a broken device, or a command that cannot work with DMA (such as IDENTIFY DEVICE), PIO mode is quite pointless. It is emulated under SATA, turned into FIS's on the SATA bus.

Jeff

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since the title of the thread applies...

What command (or whatever) does one use to do things like set the power controls on a libata-controlled SATA drive? hdparm doesn't seem to do anything but complain when I try to use the various features.

hdparm /dev/sda
/dev/sda:
IO_support = 0 (default 16-bit)
...

Does the "16-bit" mean anything or is it just a bogon?

Rob White

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCpxH+MLJWEiVQHi0RAnVfAJ96cbdPbhXe5EAoIoac49MOyKL6dACfbxN6 pVdoURM9Ebxzuo9dC+DWxEE=
=Ys/d
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 10 lines · Robert White

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since the title of the thread applies...

What command (or whatever) does one use to do things like set the power controls on a libata-controlled SATA drive? hdparm doesn't seem to do anything but complain when I try to use the various features.

You need "ATA passthru" (SMART support) in order for hdparm to work.

Quoted 6 lines

hdparm /dev/sda
/dev/sda:
IO_support = 0 (default 16-bit)
...

Does the "16-bit" mean anything or is it just a bogon?

This is hardcoded. I doubt you will ever be able to change this.

Jeff

#4 lore raw

Howdy,

I cannot find the ATA passthru or SMART option in the 2.6.11.10 kernel anywhere near the SCSI or ATA . Is it somewhere obscure, has it been renamed, or am I looking in totally the wrong place? (e.g. is this an option when building hdparm or something?)

Rob.

-----Original Message-----
From: Jeff Garzik [mailto:[email protected]]
Sent: Wednesday, June 08, 2005 10:44 AM

You need "ATA passthru" (SMART support) in order for hdparm to work.

#5 lore raw
Quoted 3 lines · Robert White

I cannot find the ATA passthru or SMART option in the 2.6.11.10 kernel anywhere near the SCSI or ATA . Is it somewhere obscure, has it been renamed, or am I looking in totally the wrong place? (e.g. is this an option when building hdparm or something?)

It requires an additional patch; it has not been mergedsinceit still has a few problems.

Jeff

#6 lore raw
Quoted 7 lines · On 6/11/05, [email protected]…
Quoted 3 lines · Robert White

I cannot find the ATA passthru or SMART option in the 2.6.11.10 kernel anywhere near the SCSI or ATA . Is it somewhere obscure, has it been renamed, or am I looking in totally the wrong place? (e.g. is this an option when building hdparm or something?)

It requires an additional patch; it has not been mergedsinceit still has a few problems.

Can somebody please point me to the latest patches? ATA pass thru should be a good thing to play with
I am waiting for SATA ATAPI support so that finally i can start playing DVDs again under linux.

I have ICH6M chipset with DVD/CD-RW drive on my laptop. So if you need some testing on that i am willing to do that.

Currently i am running on 2.6.11 with JG's "2.6.11-libata-dev1.patch.bz2 " patch and ATAPI tunred on in libata.h, but apparently it still is not in working condition, are there experimental patches which have atleast half working ATAPI in libata?

Or should i just wait for some more time ?.....
Thanks and reagards,

BAIN