[PATCH v2 7/8] ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM

Marc Zyngier maz at kernel.org
Sun Feb 12 03:59:40 PST 2023


On Fri, 10 Feb 2023 16:54:59 +0000,
Zaid Al-Bassam <zalbassam at google.com> wrote:
> 
> From: Marc Zyngier <marc.zyngier at arm.com>
> 
> The only thing stopping the PMUv3 driver from compiling on 32bit
> is the lack of defined system registers names and the handful of
> required helpers.
> 
> This is easily solved by providing the sysreg accessors and updating
> the Kconfig entry.
> 
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
> Co-developed-by: Zaid Al-Bassam <zalbassam at google.com>
> Signed-off-by: Zaid Al-Bassam <zalbassam at google.com>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
> Link: https://lore.kernel.org/r/20230126204444.2204061-8-zalbassam@google.com
> ---
>  arch/arm/include/asm/arm_pmuv3.h | 259 +++++++++++++++++++++++++++++++
>  drivers/perf/Kconfig             |   5 +-
>  drivers/perf/arm_pmuv3.c         |   5 +-
>  3 files changed, 265 insertions(+), 4 deletions(-)
>  create mode 100644 arch/arm/include/asm/arm_pmuv3.h
> 
> diff --git a/arch/arm/include/asm/arm_pmuv3.h b/arch/arm/include/asm/arm_pmuv3.h
> new file mode 100644
> index 0000000000000..b2d9dc9dedbac
> --- /dev/null
> +++ b/arch/arm/include/asm/arm_pmuv3.h
> @@ -0,0 +1,259 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +/*
> + * Copyright (C) 2012 ARM Ltd.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see <http://www.gnu.org/licenses/>.
> + */

Same remark here.

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list