linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'hdparm -C' problems with libata-dev
@ 2005-04-08 14:03 Gerald Hopf
  2005-04-12 14:00 ` John W. Linville
  0 siblings, 1 reply; 3+ messages in thread
From: Gerald Hopf @ 2005-04-08 14:03 UTC (permalink / raw)
  To: linux-ide

Hi everyone,

I've been trying to get the hdparm and hddtemp tools to work with my 
Seagate SATA Drives.

I have 4 Drives connected to an nVidia nForce 3 SATA Controller, and 1 
Drive connected to a Promise SATA 150 TX2.

After some reading, i found out that SMART support for reading the 
harddrive's temperature is not yet in the kernel, so i got the 
libata-dev patch from here: 
http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/2.6.11-libata-dev1.patch.bz2

and patched the 2.6.11.7 kernel with it. (Worked fine, but i'm not sure 
if that was the right patch file? The BK patches are newer, are those 
the "right" ones, or are they only for such a specific BK version of a 
kernel?)

Everything worked fine, and after updating hddtemp to the latest 
v0.3_beta13, i even am able to get temperature readings from the drives.

What's not fully working as expected, however, is hdparm. If I (for 
example) want to check the drive's power status, i get the following:

root # hdparm -C /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde
/dev/sda: \ drive state is:  standby
/dev/sdb: \ drive state is:  standby
/dev/sdc: \ drive state is:  standby
/dev/sdd: \ drive state is:  standby
/dev/sde: \ drive state is:  standby

The drives are of course, NOT in standby, but are in the state 
"active/idle".

When setting the standby parameter for a drive, everything seems to work 
normally.

root # hdparm -S 241 /dev/sda
/dev/sda:  setting standby to 241 (30 minutes)

I wasn't able to check that this really works (because of missing hdparm 
-C) but i think it acually does. At least hdparm -y is able to standby a 
drive.

I'm using hdparm v5.9, which is IMHO the most recent version.
Is there anything i can do to make this ('hdparm -C') work? Is this a 
libata bug or missing feature? A Seagate Firmware bug? A hdparm problem? 
Or just not possible with SATA Drives?

I'd gratefully appreciate any help/comments ;-)

Gerald


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

* Re: 'hdparm -C' problems with libata-dev
  2005-04-08 14:03 'hdparm -C' problems with libata-dev Gerald Hopf
@ 2005-04-12 14:00 ` John W. Linville
  2005-04-12 20:55   ` Greg Freemyer
  0 siblings, 1 reply; 3+ messages in thread
From: John W. Linville @ 2005-04-12 14:00 UTC (permalink / raw)
  To: Gerald Hopf; +Cc: linux-ide

On Fri, Apr 08, 2005 at 04:03:21PM +0200, Gerald Hopf wrote:

> Is there anything i can do to make this ('hdparm -C') work? Is this a 
> libata bug or missing feature? A Seagate Firmware bug? A hdparm problem? 
> Or just not possible with SATA Drives?

Sounds like a bug w/ my implementation of HDIO_DRIVE_CMD for libata.
However, I have yet to take the opportunity to track it down.  Plus,
I'll be taking a little vacation over the coming weekend, so I likely
won't get to this until sometime next week... :-(

Until then, please feel free to experiment more w/ hdparm to see if
there are any other problems w/ hdparm on SATA.  Please copy me on
reports of any such problems (or send them to me directly).  Thanks!

John
-- 
John W. Linville
linville@tuxdriver.com

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

* Re: 'hdparm -C' problems with libata-dev
  2005-04-12 14:00 ` John W. Linville
@ 2005-04-12 20:55   ` Greg Freemyer
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Freemyer @ 2005-04-12 20:55 UTC (permalink / raw)
  To: linux-ide

On Apr 12, 2005 10:00 AM, John W. Linville <linville@tuxdriver.com> wrote:
> On Fri, Apr 08, 2005 at 04:03:21PM +0200, Gerald Hopf wrote:
> 
> > Is there anything i can do to make this ('hdparm -C') work? Is this a
> > libata bug or missing feature? A Seagate Firmware bug? A hdparm problem?
> > Or just not possible with SATA Drives?
> 
> Sounds like a bug w/ my implementation of HDIO_DRIVE_CMD for libata.
> However, I have yet to take the opportunity to track it down.  Plus,
> I'll be taking a little vacation over the coming weekend, so I likely
> won't get to this until sometime next week... :-(
> 
> Until then, please feel free to experiment more w/ hdparm to see if
> there are any other problems w/ hdparm on SATA.  Please copy me on
> reports of any such problems (or send them to me directly).  Thanks!
> 
> John
> --
> John W. Linville
> linville@tuxdriver.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

I reported that "hdparm -r" was not working with PATA drives a couple
months ago.  I got no feedback, but if someone can test it with SATA I
would be curious if it works.

Greg
-- 
Greg Freemyer
The Norcross Group
Forensics for the 21st Century

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

end of thread, other threads:[~2005-04-12 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08 14:03 'hdparm -C' problems with libata-dev Gerald Hopf
2005-04-12 14:00 ` John W. Linville
2005-04-12 20:55   ` Greg Freemyer

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).