Skip to contentSkip to conversation

is there any Hard-disk shock-protection for 2.6.18 and above?

DISCUSSION Christoph Schmid 5 participants 7 messages Nov 17, 2006 – Nov 30, 2006

lore
Share & tools
lore
#0 lore raw

Hello dear kernel-people,

I have a little question, which i hope is right to post here and does not cause inconveniences.

Well, since about 6 weeks i own a Lenovo Thinkpad X60s which i bought primarily because thinkpads are rumored to be very well supported by linux. Sencondly because as a student i got some rebate on thinkpads ;)

Well, the actual question is the following,
I read about HDAPS on thinkWiki. But there is no known-to-work patch for 2.6.18 and above to enable queue-freezing/harddisk parking. After some googeling and digging in gamne i read that someone said that there are plans for some generic support for HD-parking in the kernel and thus making such patches obsolete.
My quesiotn just is if this is true and if there are any chances that the kernel will support that soonly.

The point is i have to trave quite some distance to my University (about one and half an hour)
And thus doing some of my work in the train or bus. But well... they often shake and wobble, hit the brakes suddenly and some of that stuff which makes me nearly drop my notebook often.
Thats the most point why i would be very pleased to know that my hd doesn't suffer a headcrash in such a circumstance.
As there are quite some notebooks out there which support this nowadays (i know of some IBM/lenovo and HP ones), a generic support for that would be nice and make users of linux on notebooks feel much more comfortable.

So i hope this issue can be adressed soon. but i also know that most of you are very busy and i can not evaluate how difficult such a change would be. However if anyone wants to test some things or more information, i am ready. Just CC me :)

thanks,
Christoph

#1 lore raw

Hi!

Quoted 8 lines

Well, the actual question is the following,
I read about HDAPS on thinkWiki. But there is no known-to-work patch for 2.6.18 and above to enable queue-freezing/harddisk parking. After some googeling and digging in gamne i read that someone said that there are plans for some generic support for HD-parking in the kernel and thus making such patches obsolete.
My quesiotn just is if this is true and if there are any chances that the kernel will support that soonly.

...

Quoted 4 lines

So i hope this issue can be adressed soon. but i also know that most of you are very busy and i can not evaluate how difficult such a change would be. However if anyone wants to test some things or more information, i am ready. Just CC me :)

I'm afraid we need your help with development here. Porting old patch to 2.6.19-rc6 should be easy, and then you can start 'how do I makethis generic' debate.

Does hdaps work for you, btw? It gave all zeros on my x60, iirc.

Signature · 1 line
Thanks for all the (sleeping) penguins.
#2 lore raw
Quoted 2 lines · Pavel Machek

I'm afraid we need your help with development here. Porting old patch to 2.6.19-rc6 should be easy

http://lkml.org/lkml/2006/10/9/84
http://lkml.org/lkml/2006/10/10/275

Quoted 1 line

Does hdaps work for you, btw? It gave all zeros on my x60, iirc.

Yes, vanilla hdaps is broken. It blindly issues commands to the embedded controller without following the protocol or checking the status. The patched version in the tp_smapi package fixes it.

Shem

#3 lore raw

Hi!

Quoted 5 lines
Quoted 1 line

Does hdaps work for you, btw? It gave all zeros on my x60, iirc.

Yes, vanilla hdaps is broken. It blindly issues commands to the embedded controller without following the protocol or checking the status. The patched version in the tp_smapi package fixes it.

Is there a way to extract minimal patch? ...the kind that is trivial enough so that akpm does accepts it...?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw
Quoted 8 lines · Pavel Machek
Quoted 5 lines
Quoted 1 line

Does hdaps work for you, btw? It gave all zeros on my x60, iirc.

Yes, vanilla hdaps is broken. It blindly issues commands to the embedded controller without following the protocol or checking the status. The patched version in the tp_smapi package fixes it.

Is there a way to extract minimal patch? ...the kind that is trivial enough so that akpm does accepts it...?

I can't think of any such trivial fix. My submitted code includes a whole new driver, thinkpad_ec, just to get the (fully documented!) EC protocl right. You could strip a few code paths which hdaps doesn't invoke, but it's hard to see how you can get away with much less except by making unwarranted assumptions about the hardware and its timing characteristics.

Shem

#5 lore raw
In reply to Pavel Machek
Quoted 11 lines · Pavel Machek

Hi!

Quoted 8 lines

Well, the actual question is the following,
I read about HDAPS on thinkWiki. But there is no known-to-work patch for 2.6.18 and above to enable queue-freezing/harddisk parking. After some googeling and digging in gamne i read that someone said that there are plans for some generic support for HD-parking in the kernel and thus making such patches obsolete.
My quesiotn just is if this is true and if there are any chances that the kernel will support that soonly.

...

Quoted 8 lines
Quoted 4 lines

So i hope this issue can be adressed soon. but i also know that most of you are very busy and i can not evaluate how difficult such a change would be. However if anyone wants to test some things or more information, i am ready. Just CC me :)

I'm afraid we need your help with development here. Porting old patch to 2.6.19-rc6 should be easy, and then you can start 'how do I makethis generic' debate.

2.6.19 will finally have the generic block layer commands, so this can be implemented properly.

Signature · 1 line
Jens Axboe
#6 lore raw
Quoted 18 lines · Jens Axboe <jens.axboe <at> oracle.com> writes:
Quoted 16 lines · Pavel Machek

Hi!

Quoted 8 lines

Well, the actual question is the following,
I read about HDAPS on thinkWiki. But there is no known-to-work patch for 2.6.18 and above to enable queue-freezing/harddisk parking. After some googeling and digging in gamne i read that someone said that there are plans for some generic support for HD-parking in the kernel and thus making such patches obsolete.
My quesiotn just is if this is true and if there are any chances that the kernel will support that soonly.

...

Quoted 4 lines

So i hope this issue can be adressed soon. but i also know that most of you are very busy and i can not evaluate how difficult such a change would be. However if anyone wants to test some things or more information, i am ready. Just CC me :)

Quoted 7 lines
Quoted 3 lines

I'm afraid we need your help with development here. Porting old patch to 2.6.19-rc6 should be easy, and then you can start 'how do I makethis generic' debate.

2.6.19 will finally have the generic block layer commands, so this can be implemented properly.

That's good to know. Sounds like we'll be able to have another attempt at getting this functionality upstream..

In the meantime, the current code has been cleaned up and updated to work with 2.6.18. Patches are on the hdaps-devel list.

http://sourceforge.net/mailarchive/forum.php?forum=hdaps-devel (or gmane for an easier view ;)

Regards,
Jon.