Commit a7a15754 authored by Kevin Hilman's avatar Kevin Hilman Committed by Nishanth Menon
Browse files

firmware: ti_sci: add CPU latency constraint management



During system-wide suspend, check if any of the CPUs have PM QoS
resume latency constraints set.  If so, set TI SCI constraint.

TI SCI has a single system-wide latency constraint, so use the max of
any of the CPU latencies as the system-wide value.

Note: DM firmware clears all constraints at resume time, so
constraints need to be checked/updated/sent at each system suspend.

Co-developed-by: default avatarVibhore Vardhan <vibhore@ti.com>
Signed-off-by: default avatarVibhore Vardhan <vibhore@ti.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Tested-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarMarkus Schneider-Pargmann <msp@baylibre.com>
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Tested-by: default avatarRoger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20241007-tisci-syssuspendresume-v13-5-ed54cd659a49@baylibre.com


Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 60357991
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment