hulk inclusion category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/8421 ------------------------------------------ In some ACPI versions, cache information (such as L2) other than L3 is reported. Due to the fact that the 5.10 MPAM ACPI does not support parsing the CPU affinity information of the msc, and therefore does not support the mounting of the L2 function. As a result, an error occurs when the device is detected subsequently. The mpam of the current 5.10 kernel version provides only L3 cache-related functions. Therefore, when parsing ACPI, only the mpam device of the L3 cache can be created to avoid the preceding problem. Signed-off-by: Quanmin Yan <yanquanmin1@huawei.com> --- drivers/acpi/arm64/mpam_v2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/arm64/mpam_v2.c b/drivers/acpi/arm64/mpam_v2.c index 6a9a4d013380..899aee1ab76e 100644 --- a/drivers/acpi/arm64/mpam_v2.c +++ b/drivers/acpi/arm64/mpam_v2.c @@ -77,6 +77,14 @@ static int __init acpi_mpam_parse_cache_v2(struct acpi_mpam_msc_node *msc, ci = NULL; cpus_read_unlock(); + /* + * 5.10 MPAM ACPI does not support parsing the CPU affinity + * information of the msc, and therefore the L2 devices + * cannot be created. + */ + if (level != 3) + return 0; + /* * Possible we can get cpu-affinity in next MPAM ACPI version, * now we have to set it to NULL and use default possible_aff- -- 2.43.0