Thread (9 messages) 9 messages, 5 authors, 2021-07-29

Re: [PATCH v2 1/2] PM: enable support for imminent power loss

From: Pavel Machek <hidden>
Date: 2021-07-26 19:41:56
Also in: linux-pm, lkml

Hi!
If the shutdown is pwerformed when the platform is running on the
limited backup power supply, some of the devices might not have enough
power to perform a clean shutdown.

It is necessary to inform the driver about the limited backup power
supply, to allow the driver to decide to perform the minimal required
operation for a fast and clean shutdown.
If you can do shutdown that is fast & clean, why not do it always?

How fast is normal shutdown vs. fast shutdown?
+#define PM_SUSPEND_FLAG_POWER_LOSS_IMMINENT	BIT(3)
I believe we should be more concrete here. Like explaining use (did
UPS say battery is low? Or does it mean 10 seconds remaining? Or...?)

Plus, who sets this flag? Userland?

Best regards,
								Pavel


-- 

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help