arm64/mpam: Add resctrl_ctrl_feature structure to manage ctrl features
hulk inclusion
category: feature
feature: ARM MPAM support
bugzilla: 48265
CVE: NA
--------------------------------
Structure resctrl_ctrl_feature taken by resources is introduced to manage
ctrl features, of which characteristic like max width from outer input
and the base we parse from.
Now it is more practical for declaring a new ctrl feature, such as SCHEMA_PRI
feature, only associated with internal priority setting exported by mpam
devices, where informations is collected from mpam_resctrl_resource_init(),
and next be chosen open or close by user options.
ctrl_ctrl_feature structure contains a flags field to avoid duplicated
control type, for instance, SCHEMA_COMM feature selectes cpbm (Cache
portion bitmap) as resource Cache default control type, so we should not
enable this feature no longer if user manually selectes cpbm control
type through mount options.
This field evt in ctrl_ctrl_feature structure is enum rdt_event_id type
variable which works like eee4ad2a36e6 ("arm64/mpam: Add hook-events id
for ctrl features") illustrates.
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