Commit b4b31879 authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Zheng Zengkai
Browse files

arm64/mpam: Fix MPAM_ESR intPARTID_range error



hulk inclusion
category: feature
feature: ARM MPAM support
bugzilla: 48265
CVE: NA

--------------------------------

MPAM spec says, when an MPAMCFG register other than MPAMCFG_INTPARTID
is read or written, if the value of MPAMCFG_PART_SEL.INTERNAL is not 1,
MPAMF_ESR is set to indicate an intPARTID_Range error. So we should
set MPAMCFG_PART_SEL.INTERNAL to 1 before reading MPAMCFG_PRI register.

Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8d7469cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment