diff --git a/arch/arm64/include/asm/mpam_resource.h b/arch/arm64/include/asm/mpam_resource.h index 0ae205d250bcda542a967b72efc47363f8991f50..beadd2c64c31cb90aa0609b571f6025fffba4f1d 100644 --- a/arch/arm64/include/asm/mpam_resource.h +++ b/arch/arm64/include/asm/mpam_resource.h @@ -1,5 +1,4 @@ -/* mpam resource: like L3, memory */ - +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ARM64_MPAM_RESOURCE_H #define _ASM_ARM64_MPAM_RESOURCE_H diff --git a/arch/arm64/include/asm/mpam_sched.h b/arch/arm64/include/asm/mpam_sched.h index 14638793e53e5db702d878404792e6746057a8c2..f0552e6dc9bc5bbd26334ab02539ddb7c89b231c 100644 --- a/arch/arm64/include/asm/mpam_sched.h +++ b/arch/arm64/include/asm/mpam_sched.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ARM64_MPAM_SCHED_H #define _ASM_ARM64_MPAM_SCHED_H diff --git a/arch/arm64/kernel/mpam.c b/arch/arm64/kernel/mpam.c index 0067e21a65b03b3d9488ef07829176950fc45a6d..9cd8ebc758728e85299e9a1d7d47d216b3d4453e 100644 --- a/arch/arm64/kernel/mpam.c +++ b/arch/arm64/kernel/mpam.c @@ -1,13 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * Resource Director Technology(RDT) - * - Cache Allocation code. + * Common code for ARM v8 MPAM * * Copyright (C) 2016 Intel Corporation + * Copyright (C) 2018-2019 Huawei Technologies Co., Ltd * * Authors: - * Fenghua Yu - * Tony Luck - * Vikas Shivappa + * Fenghua Yu + * Tony Luck + * Vikas Shivappa + * Xie XiuQi + * + * Code was partially borrowed from arch/x86/kernel/cpu/intel_rdt*. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -18,8 +22,10 @@ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * - * More information about RDT be found in the Intel (R) x86 Architecture - * Software Developer Manual June 2016, volume 3, section 17.17. + * More information about MPAM be found in the Arm Architecture Reference + * Manual. + * + * https://static.docs.arm.com/ddi0598/a/DDI0598_MPAM_supp_armv8a.pdf */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt diff --git a/arch/arm64/kernel/mpam_ctrlmon.c b/arch/arm64/kernel/mpam_ctrlmon.c index 86e50fd19309a17dca64865eb9cf47fec39734d8..c9d306a93b246ae42ac36dc9a17770e1c6cf5fb2 100644 --- a/arch/arm64/kernel/mpam_ctrlmon.c +++ b/arch/arm64/kernel/mpam_ctrlmon.c @@ -1,12 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * Resource Director Technology(RDT) - * - Cache Allocation code. + * Common code for ARM v8 MPAM + * - allocation and monitor management * * Copyright (C) 2016 Intel Corporation + * Copyright (C) 2018-2019 Huawei Technologies Co., Ltd * * Authors: - * Fenghua Yu - * Tony Luck + * Fenghua Yu + * Tony Luck + * Xie XiuQi + * + * Code was partially borrowed from arch/x86/kernel/cpu/intel_rdt*. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -17,8 +22,10 @@ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * - * More information about RDT be found in the Intel (R) x86 Architecture - * Software Developer Manual June 2016, volume 3, section 17.17. + * More information about MPAM be found in the Arm Architecture Reference + * Manual. + * + * https://static.docs.arm.com/ddi0598/a/DDI0598_MPAM_supp_armv8a.pdf */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt diff --git a/arch/arm64/kernel/mpam_mon.c b/arch/arm64/kernel/mpam_mon.c index 407da95ae9270d9659550810bdab61538e8f9388..4ff0f7e1f9d2c4923e5e9f1eb4927610ef594d54 100644 --- a/arch/arm64/kernel/mpam_mon.c +++ b/arch/arm64/kernel/mpam_mon.c @@ -1,14 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * Resource Director Technology(RDT) - * - Monitoring code + * Common code for ARM v8 MPAM * * Copyright (C) 2017 Intel Corporation + * Copyright (C) 2018-2019 Huawei Technologies Co., Ltd * * Author: - * Vikas Shivappa + * Vikas Shivappa + * Xie XiuQi * - * This replaces the cqm.c based on perf but we reuse a lot of - * code and datastructures originally from Peter Zijlstra and Matt Fleming. + * Code was partially borrowed from arch/x86/kernel/cpu/intel_rdt*. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -19,8 +20,10 @@ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * - * More information about RDT be found in the Intel (R) x86 Architecture - * Software Developer Manual June 2016, volume 3, section 17.17. + * More information about MPAM be found in the Arm Architecture Reference + * Manual. + * + * https://static.docs.arm.com/ddi0598/a/DDI0598_MPAM_supp_armv8a.pdf */ #include diff --git a/fs/resctrlfs.c b/fs/resctrlfs.c index fa6bbe0f1c260570491e28d8994ab5e2d34e19a0..4d3fa5da03796608dcde5135f5639e8e26c3b94a 100644 --- a/fs/resctrlfs.c +++ b/fs/resctrlfs.c @@ -1,9 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * User interface for Resource Alloction in Resource Director Technology(RDT) + * User interface for ARM v8 MPAM * * Copyright (C) 2016 Intel Corporation + * Copyright (C) 2018-2019 Huawei Technologies Co., Ltd * - * Author: Fenghua Yu + * Author: + * Fenghua Yu + * Xie XiuQi + * + * Code was partially borrowed from arch/x86/kernel/cpu/intel_rdt*. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -14,8 +20,10 @@ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * - * More information about RDT be found in the Intel (R) x86 Architecture - * Software Developer Manual. + * More information about MPAM be found in the Arm Architecture Reference + * Manual. + * + * https://static.docs.arm.com/ddi0598/a/DDI0598_MPAM_supp_armv8a.pdf */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt diff --git a/include/linux/resctrlfs.h b/include/linux/resctrlfs.h index 6650f8c7672a044cf758310ea49f3585f32c6d0f..e192fd55c316906780c54bd0dc6d02c30d68b316 100644 --- a/include/linux/resctrlfs.h +++ b/include/linux/resctrlfs.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _RESCTRLFS_H #define _RESCTRLFS_H