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

arm64/mpam: Add helper for getting MSCs' configuration



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

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

resctrl sysfs need to show MSCs' configuration applied, we can get this
intermediate data from mpam config structure live in each component
straightforwardly, but for safety we look at the exact value of those
registers in any cases, althought it will spend a few time.

We add independent helper separated from do_device_sync() according to
James' implementation, purposely reading single device for one component,
it is because all devices in one component will be uniformly configured
in one configuration process, so reading single device is sufficient for
getting each component's configuration.

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