Skip to contentSkip to conversation

Dropping CONFIG_PM_DISK?

DISCUSSION Karol Kozimor 10 participants 33 messages Feb 29, 2004 – Mar 1, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Thus wrote Pavel Machek:

Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in. Best regards,

Signature · 2 lines
Karol 'sziwan' Kozimor
[email protected]
#2 lore raw

Hi!

Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...
Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
#3 lore raw
Quoted 6 lines · Pavel Machek

Hi!

Quoted 4 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

Quoted 6 lines
Quoted 3 lines

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume. The old swsusp doesn't even get that far.

Signature · 2 lines
Måns Rullgård
[email protected]
#4 lore raw
Quoted 12 lines · Måns Rullgård
Quoted 10 lines · Pavel Machek

Hi!

Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Quoted 6 lines
Quoted 2 lines

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume.

Hate to hear this - 2.0 is said to work _flawlessly_ on 2.4.24 and on 2.6.2 within the bounds of more complex PM/driver issues.

2.4.25 and 2.6.3 patches are undergoing testing.

If you like to try again, please have a look at http://swsusp.sf.net.

There is also comprehensive FAQ and Howto on the site.

You also will find a lot of user support wrt specific HW.

Myself is running 2.0 on 2.4.2[345] without any stability issues whatsoever this year.

In short, I am confident we can make it work for you!

Regards
Michael

#5 lore raw
Quoted 28 lines · Michael Frank
Quoted 12 lines · M?ns Rullg?rd
Quoted 10 lines · Pavel Machek

Hi!

Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Quoted 6 lines
Quoted 2 lines

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume.

Hate to hear this - 2.0 is said to work _flawlessly_ on 2.4.24 and on 2.6.2 within the bounds of more complex PM/driver issues.

2.4.25 and 2.6.3 patches are undergoing testing.

If you like to try again, please have a look at http://swsusp.sf.net.

Quoted 9 lines

There is also comprehensive FAQ and Howto on the site.

You also will find a lot of user support wrt specific HW.

Myself is running 2.0 on 2.4.2[345] without any stability issues whatsoever this year.

In short, I am confident we can make it work for you!

Same for me. No problems with 2.4.[345] and also works nicely on 2.6.[123] as long as dri is not running (PM problems).

Only one problem that is not caused by swsusp but is a bit of a head ache. X will ocationaly crash when changing VT to the console. I originally thought it was a problem with my dri resume patch for mach64, but the resume kicks in only when entering X and not when leaving so its got to be something else.

Quoted 13 lines

Regards Michael

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
swsusp-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/swsusp-devel

#6 lore raw
Quoted 39 lines · Micha Feigin
Quoted 28 lines · Michael Frank
Quoted 12 lines · M?ns Rullg?rd
Quoted 10 lines · Pavel Machek

Hi!

Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Quoted 6 lines
Quoted 2 lines

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume.

Hate to hear this - 2.0 is said to work _flawlessly_ on 2.4.24 and on 2.6.2 within the bounds of more complex PM/driver issues.

2.4.25 and 2.6.3 patches are undergoing testing.

If you like to try again, please have a look at http://swsusp.sf.net.

Quoted 9 lines

There is also comprehensive FAQ and Howto on the site.

You also will find a lot of user support wrt specific HW.

Myself is running 2.0 on 2.4.2[345] without any stability issues whatsoever this year.

In short, I am confident we can make it work for you!

Quoted 8 lines

Same for me. No problems with 2.4.[345] and also works nicely on 2.6.[123] as long as dri is not running (PM problems).

Only one problem that is not caused by swsusp but is a bit of a head ache. X will ocationaly crash when changing VT to the console. I originally thought it was a problem with my dri resume patch for mach64, but the resume kicks in only when entering X and not when leaving so its got to be something else.

Yeah, too bad

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is working
- that perfectly good drivers were rewritten from scratch, but without functioning PM support

