public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.22 libata spindown
@ 2007-06-01 20:14 Tuncer Ayaz
  2007-06-01 20:39 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Tuncer Ayaz @ 2007-06-01 20:14 UTC (permalink / raw)
  To: linux-kernel

I'm still seeing the libata warning that disks were not spun down
properly on the following two setups and am wondering whether I need
a new shutdown binary or the changeset mentioned below is not meant
to fix what I'm triggering by halt'ing.

If it's not a bug I will try to update my shutdown utility and if
that does not work I promise not to bother lkml about a problem
caused by my userland. If it is a bug I hope it will be of interest
for 2.6.22 bug tracking.

Setup 1:
SATA 1 Disks
AMD64 3200+
nVidia nForce 3 250 (Ultra?)
Debian i386 Unstable

Setup 2:
SATA 2 disks
Core 2 Duo E6600
Intel 975X
Debian x86_64 Unstable

Just to be clear what warning I'm talking about:
DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN UTILITY
For more info, visit http://linux-ata.org/shutdown.html

The following is from the reply I got from Michal Piotrowski while
I was trying to find out what happened to the regression report:

MICHAL>>
I guess you meant this

Subject    : libata crash on halt
References : http://marc.info/?l=linux-ide&m=117899827710565&w=2
Submitter  : Andrew Morton <akpm@linux-foundation.org>
Caused-By  : Tejun Heo <htejun@gmail.com>
            commit 920a4b1038e442700a1cfac77ea7e20bd615a2c3
Status     : problem is being debugged

This bug was fixed by

commit da071b42f73dabbd0daf7ea4c3ff157d53b00648
Author: Tejun Heo <htejun@gmail.com>
Date:   Mon May 14 17:26:18 2007 +0200

   libata: fix shutdown warning message printing

   Unlocking ap->lock and ssleeping don't work because SCSI commands can
   be issued from completion path without context.  Reimplement delayed
   completion by allowing translation functions to override
   qc->scsidone(), storing the original completion function to
   scmd->scsi_done() and overriding qc->scsidone() with a function which
   schedules delayed invocation of scmd->scsi_done().

   This isn't pretty at all but all the ugly parts are thankfully
   contained in the stop translation path where the compat feature is
   implemented.

   Signed-off-by: Tejun Heo <htejun@gmail.com>
   Signed-off-by: Jeff Garzik <jeff@garzik.org>



> [  715.196000] ata3.00: DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE
> SHUTDOWN UTILITY
> [  715.196000] ata3.00: For more info, visit http://linux-ata.org/
> shutdown.html
                  ^^^^
If you think about this, please send a bug report. IMHO it's ABI breakage.
<<MICHAL

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

* Re: 2.6.22 libata spindown
  2007-06-01 20:14 2.6.22 libata spindown Tuncer Ayaz
@ 2007-06-01 20:39 ` Jeff Garzik
  2007-06-01 20:55   ` Tuncer Ayaz
  2007-06-02  3:23   ` Henrique de Moraes Holschuh
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Garzik @ 2007-06-01 20:39 UTC (permalink / raw)
  To: Tuncer Ayaz; +Cc: linux-kernel, IDE/ATA development list

Tuncer Ayaz wrote:
> I'm still seeing the libata warning that disks were not spun down
> properly on the following two setups and am wondering whether I need
> a new shutdown binary or the changeset mentioned below is not meant
> to fix what I'm triggering by halt'ing.
> 
> If it's not a bug I will try to update my shutdown utility and if
> that does not work I promise not to bother lkml about a problem
> caused by my userland. If it is a bug I hope it will be of interest
> for 2.6.22 bug tracking.
> 
> Setup 1:
> SATA 1 Disks
> AMD64 3200+
> nVidia nForce 3 250 (Ultra?)
> Debian i386 Unstable
> 
> Setup 2:
> SATA 2 disks
> Core 2 Duo E6600
> Intel 975X
> Debian x86_64 Unstable
> 
> Just to be clear what warning I'm talking about:
> DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN UTILITY
> For more info, visit http://linux-ata.org/shutdown.html


IIRC, Debian was the one OS that really did need a shutdown utility 
update, as the message says :)

	Jeff



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

* Re: 2.6.22 libata spindown
  2007-06-01 20:39 ` Jeff Garzik
@ 2007-06-01 20:55   ` Tuncer Ayaz
  2007-06-02  3:23   ` Henrique de Moraes Holschuh
  1 sibling, 0 replies; 4+ messages in thread
From: Tuncer Ayaz @ 2007-06-01 20:55 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, IDE/ATA development list

On 6/1/07, Jeff Garzik <jeff@garzik.org> wrote:
> Tuncer Ayaz wrote:
> > I'm still seeing the libata warning that disks were not spun down
> > properly on the following two setups and am wondering whether I need
> > a new shutdown binary or the changeset mentioned below is not meant
> > to fix what I'm triggering by halt'ing.
> >
> > If it's not a bug I will try to update my shutdown utility and if
> > that does not work I promise not to bother lkml about a problem
> > caused by my userland. If it is a bug I hope it will be of interest
> > for 2.6.22 bug tracking.
> >
> > Setup 1:
> > SATA 1 Disks
> > AMD64 3200+
> > nVidia nForce 3 250 (Ultra?)
> > Debian i386 Unstable
> >
> > Setup 2:
> > SATA 2 disks
> > Core 2 Duo E6600
> > Intel 975X
> > Debian x86_64 Unstable
> >
> > Just to be clear what warning I'm talking about:
> > DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN UTILITY
> > For more info, visit http://linux-ata.org/shutdown.html
>
>
> IIRC, Debian was the one OS that really did need a shutdown utility
> update, as the message says :)

Thanks for the confirmation.

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

* Re: 2.6.22 libata spindown
  2007-06-01 20:39 ` Jeff Garzik
  2007-06-01 20:55   ` Tuncer Ayaz
@ 2007-06-02  3:23   ` Henrique de Moraes Holschuh
  1 sibling, 0 replies; 4+ messages in thread
From: Henrique de Moraes Holschuh @ 2007-06-02  3:23 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Tuncer Ayaz, linux-kernel, IDE/ATA development list

On Fri, 01 Jun 2007, Jeff Garzik wrote:
> IIRC, Debian was the one OS that really did need a shutdown utility 
> update, as the message says :)

Actually, editing /etc/init.d/halt is enough.  Find the hddown="-h" and
change it to hddown="".

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

end of thread, other threads:[~2007-06-02  3:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 20:14 2.6.22 libata spindown Tuncer Ayaz
2007-06-01 20:39 ` Jeff Garzik
2007-06-01 20:55   ` Tuncer Ayaz
2007-06-02  3:23   ` Henrique de Moraes Holschuh

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