arm-trusted-firmware/plat/arm/common
Jayanth Dodderi Chidanand 0a9c244b05 fix(psci): mask the Last in Level nibble in StateId
In the ARM recommended StateID Encoding, the index for the power
level where the calling core is last to go idle use the last niblle
of the StateId.

Even if this nibble is necessary for OS-initiated mode, it can be
used by caller even when this OSI mode is not used.

In arm_validate_power_state() function, the StateId is compared with
content of arm_pm_idle_states[] build with the arm_make_pwrstate_lvl2
macro, without Last in Level information. So it is safe to mask this
nibble for ARM platform in all the cases, and that avoids issues with
caller with use the same StateId encoding with OSI mode activated or
not (in tftf tests for example, the input(power state) parameter =
(0x40001022) and the associated power state is 0x40000022).

Change-Id: I45e8e2b8f526fb61b94cf134d7d4aa3bac4c215d
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2024-05-08 10:09:07 +01:00
..
aarch32 chore: use tabs for indentation 2022-08-30 19:40:44 +02:00
aarch64 chore(auth)!: remove CryptoCell-712/713 support 2023-11-08 10:42:33 +02:00
fconf fix(fconf): boot fails using ARM_ARCH_MINOR=8 2024-01-30 12:15:52 +01:00
sp_min feat(plat/arm): enable PIE when RESET_TO_SP_MIN=1 2021-06-29 11:59:01 +01:00
trp feat(rme): set DRAM information in Boot Manifest platform data 2023-01-17 16:35:41 +00:00
tsp fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
arm_bl1_fwu.c fvp_r: load, auth, and transfer from BL1 to BL33 2021-09-30 17:07:11 +01:00
arm_bl1_setup.c feat(arm): support FW handoff b/w BL1 & BL2 2024-04-26 09:00:12 +00:00
arm_bl2_el3_setup.c feat(bl2): add gpt support 2023-10-31 23:00:37 +01:00
arm_bl2_setup.c refactor(cpufeat): add macro to simplify is_feat_xx_present 2024-05-02 12:16:16 -05:00
arm_bl2u_setup.c Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
arm_bl31_setup.c feat(handoff): add support for RESET_TO_BL2 2024-04-26 09:00:13 +00:00
arm_cci.c plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
arm_ccn.c plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
arm_common.c feat(arm): move GPT setup to common BL source 2024-01-25 10:45:22 +00:00
arm_common.mk feat(arm): support FW handoff b/w BL2 & BL31 2024-04-26 09:00:12 +00:00
arm_console.c fix(fvp): FCONF Trace Not Shown 2022-03-10 16:03:41 +01:00
arm_dyn_cfg.c fix(arm): only expose arm_bl2_dyn_cfg_init to BL2 2024-04-11 11:20:35 +00:00
arm_dyn_cfg_helpers.c feat(tc): add DPE context handle node to device tree 2024-03-06 16:55:23 +01:00
arm_err.c feat(fvp): add plat API to set and get the DRTM error 2022-10-05 15:25:28 +01:00
arm_gicv2.c plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
arm_gicv3.c fix(ras): remove RAS_FFH_SUPPORT and introduce FFH_SUPPORT 2023-11-01 17:45:56 +00:00
arm_image_load.c feat(arm): support FW handoff b/w BL2 & BL31 2024-04-26 09:00:12 +00:00
arm_io_storage.c feat(fwu): pass a const metadata structure to platform routines 2022-01-27 18:09:02 +05:30
arm_nor_psci_mem_protect.c Coverity: remove unnecessary header file includes 2020-02-04 10:23:51 -06:00
arm_pm.c fix(psci): mask the Last in Level nibble in StateId 2024-05-08 10:09:07 +01:00
arm_sip_svc.c refactor(smccc): move pmf to vendor el3 calls 2024-05-06 09:42:11 -05:00
arm_topology.c plat/arm: use Aff3 bits also to validate mpidr 2019-10-21 14:09:46 +01:00
arm_transfer_list.c feat(arm): support FW handoff b/w BL2 & BL31 2024-04-26 09:00:12 +00:00
arm_tzc400.c plat/arm/tzc: add support to configure multiple tzc400 2020-02-19 13:26:53 +05:30
arm_tzc_dmc500.c plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
plat_arm_sip_svc.c fix(spm): reduce verbosity on passing tf-a-tests 2024-02-23 10:41:56 +01:00