:-(

Regards Michael

#7 lore raw
Quoted 4 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

Quoted 2 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

Ben.

#8 lore raw

Thus wrote Benjamin Herrenschmidt:

Quoted 6 lines
Quoted 2 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

Quoted 2 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

The above are major showstoppers for most laptop users that already got used to stable and reliable swsusp and hence prefer to stick with 2.4.

Best regards,

Signature · 2 lines
Karol 'sziwan' Kozimor
[email protected]
#9 lore raw
Quoted 10 lines · Karol Kozimor

Thus wrote Benjamin Herrenschmidt:

Quoted 6 lines
Quoted 2 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

Quoted 2 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

Well, it may have survived by mere luck... the fact is that 2.4 never had an infrastructure allowing anything remotely safe for suspend/resume.

Quoted 5 lines

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

The above are major showstoppers for most laptop users that already got used to stable and reliable swsusp and hence prefer to stick with 2.4.

There haven't been a regression in the AGP drivers themselves afaik.

Ben.

#10 lore raw

Thus wrote Benjamin Herrenschmidt:

Quoted 3 lines
Quoted 2 lines

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

Well, it may have survived by mere luck... the fact is that 2.4 never

That's very likely. Anyway, pure luck is still better than no luck whatsoever...

Quoted 2 lines

had an infrastructure allowing anything remotely safe for suspend/resume.

Right, but the point is that while 2.6 has such an infrastructure, its introduction actually completely broke UHCI suspend / resume.

Quoted 3 lines
Quoted 2 lines

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

There haven't been a regression in the AGP drivers themselves afaik.

Which, again, leads us to conclusion that it was the driver model change that broke that.

I'm not trying to criticize the driver model itself (I'm sure others have already done enough), but merely to emphasize that 2.6 is not yet ready for laptop users.

Enough of that, this is becoming off-topic. :)
Best regards,

Signature · 2 lines
Karol 'sziwan' Kozimor
[email protected]
#11 lore raw
Quoted 6 lines · Karol Kozimor

Thus wrote Benjamin Herrenschmidt:
Right, but the point is that while 2.6 has such an infrastructure, its introduction actually completely broke UHCI suspend / resume.

Quoted 2 lines
Quoted 1 line

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

Quoted 8 lines
Quoted 1 line

There haven't been a regression in the AGP drivers themselves afaik.

Which, again, leads us to conclusion that it was the driver model change that broke that.

I'm not trying to criticize the driver model itself (I'm sure others have already done enough), but merely to emphasize that 2.6 is not yet ready for laptop users.

...and it's pretty obvious that it'll never be unless it's
fixed. Its kinda frustrating this agp resume thing keeps holding swsusp2 back -- everything else works (on my laptop at least).

#12 lore raw
Quoted 13 lines · Martin Wickman
Quoted 12 lines · Karol Kozimor

Thus wrote Benjamin Herrenschmidt:
Right, but the point is that while 2.6 has such an infrastructure, its introduction actually completely broke UHCI suspend / resume.

Quoted 4 lines
Quoted 2 lines

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

There haven't been a regression in the AGP drivers themselves afaik.

Which, again, leads us to conclusion that it was the driver model change that broke that.

Quoted 8 lines
Quoted 3 lines

I'm not trying to criticize the driver model itself (I'm sure others have already done enough), but merely to emphasize that 2.6 is not yet ready for laptop users.

...and it's pretty obvious that it'll never be unless it's fixed. Its kinda frustrating this agp resume thing keeps holding swsusp2 back -- everything else works (on my laptop at least).
-

PM and driver issues are holding back many non-server applications moving
from 2.4 to 2.6, and to a substantial extend prevent people moving away from XP...

Regards
Michael

#13 lore raw
In reply to Benjamin Herrenschmidt
Quoted 16 lines · Benjamin Herrenschmidt
Quoted 10 lines · Karol Kozimor

Thus wrote Benjamin Herrenschmidt:

Quoted 6 lines
Quoted 2 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

Quoted 2 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

Well, it may have survived by mere luck... the fact is that 2.4 never had an infrastructure allowing anything remotely safe for suspend/resume.

Quoted 7 lines
Quoted 5 lines

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

The above are major showstoppers for most laptop users that already got used to stable and reliable swsusp and hence prefer to stick with 2.4.

