Skip to content

firmware: arm_scmi: Lock powercap state updates

Philip Radford arm-scmi linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1firmware: arm_scmi: Lock powercap state updatesdrivers/firmware/arm_scmi/powercap.c+33 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/1] firmware: arm_scmi: Lock powercap state updates

Hi,

This patch addresses an SCMI powercap bug reported by Sashiko.

Concurrent sysfs writes could lead to conflicting cached values in a powercap domain, specifically the enabled and last_pcap values. This patch adds a mutex lock to avoid this from happening.

Based on v7.4-rc5 and tested on an emulated setup.

Regards,
Phil

Philip Radford (1):
firmware: arm_scmi: Lock powercap state updates

 drivers/firmware/arm_scmi/powercap.c | 37 +++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 4 deletions(-)

--
2.34.1