Bug 6264
Summary: | hdd spindown during suspend / resume | ||
---|---|---|---|
Product: | SCSI Drivers | Reporter: | Cyrill Helg (linux) |
Component: | Other | Assignee: | scsi_drivers-other |
Status: | CLOSED INVALID | ||
Severity: | low | CC: | akpm, axboe, pavel, rjwysocki |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.16 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | Kernel Config -git6 |
Description
Cyrill Helg
2006-03-21 06:56:38 UTC
It's unclear what actual "bug" you're reporting. What behaviour do you think is wrong? What is the kernel doing that you think it shouldn't be doing? In my (and others reporting same problem on suspend2 mailing list) opinion the hd should not spindown while saving the caches to disk because a) it delays the whole suspending process and b) it just makes no sense and is probably also not good for the harddrive... Another point is that this didn't happen with older kernels, so why is it necessary? Thanks for your effort! I'm still trying to work out what the bug is. It appears that the hard disk is spinning down at some stage in the suspend-to-disk process. Is that correct? If so, at which stage is it spinning down and at what stage does it spin back up? Please try to describe the problem more clearly. I'm sorry for the first chaotic description and I'll try the best. Yes you're right the hdd spins down during suspend process and also when resuming. (after poweroff->on) It's not easy to say when this happens. With suspend 2 it's right after "saving caches" and before "Writing kernel & process data". And then spindown is the same as when the hdd goes into suspend mode i.e. for powersaving, but it wakes up immediately after it's turned out. So it goes down and up again and the last bits of suspending data gets written and then system turns off. Resuming: There it happens when the kernel recognizes that there is a resume image available. So it dectects, spins down und up and reads the caches... What options could I turn on to report that problem more clearly? Or shall I try to revert some sata related patches, because one of them caused that problem. That's sufficient, thanks. Pavel, Rafael: over to you ;) Searching "which sata patch does it" would certainly be useful. Also, could you please post your .config? I'm bot 100% sure,but it looks like this is solved in 2.6.16-git6... Created attachment 7832 [details]
Kernel Config -git6
Thanks for the config. It looks like the problem may be related to the PIIX driver indeed. If you think it might have been fixed early after 2.6.16, could you please test 2.6.17-rc1 or a recent -git? I will try it out as soon as an updated beyond patchset from Tiger is out. As far as I can say this is fixed in: currently 2.6.16.4 + the pata patch from alan ( http://zeniv.linux.org.uk/~alan/IDE/patch-2.6.16-ide1.gz ) Thanks! Interestingly the bug seems to be here again on kernel 2.6.11 or .12. I'm not sure because I'm using the beyond sources patchset from here: http://iphitus.loudas.com/beyond.html The upgrade from 2.6.16-beyond2 to beyond3 brings the problem back. Reply-To: pavel@ucw.cz > Interestingly the bug seems to be here again on kernel 2.6.11 or .12. I'm not > sure because I'm using the beyond sources patchset from here: > http://iphitus.loudas.com/beyond.html > > The upgrade from 2.6.16-beyond2 to beyond3 brings the problem back. -beyond2 contains so many changes it is not funny, including suspend2 support. Try again with vanilla. Pavel Is problem still present in vanilla 2.6.17-rc4? If so, please reopen. No the problem does not exist anymore. Thanks! |