thermal/core: Disable uevent messages for cooling devices
RFC 1/1 thermal/core: Disable uevent messages for cooling devices
During suspend, the big CPU cluster is turned off first while a little is still running. This forcibly unregisters the cooling device which sends a "REMOVE" uevent to all subscribers [1].
In case userspace netlink subscriber has set the EPOLLWAKEUP flag, a wakeup event is triggered that causes suspend to be aborted.
Without this change, suspend doesn't work on PinePhone PRO with AOSP userland.
--- drivers/thermal/thermal_core.c | 1 + 1 file changed, 1 insertion(+)
drivers/thermal/thermal_core.c +1 -0
@@ -925,6 +925,7 @@ __thermal_cooling_device_register(struct device_node *np, cdev->device.class = &thermal_class; cdev->devdata = devdata;thermal_cooling_device_setup_sysfs (cdev); +dev_set_uevent_suppress (&cdev->device, true); ret =device_register (&cdev->device);if (ret) goto out_kfree_type;
Signature · 1 line
2.34.1
Quoted 5 lines · Roman Stratiienko
During suspend, the big CPU cluster is turned off first while a little is still running. This forcibly unregisters the cooling device which sends a "REMOVE" uevent to all subscribers [1].
Quoted 8 lines
In case userspace netlink subscriber has set the EPOLLWAKEUP flag, a wakeup event is triggered that causes suspend to be aborted.
Without this change, suspend doesn't work on PinePhone PRO with AOSP userland.
Signed-off-by Roman Stratiienko <[email protected]>
Hey Roman,
I wanted to drudge this patch up, to ask what the current status of
it was? Is there an alternative solution that you've been using since this was last sent out?
I've heard of some vendors working around something similar, so I wanted to see if we could get a common fix upstream.
thanks
-john
Hi John,
I haven't worked on it since I posted it initially. But it looks like there's an alternative patch already upstreamed and backported into stable:
BR,
Roman
пн, 8 апр. 2024 г. в 21:48, John Stultz <[email protected]>:
Quoted 26 lines
Quoted 5 lines · Roman Stratiienko
During suspend, the big CPU cluster is turned off first while a little is still running. This forcibly unregisters the cooling device which sends a "REMOVE" uevent to all subscribers [1].
Quoted 8 lines
In case userspace netlink subscriber has set the EPOLLWAKEUP flag, a wakeup event is triggered that causes suspend to be aborted.
Without this change, suspend doesn't work on PinePhone PRO with AOSP userland.
Signed-off-by Roman Stratiienko <[email protected]>Hey Roman,
I wanted to drudge this patch up, to ask what the current status of
it was? Is there an alternative solution that you've been using since this was last sent out?
I've heard of some vendors working around something similar, so I wanted to see if we could get a common fix upstream.thanks
-john
Quoted 6 lines · Roman Stratiienko
I haven't worked on it since I posted it initially. But it looks like there's an alternative patch already upstreamed and backported into stable:
Ah! Many thanks for the link! I'll check in with folks to better understand if there is a functionality gap between what you submitted and what landed upstream.
Thanks again!
-john
Quoted 8 lines · John Stultz
Quoted 5 lines · Roman Stratiienko
I haven't worked on it since I posted it initially. But it looks like there's an alternative patch already upstreamed and backported into stable:
Quoted 5 lines
Quoted 1 line
Ah! Many thanks for the link! I'll check in with folks to better understand if there is a functionality gap between what you submitted and what landed upstream.
Ah. Looks like it maybe hasn't landed in -stable yet.
Thanks again for the pointer!
-john