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

arm64/mpam: Squash default priority from mpam device to class



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

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

Store default priority in mpam class structure from reading devices'
intpri_wd and dspri_wd.

intpri_wd and dspri_wd represent the number of implemented bits in the
internal/downstream priority field in MPAMCFG_PRI, when INTPRI_0_IS_LOW
/DSPRI_0_IS_LOW is not set, we need to rotate input priority(higher value
higher priority) from user space to target priority (higher value lower
priority) and this is restricted by implemented bits.

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 2d9bc8aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment