arm64/mpam: Separate internal and downstream priority event
hulk inclusion
category: feature
feature: ARM MPAM support
bugzilla: 48265
CVE: NA
--------------------------------
There are two aspects involved:
- Getting configuration
We divide event QOS_XX_PRI_EVENT_ID into QOS_XX_INTPRI_EVENT_ID and
QOS_XX_DSPRI_EVENT_ID, in spite of having attempted to set same value
of filling dspri and intpti in mpam_config structure but exactly we
need read seperately to ensure their independence.
Besides, an event such as QOS_CAT_INTPRI_EVENT_ID is not necessary to
be read from MSC's register but set to be 0 directly if corresponding
feature doesn't support.
- Applying configuration
When applying downstream or internal priority configuration, given
the independence of their two, we should check if feature mpam_feat_
xxpri_part supported first and next check mpam_feat_xxpri_part_0_low,
and convert dspri and intpri into a proper value according to it's max
width.
Signed-off-by:
Wang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by:
Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by:
Cheng Jian <cj.chengjian@huawei.com>
Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment