Re: Loud "pop" coming from hard drive on reboot

2007-04-23 Thread Chuck Ebbert
Peter Zijlstra wrote: > > but I have an increasing seek error rate as well. I got the ST disk > because thinkwiki suggested it. > Apparently Seagate has their own definition of seek error rate. Large numbers are normal, or at least very common. Now I wonder if they have their own way of doing

Re: Loud pop coming from hard drive on reboot

2007-04-23 Thread Chuck Ebbert
Peter Zijlstra wrote: but I have an increasing seek error rate as well. I got the ST disk because thinkwiki suggested it. Apparently Seagate has their own definition of seek error rate. Large numbers are normal, or at least very common. Now I wonder if they have their own way of doing

Re: Loud "pop" coming from hard drive on reboot

2007-04-21 Thread Peter Zijlstra
On Wed, 2007-04-18 at 17:27 -0400, Chuck Ebbert wrote: > Bartlomiej Zolnierkiewicz wrote: > > On Wednesday 18 April 2007, Chuck Ebbert wrote: > >> Mark Lord wrote: > >>> Mark Lord wrote: > With the patch applied, I don't see *any* new activity in those > S.M.A.R.T. > attributes over

Re: Loud "pop" coming from hard drive on reboot

2007-04-21 Thread Fabio Comolli
Jan, mine does not pop running Linux but only during the shutdown. As I wrote before, switching from PATA to IDE has solved the problem for me. Regards, Fabio On 4/21/07, Jan Engelhardt <[EMAIL PROTECTED]> wrote: >On Apr 20 2007 21:57, Fabio Comolli wrote: > > hda: TOSHIBA MK8025GAS, ATA

Re: Loud "pop" coming from hard drive on reboot

2007-04-21 Thread Jan Engelhardt
>On Apr 20 2007 21:57, Fabio Comolli wrote: > > hda: TOSHIBA MK8025GAS, ATA DISK drive MK...? These sort of disks do that stupid pop. Mine -- a MK2003GAH -- does it even while running Linux, if the disk is _idle_. See http://lkml.org/lkml/2006/11/15/413 - hope it provides some pointers.

Re: Loud "pop" coming from hard drive on reboot

2007-04-21 Thread Fabio Comolli
Hi. On 4/21/07, emisca <[EMAIL PROTECTED]> wrote: So, removing -d halt option solves this problem? According to the halt manpage, -n implies -d (in other words, -d is not removed at all). Regards, Fabio - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: Loud "pop" coming from hard drive on reboot

2007-04-21 Thread emisca
So, removing -d halt option solves this problem? 2007/4/20, Fabio Comolli <[EMAIL PROTECTED]>: Bingo! I switched from ata_piix.c to piix_ide.c and the "pop" disappeared. I must say that the "pop" also disappeared after suspending to disk using suspend2 (obviously without executing halt -n -h

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread emisca
So, removing -d halt option solves this problem? 2007/4/20, Fabio Comolli [EMAIL PROTECTED]: Bingo! I switched from ata_piix.c to piix_ide.c and the pop disappeared. I must say that the pop also disappeared after suspending to disk using suspend2 (obviously without executing halt -n -h -p) .

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread Fabio Comolli
Hi. On 4/21/07, emisca [EMAIL PROTECTED] wrote: So, removing -d halt option solves this problem? According to the halt manpage, -n implies -d (in other words, -d is not removed at all). Regards, Fabio - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread Jan Engelhardt
On Apr 20 2007 21:57, Fabio Comolli wrote: hda: TOSHIBA MK8025GAS, ATA DISK drive MK...? These sort of disks do that stupid pop. Mine -- a MK2003GAH -- does it even while running Linux, if the disk is _idle_. See http://lkml.org/lkml/2006/11/15/413 - hope it provides some pointers. Regards,

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread Fabio Comolli
Jan, mine does not pop running Linux but only during the shutdown. As I wrote before, switching from PATA to IDE has solved the problem for me. Regards, Fabio On 4/21/07, Jan Engelhardt [EMAIL PROTECTED] wrote: On Apr 20 2007 21:57, Fabio Comolli wrote: hda: TOSHIBA MK8025GAS, ATA DISK

Re: Loud pop coming from hard drive on reboot

2007-04-21 Thread Peter Zijlstra
On Wed, 2007-04-18 at 17:27 -0400, Chuck Ebbert wrote: Bartlomiej Zolnierkiewicz wrote: On Wednesday 18 April 2007, Chuck Ebbert wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates

Re: Loud "pop" coming from hard drive on reboot

2007-04-20 Thread Fabio Comolli
Bingo! I switched from ata_piix.c to piix_ide.c and the "pop" disappeared. I must say that the "pop" also disappeared after suspending to disk using suspend2 (obviously without executing halt -n -h -p) . In both cases it was present with the previous setup. This is with a pure PATA setup with

Re: Loud "pop" coming from hard drive on reboot

2007-04-20 Thread Stephen Clark
Chuck Ebbert wrote: Stephen Clark wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux "suspend-to-disk"). Scratch that -- operator failure. ;) The patch

Re: Loud pop coming from hard drive on reboot

2007-04-20 Thread Stephen Clark
Chuck Ebbert wrote: Stephen Clark wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch

Re: Loud pop coming from hard drive on reboot

2007-04-20 Thread Fabio Comolli
Bingo! I switched from ata_piix.c to piix_ide.c and the pop disappeared. I must say that the pop also disappeared after suspending to disk using suspend2 (obviously without executing halt -n -h -p) . In both cases it was present with the previous setup. This is with a pure PATA setup with no

Re: Loud "pop" coming from hard drive on reboot

2007-04-19 Thread Chuck Ebbert
Stephen Clark wrote: > Mark Lord wrote: > >> Mark Lord wrote: >> >> >>> With the patch applied, I don't see *any* new activity in those >>> S.M.A.R.T. >>> attributes over multiple hibernates (Linux "suspend-to-disk"). >>> >> >> Scratch that -- operator failure. ;) >> The patch makes no

Re: Loud "pop" coming from hard drive on reboot

2007-04-19 Thread Mark Lord
Stephen Clark wrote: It is definitely the disk drive. It is located in the right front corner of my laptop so I put my ear by it during shutdown and that is where the click is coming from. Isn't there also a speaker located there? - To unsubscribe from this list: send the line "unsubscribe

Re: Loud "pop" coming from hard drive on reboot

2007-04-19 Thread emisca
From the debian etch 4.0 /etc/init.d/halt script: # Don't shut down drives if we're using RAID. hddown="-h" if grep -qs '^md.*active' /proc/mdstat then hddown="" fi # If INIT_HALT=HALT don't poweroff. poweroff="-p" if [

Re: Loud "pop" coming from hard drive on reboot

2007-04-19 Thread Stephen Clark
Jan Engelhardt wrote: On Apr 18 2007 09:39, Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or

Re: Loud "pop" coming from hard drive on reboot

2007-04-19 Thread Jan Engelhardt
On Apr 18 2007 09:39, Stephen Clark wrote: >> > So this is the pop I hear on my new laptop that is using > libata=combined_mode when I shut my system down. I didn't get the > pop with the same disk drive in an older laptop that was only ide. > It sounds like a relay closing or opening, but is

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread Jan Engelhardt
On Apr 18 2007 09:39, Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or opening, but is really my

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread Stephen Clark
Jan Engelhardt wrote: On Apr 18 2007 09:39, Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread emisca
From the debian etch 4.0 /etc/init.d/halt script: # Don't shut down drives if we're using RAID. hddown=-h if grep -qs '^md.*active' /proc/mdstat then hddown= fi # If INIT_HALT=HALT don't poweroff. poweroff=-p if [

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread Mark Lord
Stephen Clark wrote: It is definitely the disk drive. It is located in the right front corner of my laptop so I put my ear by it during shutdown and that is where the click is coming from. Isn't there also a speaker located there? - To unsubscribe from this list: send the line unsubscribe

Re: Loud pop coming from hard drive on reboot

2007-04-19 Thread Chuck Ebbert
Stephen Clark wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: 1. shutdown(8) issues SYNCHRONIZE_CACHE followed by STANDBY_NOW 2. kernel shutdown starts 3. libata shutdown issues SYNCHRONIZE_CACHE 4. power goes off Okay, after some experimentatino, it's the STANDBY_NOW that is causing the Power-Off_Retract_Count to

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Tejun Heo wrote: 1. shutdown(8) issues SYNCHRONIZE_CACHE followed by STANDBY_NOW 2. kernel shutdown starts 3. libata shutdown issues SYNCHRONIZE_CACHE 4. power goes off Okay, after some experimentatino, it's the STANDBY_NOW that is causing the Power-Off_Retract_Count to increment on my

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Robert Hancock wrote: > Tejun Heo wrote: >> This really isn't a regression. It's been always like that with libata. >> libata doesn't make devices go into standby mode and shutdown(8) does >> it for libata. The problem here is that libata does issue >> SYNCHRONIZE_CACHE on shutdown. So, the

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Tejun Heo wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of event is... 1.

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or opening, but is really my drive head doing an

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Stephen Clark wrote: I tried this on 2.6.20.2 it applied to libata with some fuzz and I had to manually edit libata.h When I did a shutdown I still got the click/pop. I also noticed the last thing displayed on the lcd before it goes blank is Synchronizing SCSI Disks - then the click/pop. HTH,

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Greg Freemyer
On 4/18/07, Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: On Wednesday 18 April 2007, Chuck Ebbert wrote: > Mark Lord wrote: > > Mark Lord wrote: > >> > >> With the patch applied, I don't see *any* new activity in those > >> S.M.A.R.T. > >> attributes over multiple hibernates (Linux

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Bartlomiej Zolnierkiewicz wrote: > On Wednesday 18 April 2007, Chuck Ebbert wrote: >> Mark Lord wrote: >>> Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux "suspend-to-disk"). >>> Scratch that --

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Bartlomiej Zolnierkiewicz
On Wednesday 18 April 2007, Tejun Heo wrote: > Mark Lord wrote: > > Chuck Ebbert wrote: > >> Mark Lord wrote: > >>> I'll patch it locally on my own machines, but what about the tens > >>> of thousands of other Seagate notebook drive owners out there? > >>> > >> > >> This is a problem with Seagate

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Bartlomiej Zolnierkiewicz
On Wednesday 18 April 2007, Chuck Ebbert wrote: > Mark Lord wrote: > > Mark Lord wrote: > >> > >> With the patch applied, I don't see *any* new activity in those > >> S.M.A.R.T. > >> attributes over multiple hibernates (Linux "suspend-to-disk"). > > > > Scratch that -- operator failure. ;) > >

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Mark Lord wrote: > Mark Lord wrote: >> >> With the patch applied, I don't see *any* new activity in those >> S.M.A.R.T. >> attributes over multiple hibernates (Linux "suspend-to-disk"). > > Scratch that -- operator failure. ;) > The patch makes no difference over hibernates in the SMART logs. >

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux "suspend-to-disk"). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in the SMART logs. It's

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux "suspend-to-disk"). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in the SMART logs. It's still logging extra

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: .. It would be nice if somebody who can hear the "pop" would also test this, as it will confirm that this is a complete fix for the problem. You'll probably be able to here the "pop" on sleep-to-disk. My "pop" drives are busy elsewhere right now. The

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Mark Lord wrote: Alan Cox wrote: + if (dev->needs_flush && ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; + dev->needs_flush = 0; Works better if you swap the dev-> and return lines Heh, yeah, I noticed

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Mark Lord wrote: > Alan Cox wrote: >>> +if (dev->needs_flush && ata_try_flush_cache(dev)) { >>> return ata_scsi_flush_xlat; >>> +dev->needs_flush = 0; >> >> Works better if you swap the dev-> and return lines > > Heh, yeah, I noticed that! > > Here it is,

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Alan Cox wrote: + if (dev->needs_flush && ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; + dev->needs_flush = 0; Works better if you swap the dev-> and return lines Heh, yeah, I noticed that! Here it is, *tested* now, with

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Alan Cox
> + if (dev->needs_flush && ata_try_flush_cache(dev)) { > return ata_scsi_flush_xlat; > + dev->needs_flush = 0; Works better if you swap the dev-> and return lines Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: Alan Cox wrote: If you see a synchronize cache succeed and you then see the drive shutdown succeed then you know that a sync cache can be faked as ok safely. Any other command in between or after and it doesn't get faked This seems pretty easy to deal with at command issue.

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Alan Cox wrote: If you see a synchronize cache succeed and you then see the drive shutdown succeed then you know that a sync cache can be faked as ok safely. Any other command in between or after and it doesn't get faked This seems pretty easy to deal with at command issue. Yup. It could be

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Alan Cox wrote: Thought about that and querying power state before doing shutdown sequence but things get somewhat ugly because shutdown sequence is driven from sd->shutdown(). We'll have to snoop both sync and shutdown commands and check whether the system is shutting down. Also, I felt

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Alan Cox wrote: Thought about that and querying power state before doing shutdown sequence but things get somewhat ugly because shutdown sequence is driven from sd->shutdown(). We'll have to snoop both sync and shutdown commands and check whether the system is shutting down. Also, I felt

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Alan Cox
> Thought about that and querying power state before doing shutdown > sequence but things get somewhat ugly because shutdown sequence is > driven from sd->shutdown(). We'll have to snoop both sync and shutdown > commands and check whether the system is shutting down. Also, I felt > very

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Tejun Heo wrote: Alan Cox wrote: Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its cache is clean. Sadly some disks actually spin up when it receives spin down command while spun down to immediately spin down again, so we would be fixing problem for some number of disks

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Alan Cox wrote: Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its cache is clean. Sadly some disks actually spin up when it receives spin down command while spun down to immediately spin down again, so we would be fixing problem for some number of disks while breaking

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Alan Cox
> Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its > cache is clean. Sadly some disks actually spin up when it receives spin > down command while spun down to immediately spin down again, so we would > be fixing problem for some number of disks while breaking others. :-(

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Bodo Eggert wrote: SCSI part of the fix is queued in scsi-misc-2.6 tree and libata-dev part is acked and waiting to be merged, so the fix will be available in 2.6.22. However, it's disabled by default to remain compatible with the

Re: Loud "pop" coming from hard drive on reboot

2007-04-18 Thread Bodo Eggert
Tejun Heo <[EMAIL PROTECTED]> wrote: > This really isn't a regression. It's been always like that with libata. > libata doesn't make devices go into standby mode and shutdown(8) does > it for libata. The problem here is that libata does issue > SYNCHRONIZE_CACHE on shutdown. So, the sequence

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Bodo Eggert
Tejun Heo [EMAIL PROTECTED] wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Bodo Eggert wrote: SCSI part of the fix is queued in scsi-misc-2.6 tree and libata-dev part is acked and waiting to be merged, so the fix will be available in 2.6.22. However, it's disabled by default to remain compatible with the

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Alan Cox
Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its cache is clean. Sadly some disks actually spin up when it receives spin down command while spun down to immediately spin down again, so we would be fixing problem for some number of disks while breaking others. :-(

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Alan Cox wrote: Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its cache is clean. Sadly some disks actually spin up when it receives spin down command while spun down to immediately spin down again, so we would be fixing problem for some number of disks while breaking

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Tejun Heo wrote: Alan Cox wrote: Not that simple. Most disks don't spin up on SYNCHRONIZE_CACHE if its cache is clean. Sadly some disks actually spin up when it receives spin down command while spun down to immediately spin down again, so we would be fixing problem for some number of disks

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Alan Cox
Thought about that and querying power state before doing shutdown sequence but things get somewhat ugly because shutdown sequence is driven from sd-shutdown(). We'll have to snoop both sync and shutdown commands and check whether the system is shutting down. Also, I felt very uneasy

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Alan Cox wrote: Thought about that and querying power state before doing shutdown sequence but things get somewhat ugly because shutdown sequence is driven from sd-shutdown(). We'll have to snoop both sync and shutdown commands and check whether the system is shutting down. Also, I felt

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Alan Cox wrote: Thought about that and querying power state before doing shutdown sequence but things get somewhat ugly because shutdown sequence is driven from sd-shutdown(). We'll have to snoop both sync and shutdown commands and check whether the system is shutting down. Also, I felt

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Alan Cox wrote: If you see a synchronize cache succeed and you then see the drive shutdown succeed then you know that a sync cache can be faked as ok safely. Any other command in between or after and it doesn't get faked This seems pretty easy to deal with at command issue. Yup. It could be

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: Alan Cox wrote: If you see a synchronize cache succeed and you then see the drive shutdown succeed then you know that a sync cache can be faked as ok safely. Any other command in between or after and it doesn't get faked This seems pretty easy to deal with at command issue.

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Alan Cox
+ if (dev-needs_flush ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; + dev-needs_flush = 0; Works better if you swap the dev- and return lines Alan - To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Alan Cox wrote: + if (dev-needs_flush ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; + dev-needs_flush = 0; Works better if you swap the dev- and return lines Heh, yeah, I noticed that! Here it is, *tested* now, with

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Tejun Heo
Mark Lord wrote: Alan Cox wrote: +if (dev-needs_flush ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; +dev-needs_flush = 0; Works better if you swap the dev- and return lines Heh, yeah, I noticed that! Here it is, *tested* now, with another

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Mark Lord wrote: Alan Cox wrote: + if (dev-needs_flush ata_try_flush_cache(dev)) { return ata_scsi_flush_xlat; + dev-needs_flush = 0; Works better if you swap the dev- and return lines Heh, yeah, I noticed that!

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: .. It would be nice if somebody who can hear the pop would also test this, as it will confirm that this is a complete fix for the problem. You'll probably be able to here the pop on sleep-to-disk. My pop drives are busy elsewhere right now. The system I

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in the SMART logs. It's still logging extra

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Stephen Clark
Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in the SMART logs. It's still

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch makes no difference over hibernates in the SMART logs. It's still

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Bartlomiej Zolnierkiewicz
On Wednesday 18 April 2007, Chuck Ebbert wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;) The patch makes no

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Bartlomiej Zolnierkiewicz
On Wednesday 18 April 2007, Tejun Heo wrote: Mark Lord wrote: Chuck Ebbert wrote: Mark Lord wrote: I'll patch it locally on my own machines, but what about the tens of thousands of other Seagate notebook drive owners out there? This is a problem with Seagate specifically, spinning

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Greg Freemyer
On 4/18/07, Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] wrote: On Wednesday 18 April 2007, Chuck Ebbert wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk).

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Bartlomiej Zolnierkiewicz wrote: On Wednesday 18 April 2007, Chuck Ebbert wrote: Mark Lord wrote: Mark Lord wrote: With the patch applied, I don't see *any* new activity in those S.M.A.R.T. attributes over multiple hibernates (Linux suspend-to-disk). Scratch that -- operator failure. ;)

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Stephen Clark wrote: I tried this on 2.6.20.2 it applied to libata with some fuzz and I had to manually edit libata.h When I did a shutdown I still got the click/pop. I also noticed the last thing displayed on the lcd before it goes blank is Synchronizing SCSI Disks - then the click/pop. HTH,

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Stephen Clark wrote: So this is the pop I hear on my new laptop that is using libata=combined_mode when I shut my system down. I didn't get the pop with the same disk drive in an older laptop that was only ide. It sounds like a relay closing or opening, but is really my drive head doing an

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Robert Hancock
Tejun Heo wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of event is... 1.

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Chuck Ebbert
Robert Hancock wrote: Tejun Heo wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Tejun Heo wrote: 1. shutdown(8) issues SYNCHRONIZE_CACHE followed by STANDBY_NOW 2. kernel shutdown starts 3. libata shutdown issues SYNCHRONIZE_CACHE 4. power goes off Okay, after some experimentatino, it's the STANDBY_NOW that is causing the Power-Off_Retract_Count to increment on my

Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: 1. shutdown(8) issues SYNCHRONIZE_CACHE followed by STANDBY_NOW 2. kernel shutdown starts 3. libata shutdown issues SYNCHRONIZE_CACHE 4. power goes off Okay, after some experimentatino, it's the STANDBY_NOW that is causing the Power-Off_Retract_Count to

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Tejun Heo
Mark Lord wrote: > Chuck Ebbert wrote: >> Mark Lord wrote: >>> I'll patch it locally on my own machines, but what about the tens >>> of thousands of other Seagate notebook drive owners out there? >>> >> >> This is a problem with Seagate specifically, spinning back up >> on receipt of some command

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Mark Lord
Chuck Ebbert wrote: Mark Lord wrote: I'll patch it locally on my own machines, but what about the tens of thousands of other Seagate notebook drive owners out there? This is a problem with Seagate specifically, spinning back up on receipt of some command after spindown? No, they just seem

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Chuck Ebbert
Mark Lord wrote: > > I'll patch it locally on my own machines, but what about the tens > of thousands of other Seagate notebook drive owners out there? > This is a problem with Seagate specifically, spinning back up on receipt of some command after spindown? - To unsubscribe from this list:

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Mark Lord
emisca wrote: I can confirm this, I have a Seagate Momentus 5400.3 sata disk, and it spins off, respin up and again off when I halt my notebook. I had before this disk an IBM/Hitachi one, and it doesn't have this behaviour. Take a look at this bug report:

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Henrique de Moraes Holschuh
On Mon, 16 Apr 2007, Chuck Ebbert wrote: > It looks like there are two problems here: > > (1) Some notebooks power off and back on when restarting. If it happens just under Linux, this is something that really needs to be addressed post-haste. Maybe someone should open a bug in bugzilla to help

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread Fabio Comolli
Hi. On 4/17/07, Chuck Ebbert <[EMAIL PROTECTED]> wrote: (2) Linux (alone) gives a very muted pop on shutdown. This could be from bad interaction with the shutdown command, or some other reason (drive not given enough time to shut down?) The noise is not very loud, maybe the head

Re: Loud "pop" coming from hard drive on reboot

2007-04-17 Thread emisca
2007/4/17, Chuck Ebbert <[EMAIL PROTECTED]>: Jan Engelhardt wrote: > On Apr 15 2007 12:53, Henrique de Moraes Holschuh wrote: >> On Sat, 14 Apr 2007, Pavel Machek wrote: >>> How common are notebooks that cut power to disks during reboot? >> Assuming it also does this when running Windows, I'd

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread emisca
2007/4/17, Chuck Ebbert [EMAIL PROTECTED]: Jan Engelhardt wrote: On Apr 15 2007 12:53, Henrique de Moraes Holschuh wrote: On Sat, 14 Apr 2007, Pavel Machek wrote: How common are notebooks that cut power to disks during reboot? Assuming it also does this when running Windows, I'd report it as

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Fabio Comolli
Hi. On 4/17/07, Chuck Ebbert [EMAIL PROTECTED] wrote: snip (2) Linux (alone) gives a very muted pop on shutdown. This could be from bad interaction with the shutdown command, or some other reason (drive not given enough time to shut down?) The noise is not very loud, maybe the head

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Henrique de Moraes Holschuh
On Mon, 16 Apr 2007, Chuck Ebbert wrote: It looks like there are two problems here: (1) Some notebooks power off and back on when restarting. If it happens just under Linux, this is something that really needs to be addressed post-haste. Maybe someone should open a bug in bugzilla to help

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Mark Lord
emisca wrote: I can confirm this, I have a Seagate Momentus 5400.3 sata disk, and it spins off, respin up and again off when I halt my notebook. I had before this disk an IBM/Hitachi one, and it doesn't have this behaviour. Take a look at this bug report:

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Chuck Ebbert
Mark Lord wrote: I'll patch it locally on my own machines, but what about the tens of thousands of other Seagate notebook drive owners out there? This is a problem with Seagate specifically, spinning back up on receipt of some command after spindown? - To unsubscribe from this list: send

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Mark Lord
Chuck Ebbert wrote: Mark Lord wrote: I'll patch it locally on my own machines, but what about the tens of thousands of other Seagate notebook drive owners out there? This is a problem with Seagate specifically, spinning back up on receipt of some command after spindown? No, they just seem

Re: Loud pop coming from hard drive on reboot

2007-04-17 Thread Tejun Heo
Mark Lord wrote: Chuck Ebbert wrote: Mark Lord wrote: I'll patch it locally on my own machines, but what about the tens of thousands of other Seagate notebook drive owners out there? This is a problem with Seagate specifically, spinning back up on receipt of some command after spindown?

Re: Loud "pop" coming from hard drive on reboot

2007-04-16 Thread Chuck Ebbert
Jan Engelhardt wrote: > On Apr 15 2007 12:53, Henrique de Moraes Holschuh wrote: >> On Sat, 14 Apr 2007, Pavel Machek wrote: >>> How common are notebooks that cut power to disks during reboot? >> Assuming it also does this when running Windows, I'd report it as a grave >> bug to the vendor and

Re: Loud pop coming from hard drive on reboot

2007-04-16 Thread Chuck Ebbert
Jan Engelhardt wrote: On Apr 15 2007 12:53, Henrique de Moraes Holschuh wrote: On Sat, 14 Apr 2007, Pavel Machek wrote: How common are notebooks that cut power to disks during reboot? Assuming it also does this when running Windows, I'd report it as a grave bug to the vendor and demand it to

Re: Loud "pop" coming from hard drive on reboot

2007-04-15 Thread auxsvr
On Sunday 15 April 2007 19:07, emisca wrote: > I can confirm this, I have a Seagate Momentus 5400.3 sata disk, and it > spins off, respin up and again off when I halt my notebook. > I had before this disk an IBM/Hitachi one, and it doesn't have this > behaviour. > > Take a look at this bug report:

Re: Loud "pop" coming from hard drive on reboot

2007-04-15 Thread Jan Engelhardt
On Apr 15 2007 12:53, Henrique de Moraes Holschuh wrote: >On Sat, 14 Apr 2007, Pavel Machek wrote: >> How common are notebooks that cut power to disks during reboot? > >Assuming it also does this when running Windows, I'd report it as a grave >bug to the vendor and demand it to be fixed, or the

  1   2   >