There haven't been a regression in the AGP drivers themselves afaik.

The suspend/resume calls have been removed from the drm drivers and returning them doesn't solve the resume problems (I guess either agp isn't woken up properly or something is happening in the wrong order. I haven't had time to investigate further). And I have a simple mach64 (rage mobility m1) card which is relatively easy to wake up since not much needs to be done (the agp bus is via).

Quoted 3 lines

Ben.

#14 lore raw
In reply to Karol Kozimor
Quoted 8 lines · Karol Kozimor

Thus wrote Benjamin Herrenschmidt:

Quoted 6 lines
Quoted 2 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

Quoted 2 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

Quoted 8 lines

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

The above are major showstoppers for most laptop users that already got used to stable and reliable swsusp and hence prefer to stick with 2.4.

Oh... and what about looking into the problem instead and adding/fixing the necessary stuff ? It's not _that_ rocket science (and I have no UHCI hardware to do it myself, thanks).

Ben.

#15 lore raw

Thus wrote Benjamin Herrenschmidt:

Quoted 11 lines
Quoted 8 lines

USB UHCI driver could be a fine example of a regression -- it could survive suspend in 2.4 under certain conditions, this is no longer true for 2.6.

There's also a great deal of people, who can't resume when AGP is being used -- that is again a regression over 2.4.

The above are major showstoppers for most laptop users that already got used to stable and reliable swsusp and hence prefer to stick with 2.4.

Oh... and what about looking into the problem instead and adding/fixing the necessary stuff ? It's not _that_ rocket science (and I have no UHCI hardware to do it myself, thanks).

Well, the AGP problem is black magic to me. Those hangs / reboots happen during the copying of the original kernel back (when S4 is concerned) and that's completely beyond me, sorry.

I did try to look into the USB problem back then, but again, I couldn't find anything significantly different between 2.4 and 2.6, so I backed out. Anyway, you're still right about that one should fix it instead of complaining...
Best regards,

Signature · 2 lines
Karol 'sziwan' Kozimor
[email protected]
#16 lore raw
Quoted 4 lines

Well, the AGP problem is black magic to me. Those hangs / reboots happen during the copying of the original kernel back (when S4 is concerned) and that's completely beyond me, sorry.

Where, the whole swsusp thing is very fragile by design... I'd say you probably need to disable the AGP bridge & release all AGP memory when doing that copying, and re-enable it on wakeup. The list of pages used for AGP have changed between both of those...

Quoted 5 lines

I did try to look into the USB problem back then, but again, I couldn't find anything significantly different between 2.4 and 2.6, so I backed out. Anyway, you're still right about that one should fix it instead of complaining...
Best regards,

Signature · 1 line
Benjamin Herrenschmidt <[email protected]>
#17 lore raw
In reply to Benjamin Herrenschmidt
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 4 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

It is actively used for ide, network, serial drivers with swsusp2.

Quoted 6 lines
Quoted 3 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

A few I tested:

AGP (sis, savage)
trident (Ali153x)
Serial (82x50)
Yenta (Toshiba Topic95)

Regards
Michael

#18 lore raw
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

It is actively used for ide, network, serial drivers with swsusp2.

Without any proper ordering guarantee, IDE could take requests after beeing suspended, which could be fatal (and cause data loss) etc...

Moving to the new model is easy. I don't see why we should have had such a "compatibility" path on a major kernel version, that makes no sense, just help fixing the drivers that need more fixing instead.

Quoted 16 lines
Quoted 6 lines
Quoted 3 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

A few I tested:

AGP (sis, savage)
trident (Ali153x)
Serial (82x50)
Yenta (Toshiba Topic95)

Regards
Michael

Signature · 1 line
Benjamin Herrenschmidt <[email protected]>
#19 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

- that 2.4 style PM got depreciated and let die before the "new-driver-model" PM is workin

Except that it never worked

It is actively used for ide, network, serial drivers with swsusp2.

Without any proper ordering guarantee, IDE could take requests after beeing suspended, which could be fatal (and cause data loss) etc...

Appreciated, suspending a driver like sending XOFF to a tty is ideal, but not neccessary for _most_ drivers (software suspend) purpose.

Wrt IDE, in practice all processes get frozen well before suspending drivers. Tested and no issues were ever reported with 2.4.

Quoted 4 lines

Moving to the new model is easy. I don't see why we should have had such a "compatibility" path on a major kernel version, that makes no sense, just help fixing the drivers that need more fixing instead.

What for write new drivers for (fast obsoleting) hardware?.

- Developer time is the most precious resource
- Testing of drivers is in practice very difficult due to lack of several variations of HW (one can't really test anything in one box)
- It will take _years_ for drivers to become available and reach the stability of 2.4 drivers.
- Many drivers will die for lack of overall resources to port them.

So, why burn resources on reinventing wheels, which end up poorly tested and run like a disk sliced of a tree...

What is needed is a _compatible_ infrastructure to _any_ 2.4 driver in existence and also provideing rudimentary centralized suspend and resume capability.

This infrastructure could even be a config option
CONFIG_24_DRIVER_SUPPORT
and be independent of the new model.

Then one could just drop in a driver from 2.4 and use it.

People having time to make new "pretty" drivers could also use this facility for cross checking.

Quoted 17 lines
Quoted 17 lines
Quoted 7 lines
Quoted 4 lines

- that perfectly good drivers were rewritten from scratch, but without functioning PM support

Please, give names.

A few I tested:

AGP (sis, savage)
trident (Ali153x)
Serial (82x50)
Yenta (Toshiba Topic95)

Regards
Michael

#20 lore raw
Quoted 5 lines

Then one could just drop in a driver from 2.4 and use it.

People having time to make new "pretty" drivers could also use this facility for cross checking.

I'm sorry but this is a load of bull ;)
New kernel revisions come with a new API. If we keep the old one around forever that achieves two things
1) The kernel bloats up
2) Nobody puts effort into using the new (better) API

A proof of 2 is the scsi error handling; the old one was kept around as compat for the last 5 years and only 2 or 3 drivers bothered to use the new one.

#21 lore raw
Quoted 7 lines · Arjan van de Ven
Quoted 5 lines

Then one could just drop in a driver from 2.4 and use it.

People having time to make new "pretty" drivers could also use this facility for cross checking.

I'm sorry but this is a load of bull ;)

Thank you, I do fully concur with you from an ideal scientific perspective where resources are not constrained. Applying the same perspective I might like to craft lots of drivers in assembler or even reinvent whatever..., but I do not live an ideal world.

Quoted 3 lines

New kernel revisions come with a new API. If we keep the old one around forever that achieves two things
1) The kernel bloats up

By a few %, only when old API is used, the benefits far outweighs the cost.

The old API should be an independent glue layer where incompatible. Performance is not a concern here, functionality is.

Quoted 1 line

2) Nobody puts effort into using the new (better) API

Could be fixed by the simple policy that drivers which did not exist before must use new API.

Quoted 4 lines

A proof of 2 is the scsi error handling; the old one was kept around as compat for the last 5 years and only 2 or 3 drivers bothered to use the new one.

I am not around here that long, but if those drivers were added after the API was finalized, it would have been a policy issue which does not have to be repeated.

At least, (hopefully not from an ideal perspective), the new API is good enough to last and will not have to be trown away in 2.7 or even 2.9 :)

Regards
Michael

#22 lore raw
Quoted 9 lines · Michael Frank
Quoted 6 lines · Arjan van de Ven
Quoted 5 lines

Then one could just drop in a driver from 2.4 and use it.

People having time to make new "pretty" drivers could also use this facility for cross checking.

Quoted 6 lines
Quoted 1 line

I'm sorry but this is a load of bull ;)

Thank you, I do fully concur with you from an ideal scientific perspective where resources are not constrained. Applying the same perspective I might like to craft lots of drivers in assembler or even reinvent whatever..., but I do not live an ideal world.

I do not live an ideal world, However I do live in a practical world of having to put distribution kernels together.

Quoted 6 lines
Quoted 4 lines

New kernel revisions come with a new API. If we keep the old one around forever that achieves two things
1) The kernel bloats up

By a few %, only when old API is used, the benefits far outweighs the cost.

Ehm no. You entirely forget the cost where the new API and old API need to work together, which is a significant complexity explosion. When linux grows a new API that touches so many drivers, there's a good reason for that, eg the API improves something or makes something possible.
Making powermanagement work is hard, even with 1 API to worry about. With 2 interfering API's it becomes outright impossible and untrackable. That's not a scientific perspective, that's a practical perspective where the scientific theory maybe says you can have 2 parallel api's that never interact ;)

#23 lore raw
In reply to Michael Frank
Quoted 6 lines

Appreciated, suspending a driver like sending XOFF to a tty is ideal, but not neccessary for _most_ drivers (software suspend) purpose.

Wrt IDE, in practice all processes get frozen well before suspending drivers. Tested and no issues were ever reported with 2.4.

It is still fragile. I have seen IDE requests slipping in anyway.

But IDE isn't a problem, I wrote a working PM implementation for IDE in 2.6.

Quoted 5 lines
Quoted 3 lines

Moving to the new model is easy. I don't see why we should have had such a "compatibility" path on a major kernel version, that makes no sense, just help fixing the drivers that need more fixing instead.

What for write new drivers for (fast obsoleting) hardware?.

Ok, you are at troll, no need to argue more.

#24 lore raw
In reply to Måns Rullgård

Hi!

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Quoted 6 lines
Quoted 2 lines

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume. The old swsusp doesn't even get that far.

Try current swsusp with minimal drivers, init=/bin/bash.

Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
#25 lore raw
Quoted 10 lines · Pavel Machek

Hi!

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume. The old swsusp doesn't even get that far.

Try current swsusp with minimal drivers, init=/bin/bash.

Well, if I do that it works. Or at least some old version did, I assume the later ones would too. However, that sort of removes the whole point. Taking down the system enough to be able to unload almost everything is as close as rebooting you'll get.

BTW, is there some easier way to track the development than using the patches from the web page? Unpatching after a couple of BK merges isn't the easiest thing. Is there a BK tree somewhere I can pull from?

Signature · 2 lines
Måns Rullgård
[email protected]
#26 lore raw

Hi!

Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 10 lines
Quoted 7 lines
Quoted 3 lines

Would there be any major screaming if I tried to drop CONFIG_PM_DISK? It seems noone is maintaining it, equivalent functionality is provided by swsusp, and it is confusing users...

It may be ugly, it may be unmaintained, but I get the impression that it works for some people for whom swsusp doesn't. So unless swsusp works for everyone or Nigel's swsusp2 is merged, I'd suggest leaving that in.

Do you have example when pmdisk works and swsusp does not? I'm not aware of any in recent history...

For me, none of them (pmdisk, swsusp and swsusp2) work. I did manage to get pmdisk to resume once, and swsusp2 makes it half-way through the resume. The old swsusp doesn't even get that far.

Quoted 6 lines
Quoted 1 line

Try current swsusp with minimal drivers, init=/bin/bash.

Well, if I do that it works. Or at least some old version did, I assume the later ones would too. However, that sort of removes the whole point. Taking down the system enough to be able to unload almost everything is as close as rebooting you'll get.

Well, now do a search for "which module/application causes failure".

Quoted 4 lines

BTW, is there some easier way to track the development than using the patches from the web page? Unpatching after a couple of BK merges isn't the easiest thing. Is there a BK tree somewhere I can pull from?

Are you using swsusp2? That's _not_ what I'm talking about. swsusp is in mainline.
Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
#27 lore raw
Quoted 8 lines · Pavel Machek
Quoted 6 lines
Quoted 1 line

Try current swsusp with minimal drivers, init=/bin/bash.

Well, if I do that it works. Or at least some old version did, I assume the later ones would too. However, that sort of removes the whole point. Taking down the system enough to be able to unload almost everything is as close as rebooting you'll get.

Well, now do a search for "which module/application causes failure".

I know, it just takes an awful time.

Quoted 6 lines
Quoted 4 lines

BTW, is there some easier way to track the development than using the patches from the web page? Unpatching after a couple of BK merges isn't the easiest thing. Is there a BK tree somewhere I can pull from?

Are you using swsusp2?

Well, trying to. Isn't it supposed to be the latest and greatest?

Quoted 1 line

That's _not_ what I'm talking about. swsusp is in mainline.

It would still be the same module(s) that caused it to fail, right?

Signature · 2 lines
Måns Rullgård
[email protected]
#28 lore raw

Hi!

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Try current swsusp with minimal drivers, init=/bin/bash.

Well, if I do that it works. Or at least some old version did, I assume the later ones would too. However, that sort of removes the whole point. Taking down the system enough to be able to unload almost everything is as close as rebooting you'll get.

Well, now do a search for "which module/application causes failure".

I know, it just takes an awful time.

Binary search should be pretty fast.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

BTW, is there some easier way to track the development than using the patches from the web page? Unpatching after a couple of BK merges isn't the easiest thing. Is there a BK tree somewhere I can pull from?

Are you using swsusp2?

Well, trying to. Isn't it supposed to be the latest and greatest?

It is latest, but not most stable.

Pavel

Signature · 2 lines
Horseback riding is like software...
...vgf orggre jura vgf serr.
#29 lore raw

Can you provide specific examples? I can fix bugs if I'm given reproducible issues instead of hand waving :>

Nigel

Quoted 1 line · Pavel Machek

It is latest, but not most stable.

Signature · 2 lines
My work on Software Suspend was graciously brought to you between
October and January by LinuxFund.org.
#30 lore raw

Hi!

Quoted 3 lines

Can you provide specific examples? I can fix bugs if I'm given reproducible issues instead of hand waving :>

Try compiling with regparm=3; you are likely to find some missing asmlinkages.
Pavel

Signature · 1 line
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         
#31 lore raw

Forgive my ignorance, but I don't see how that could be something that makes suspend2 less stable than the already-merged versions. They have the same problem (assuming your patch hasn't been merged yet).

Regards,

Nigel

Quoted 9 lines · Pavel Machek

Hi!

Quoted 3 lines

Can you provide specific examples? I can fix bugs if I'm given reproducible issues instead of hand waving :>

Try compiling with regparm=3; you are likely to find some missing asmlinkages.
Pavel

Signature · 2 lines
My work on Software Suspend was graciously brought to you between
October and January by LinuxFund.org.
#32 lore raw

Hi!

Quoted 3 lines

Forgive my ignorance, but I don't see how that could be something that makes suspend2 less stable than the already-merged versions. They have the same problem (assuming your patch hasn't been merged yet).

Okay... well...

swsusp2 is meant to be feature-full. in kernel swsusp is meant to be stable. Perhaps swsusp2 manages to be both feature-full and stable at same time; at that point I'm obviously doing not-too-good job.

Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
#33 lore raw
In reply to Måns Rullgård
Quoted 18 lines · Måns Rullgård
Quoted 8 lines · Pavel Machek
Quoted 6 lines
Quoted 1 line

Try current swsusp with minimal drivers, init=/bin/bash.

Well, if I do that it works. Or at least some old version did, I assume the later ones would too. However, that sort of removes the whole point. Taking down the system enough to be able to unload almost everything is as close as rebooting you'll get.

Well, now do a search for "which module/application causes failure".

I know, it just takes an awful time.

Quoted 5 lines
Quoted 4 lines

BTW, is there some easier way to track the development than using the patches from the web page? Unpatching after a couple of BK merges isn't the easiest thing. Is there a BK tree somewhere I can pull from?

Quoted 8 lines
Quoted 1 line

Are you using swsusp2?

Well, trying to. Isn't it supposed to be the latest and greatest?

Quoted 1 line

That's _not_ what I'm talking about. swsusp is in mainline.

It would still be the same module(s) that caused it to fail, right?

Further to my post yesterday, here is a short article which may be of interest.

http://lwn.net/Articles/68747/

So, to make it work better lets get PM usable :)

swsusp2 mailing list: [email protected]

Regards
Michael