firmware: ti_sci: Convert CPU latency constraint from us to ms
authorKendall Willis <k-willis@ti.com>
Mon, 28 Apr 2025 20:53:36 +0000 (15:53 -0500)
committerNishanth Menon <nm@ti.com>
Tue, 6 May 2025 12:25:51 +0000 (07:25 -0500)
commit9b808f7f395ae375a26e32046b680cf898dacc21
tree533bcf2ac3bee7d984b1a1a9117cf58030d8c1d3
parentc62bc66d53de9a61154224f99c1b4ca68ed57208
firmware: ti_sci: Convert CPU latency constraint from us to ms

Fix CPU resume latency constraint units sent to device manager through the
TI SCI API. The device manager expects CPU resume latency to be in msecs
which is passed in with the TI SCI API [1]. CPU latency constraints are
set in userspace using the PM QoS framework which uses usecs as the unit.
Since PM QoS uses usecs for units and the device manager expects msecs as
the unit, TI SCI needs to convert from usecs to msecs before passing to
device manager.

[1] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html#tisci-msg-lpm-set-latency-constraint

Cc: stable@vger.kernel.org
Fixes: a7a15754c7f7 ("firmware: ti_sci: add CPU latency constraint management")
Signed-off-by: Kendall Willis <k-willis@ti.com>
Link: https://lore.kernel.org/r/20250428205336.2947118-1-k-willis@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/firmware/ti_sci.c