diff options
| author | Fenghua Yu <fenghuay@nvidia.com> | 2026-06-06 22:09:25 -0700 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-16 14:45:47 +0100 |
| commit | 021118ce5ea954ec316d7e30bcf4506e12eb5222 (patch) | |
| tree | 274f3d6003dc3a619d5376474248e3133df37f66 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9469764292e0d6825c9bf51d75682e3a623b9b6b (diff) | |
arm_mpam: Fix MPAMCFG_MBW_PBM register setting
MPAMCFG_MBW_PBM is written from cfg if cfg has the MBW partition feature.
It is reset when cfg does not have the MBW partition feature.
But the register handling is reversed. This may cause an incorrect
register setting. For example, during an MPAM reset, reset_cfg is
empty (no MBW partition feature set), and cfg->mbw_pbm is 0. Instead of
resetting MPAMCFG_MBW_PBM to all 1's, the current logic will set it to
cfg->mbw_pbm, which is 0.
Fix the issue by swapping the if/else branches.
Fixes: a1cb6577f575 ("arm_mpam: Reset when feature configuration bit unset")
Reported-by: Matt Ochs <mochs@nvidia.com>
Signed-off-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
