Commit 454f40af authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Yang Yingliang
Browse files

arm64/mpam: Add helper for getting MSCs' configuration



hulk inclusion
category: feature
bugzilla: 34278
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 avatarCheng Jian <cj.chengjian@huawei.com>
parent 3a6c2e47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment