Commit 843a90db authored by Xie XiuQi's avatar Xie XiuQi Committed by Zheng Zengkai
Browse files

arm64/mpam: correct num of partid/pmg



hulk inclusion
category: bugfix
bugzilla: 48265
CVE: NA

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

Perious we hard code num of partids and pmgs, now
we get it from MPAMF_IDS regs. The id is start from 0,
so NUM = MAX + 1. Fix it.

Hi1620's new spec use NUM_MAX as the MAX id of partid/pmg.

Signed-off-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 143014f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment