From 153d5ea640aef3d1afa18a8a27735d0f765bbeef Mon Sep 17 00:00:00 2001 From: Cristian Marussi Date: Tue, 13 Sep 2022 17:08:10 +0100 Subject: [PATCH] product/juno: Deny CLOCK_CONFIG_SET to the OSPM agent for CPU clocks Some clocks, like the ones related to CPUs, must not be actionable from the OSPM agent; while CLOCK_RATE_SET is already inhibited for such clocks, the same check is missing for CLOCK_CONFIG_SET. Update the resource permission mask accordingly. Signed-off-by: Cristian Marussi --- product/juno/scp_ramfw/config_resource_perms.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/juno/scp_ramfw/config_resource_perms.c b/product/juno/scp_ramfw/config_resource_perms.c index 93b9809e3..778b65cb5 100644 --- a/product/juno/scp_ramfw/config_resource_perms.c +++ b/product/juno/scp_ramfw/config_resource_perms.c @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2019-2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -151,7 +151,8 @@ static mod_res_perms_t scmi_clock_perms[] [MOD_RES_PERMS_SCMI_CLOCK_RATE_SET_IDX][0] = ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 4)), [MOD_RES_PERMS_SCMI_CLOCK_RATE_GET_IDX][0] = 0x0, - [MOD_RES_PERMS_SCMI_CLOCK_CONFIG_SET_IDX][0] = 0x0, + [MOD_RES_PERMS_SCMI_CLOCK_CONFIG_SET_IDX][0] = + ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 4)), [MOD_RES_PERMS_SCMI_CLOCK_DESCRIBE_RATE_IDX][0] = 0x0, }, [AGENT_IDX(JUNO_SCMI_AGENT_IDX_PSCI)] = { -- GitLab