Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> writes: [snip] > At the end of the day, I stand my ground, the freezer cannot be made > reliable without massive infrastructure changes or giving up on very > useful features such as fuse among others. Besides, it only partially > "hides" the problem of requests going to drivers, thus it's a bad > solutions. I agree that the freezer absolutely should not be used for suspend to ram ("suspend"), since it is unnecessary with properly written drivers, which are important to have anyway. It seems that it is indeed the consensus that it will be phased out sooner or later. It does seem that the current device suspend interface does not tell the drivers enough, since as discussed, they need to know whether to merely block if they receive a request while suspended (as should be done while initiating a suspend to ram), or if they should wake up the device (as should be done if a suspend to ram is not in progress). Clearly these two cases need to be addressed by every driver supporting suspend/resume (but possibly indirectly if the subsystem handles it for them). The current hibernate approach used by all of the existing implementations for Linux seems to depend fundamentally on the freezer, though, in order to actually save the system state. Thus, it will still be necessary to fix all of the issues with the freezer, or adopt an alternate hibernate approach (which is unlikely). Unfortunately, even leaving kernel threads and certain drivers running after the snapshot is taken means that the saved image isn't completely correct, and the freezer cannot help with these issues. [snip] -- Jeremy Maitin-Shepard _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm