firmware: arm_sdei: cleanup locking issues
Status from this message: Queued for 5.7. Thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | firmware: arm_sdei: fix double-lock on hibernate with shared eventsdrivers/ | +15 | 0 replies | |
| 2/4 | firmware: arm_sdei: fix possible double-lock on hibernate error pathdrivers/ | +13 | 0 replies | |
| 3/4 | firmware: arm_sdei: Use cpus_read_lock() to avoid races with cpuhpdrivers/ | +14 | 0 replies | |
| 4/4 | firmware: arm_sdei: clean up sdei_event_create()drivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] firmware: arm_sdei: cleanup locking issues
Hello,
Liguang Zhang spotted the SDEI driver would try to take the same lock twice on its resume from hibernate path. Testing this uncovered that the re-enable flags are updated in the wrong place, meaning the driver never tries to re-register shared events on resume from hibernate. Oops.
The first two patches fix these two issues. As the bug was found by inspection, and its always been broken, I think this can wait for v5.7.
The last two patches cleanup some unnecessary work, and close another cpuhp race by grabbing cpus_read_lock().
Any chance this can go via arm64, which is the route all the patches to this file have taken so far? The SOC tree is the obvious alternative. If its easier, I can send a pull request.
Bugs welcome,
Thanks,
James Morse (2):
firmware: arm_sdei: fix double-lock on hibernate with shared events
firmware: arm_sdei: Use cpus_read_lock() to avoid races with cpuhp
Liguang Zhang (2):
firmware: arm_sdei: fix possible double-lock on hibernate error path
firmware: arm_sdei: clean up sdei_event_create()
drivers/firmware/arm_sdei.c | 71 +++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 35 deletions(-)
Signature · 7 lines
2.24.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel