Re: [PATCH] scsi_execute_async() should add to the tail of the queue

2006-12-19 Thread Jon Escombe
Jens Axboe wrote: > On Tue, Dec 19 2006, Arjan van de Ven wrote: >> On Tue, 2006-12-19 at 10:35 +0200, Dan Aloni wrote: >>> Hello, >>> >>> scsi_execute_async() has replaced scsi_do_req() a few versions ago, >>> but it also incurred a change of behavior. I noticed that over-queuing >>> a SCSI devic

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

2006-11-26 Thread Jon Escombe
Jens Axboe oracle.com> writes: > > On Tue, Nov 21 2006, Pavel Machek wrote: > > Hi! > > > > > 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

Re: [Hdaps-devel] Re: HDAPS, Need to park the head for real

2005-08-25 Thread Jon Escombe
Alan Cox wrote: @@ -1661,6 +1671,9 @@ where = ELEVATOR_INSERT_FRONT; rq->flags |= REQ_PREEMPT; } + if (action == ide_next) + where = ELEVATOR_INSERT_FRONT; + __elv_add_request(drive->queue, rq, where, 0); ide_do_request(h

Re: [Hdaps-devel] Re: HDAPS, Need to park the head for real

2005-08-24 Thread Jon Escombe
Jens Axboe wrote: Ok, I'll give you some hints to get you started... What you really want to do, is: - Insert a park request at the front of the queue - On completion callback on that request, freeze the block queue and schedule it for unfreeze after a given time Am attaching a first att

Re: [patch] libata passthrough - return register data from HDIO_* commands

2005-08-19 Thread Jon Escombe
John W. Linville wrote: On Fri, Aug 19, 2005 at 03:06:27PM -0400, John W. Linville wrote: On Mon, Aug 15, 2005 at 11:11:02PM +0100, Jon Escombe wrote: Here is a first attempt at a patch to return register data from the libata passthrough HDIO ioctl handlers, I needed this as the ATA

Re: [Hdaps-devel] Re: HDAPS, Need to park the head for real

2005-08-19 Thread Jon Escombe
Please make it "echo 1 > frozen", then userspace can do "echo 0 > frozen" after five seconds. What if the code to do "echo 0 > frozen" is swapped out to disk? ;) Emergency head parker needs to be pagelocked for other reasons. You do not want to page it from disk while your note

Re: [Hdaps-devel] Re: HDAPS, Need to park the head for real

2005-08-16 Thread Jon Escombe
On Tue, Aug 16 2005, Alejandro Bonilla Beeche wrote: If I were in your position, I would just implement this for ide (pata, not sata) right now, since that is what you need to support (or do some of these notebooks come with sata?). So it follows that you add an ide Some notebooks are co

Re: [patch] libata passthrough - return register data from HDIO_* commands

2005-08-15 Thread Jon Escombe
Here is a first attempt at a patch to return register data from the libata passthrough HDIO ioctl handlers, I needed this as the ATA 'unload immediate' command returns the success in the lbal register. This patch applies on top of 2.6.12 and Jeffs 2.6.12-git4-passthru1.patch. (Apologies, but

[patch] libata passthrough - return register data from HDIO_* commands

2005-08-13 Thread Jon Escombe
Here is a first attempt at a patch to return register data from the libata passthrough HDIO ioctl handlers, I needed this as the ATA 'unload immediate' command returns the success in the lbal register. This patch applies on top of 2.6.12 and Jeffs 2.6.12-git4-passthru1.patch. (Apologies, but

IBM HDAPS - how to freeze i/o?

2005-08-11 Thread Jon Escombe
The HDAPS (IBM ThinkPad Hard Disk Active Protection System) project currently has working code to read the accelerometer data, and to park the hard disk. However, we're going to need a way to keep the disk idle following the park command, as any subsequent command reaching the disk may reactiv

Re: [Hdaps-devel] Re: IBM HDAPS, I need a tip.

2005-08-01 Thread Jon Escombe
hard drive parking was already sorted out. We have a script that does this and works great parking the heads. Would have to disagree with you here. Jens' ATA7 parking code is a great start but we still have a couple of issues to address before it's usable for this purpose. (1) it only works

Re: [Hdaps-devel] Re: IBM HDAPS, I need a tip.

2005-08-01 Thread Jon Escombe
Thanks to development of the driver from some nice guys, we are able to get data from the accelerometer. There is one problem. How do we calibrate the values that are outputed from the userspace? All PC's get a different value, and we can't really find the best solution. What is the scientific a

Re: IBM HDAPS things are looking up (was: Re: [Hdaps-devel] Re: [ltp] IBM HDAPS Someone interested? (Accelerometer))

2005-07-07 Thread Jon Escombe
Jens Axboe wrote: On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Note on that - if the util says it parked, you can be very sure that it actually did as the drive