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

arm64/mpam: resctrl: Append schemata CDP definitions

hulk inclusion
category: feature
bugzilla: 34278
CVE: NA

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

CDP (Code and Data Prioritization) should also be supported, because
separate code and data caches is an illusion resctrl creates using
CDP, as James said, The L2 cache is controlled from one place regardless.
Arm doesn't specify a cache topology. Platforms may have separate L2
code and data caches, with independent controls. On such a system
we would need a unified L2 cache to be an illusion. To support Arm's
MPAM, we need CDP to not be implicit between the architecture code
and the file-system code. this add a series definitions independent
of resctrl resources.

To do this we make the code/data/both 'type' a property of the
configuration that comes from the schema. This lets us combined the
illusionary cache. Eventually we separate the architecture code and
file-system code's idea of closid, the architecture code can then
provide helpers to map one to the other.

Part of this code is borrowed to James's, See links.

Link: http://www.linux-arm.org/git?p=linux-jm.git;a=commit;h=57a6f6204f72e2afc116721b2b86451fa19a32a6
Link: http://www.linux-arm.org/git?p=linux-jm.git;a=commit;h=1385052cce87a8aed5dc0e96967cedd9e74a17e0


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