linux/drivers/firmware/arm_scmi
Sudeep Holla 534224b958 firmware: arm_scmi: Warn if domain frequency multiplier is 0 or rounded off
When (sustained_freq_khz * 1000) is less than sustained_perf_level, the
multiplier will be less than 1 and hence rounded down as 0. Similarly if
it is not multiple of sustained_perf_level the dom_info->mult_factor will
contain rounded down value and will end up impacting all the frequency
calculations done using it.

Add warning if and when the domain frequency multiplier is 0 or rounded
down so that it gives a clue to get the firmware tables fixed.

Suggested-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240119152338.3047620-1-sudeep.holla@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2024-02-20 06:29:26 +00:00
..
base.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
bus.c
clock.c firmware: arm_scmi: Fix the clock protocol supported version 2024-01-22 10:01:17 +00:00
common.h firmware: arm_scmi: Check mailbox/SMT channel for consistency 2024-01-22 10:01:16 +00:00
driver.c Char/Misc and other Driver changes for 6.8-rc1 2024-01-17 16:47:17 -08:00
Kconfig pmdomain: arm_scmi: Move Kconfig options to the pmdomain subsystem 2023-11-23 17:32:53 +01:00
mailbox.c firmware: arm_scmi: Check mailbox/SMT channel for consistency 2024-01-22 10:01:16 +00:00
Makefile firmware: arm_scmi: Move power-domain driver to the pmdomain dir 2023-09-21 16:35:14 +01:00
msg.c
notify.c
notify.h
optee.c firmware: arm_scmi: optee: use optee system invocation 2023-11-17 15:48:03 +01:00
perf.c firmware: arm_scmi: Warn if domain frequency multiplier is 0 or rounded off 2024-02-20 06:29:26 +00:00
power.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
powercap.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
protocols.h firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
raw_mode.c firmware: arm_scmi: Use xa_insert() when saving raw queues 2024-01-22 10:01:17 +00:00
raw_mode.h
reset.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
scmi_power_control.c
sensors.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
shmem.c firmware: arm_scmi: Replace asm-generic/bug.h with linux/bug.h 2024-01-22 10:01:16 +00:00
smc.c firmware: arm_scmi: Add qcom smc/hvc transport support 2023-10-09 22:07:13 +01:00
system.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00
virtio.c
voltage.c firmware: arm_scmi: Add protocol versioning checks 2023-12-01 16:46:10 +00:00