diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-09-30 13:12:12 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-10-04 09:14:20 +0000 |
| commit | b52ef450139f5632d7e53e6fd5f5ec46c7029dac (patch) | |
| tree | 7aacb2c7df04b5c7965e8b41a9c16ecde6d618f8 /include | |
| parent | e060d9069b49fe55f38057dfe592068014652671 (diff) | |
arm64/boot: Don't set PMUv3p9 FGT2 bits without PMUv3
On a CPU with FGT2 and an IMPLEMENTATION DEFINED PMU (PMUVer 0b1111),
__init_el2_fgt2 sets the PMUv3p9 bits in HDFGRTR2_EL2 and HDFGWTR2_EL2,
which are RES0 there. The macro only checks that PMUVer is at least
PMUv3p9, and 0b1111 passes.
Exclude 0b1111 before the compare, as __init_el2_debug does.
Fixes: 858c7bfcb35e1 ("arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Bradley Morgan <brads@mainlining.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
