linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720
@ 2023-06-30 18:56 Rob Herring
  2023-06-30 18:56 ` [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Rob Herring
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rob Herring @ 2023-06-30 18:56 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-kernel, devicetree, linux-kernel

Add compatible strings for the Arm Cortex-A520, Cortex-A715, and
Cortex-A720 CPU PMUs.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/pmu.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
index e14358bf0b9c..0cc468d6c372 100644
--- a/Documentation/devicetree/bindings/arm/pmu.yaml
+++ b/Documentation/devicetree/bindings/arm/pmu.yaml
@@ -49,7 +49,10 @@ properties:
           - arm,cortex-a77-pmu
           - arm,cortex-a78-pmu
           - arm,cortex-a510-pmu
+          - arm,cortex-a520-pmu
           - arm,cortex-a710-pmu
+          - arm,cortex-a715-pmu
+          - arm,cortex-a720-pmu
           - arm,cortex-x1-pmu
           - arm,cortex-x2-pmu
           - arm,neoverse-e1-pmu
-- 
2.40.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs
  2023-06-30 18:56 [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Rob Herring
@ 2023-06-30 18:56 ` Rob Herring
  2023-07-03 10:09   ` Mark Rutland
  2023-07-03 16:07 ` [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Conor Dooley
  2023-07-03 19:40 ` Robin Murphy
  2 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2023-06-30 18:56 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-kernel, devicetree, linux-kernel

Add support for the Arm Cortex-A520, Cortex-A715, and Cortex-A720 CPU
PMUs. They are straight-forward additions with just new compatible
strings.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/perf/arm_pmuv3.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c
index 08b3a1bf0ef6..0bf522b05dc3 100644
--- a/drivers/perf/arm_pmuv3.c
+++ b/drivers/perf/arm_pmuv3.c
@@ -1266,7 +1266,10 @@ PMUV3_INIT_SIMPLE(armv8_cortex_a76)
 PMUV3_INIT_SIMPLE(armv8_cortex_a77)
 PMUV3_INIT_SIMPLE(armv8_cortex_a78)
 PMUV3_INIT_SIMPLE(armv9_cortex_a510)
+PMUV3_INIT_SIMPLE(armv9_cortex_a520)
 PMUV3_INIT_SIMPLE(armv9_cortex_a710)
+PMUV3_INIT_SIMPLE(armv9_cortex_a715)
+PMUV3_INIT_SIMPLE(armv9_cortex_a720)
 PMUV3_INIT_SIMPLE(armv8_cortex_x1)
 PMUV3_INIT_SIMPLE(armv9_cortex_x2)
 PMUV3_INIT_SIMPLE(armv8_neoverse_e1)
@@ -1334,7 +1337,10 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
 	{.compatible = "arm,cortex-a77-pmu",	.data = armv8_cortex_a77_pmu_init},
 	{.compatible = "arm,cortex-a78-pmu",	.data = armv8_cortex_a78_pmu_init},
 	{.compatible = "arm,cortex-a510-pmu",	.data = armv9_cortex_a510_pmu_init},
+	{.compatible = "arm,cortex-a520-pmu",	.data = armv9_cortex_a520_pmu_init},
 	{.compatible = "arm,cortex-a710-pmu",	.data = armv9_cortex_a710_pmu_init},
+	{.compatible = "arm,cortex-a715-pmu",	.data = armv9_cortex_a715_pmu_init},
+	{.compatible = "arm,cortex-a720-pmu",	.data = armv9_cortex_a720_pmu_init},
 	{.compatible = "arm,cortex-x1-pmu",	.data = armv8_cortex_x1_pmu_init},
 	{.compatible = "arm,cortex-x2-pmu",	.data = armv9_cortex_x2_pmu_init},
 	{.compatible = "arm,neoverse-e1-pmu",	.data = armv8_neoverse_e1_pmu_init},
-- 
2.40.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs
  2023-06-30 18:56 ` [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Rob Herring
@ 2023-07-03 10:09   ` Mark Rutland
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Rutland @ 2023-07-03 10:09 UTC (permalink / raw)
  To: Rob Herring
  Cc: Will Deacon, Krzysztof Kozlowski, Conor Dooley, linux-arm-kernel,
	devicetree, linux-kernel

On Fri, Jun 30, 2023 at 12:56:02PM -0600, Rob Herring wrote:
> Add support for the Arm Cortex-A520, Cortex-A715, and Cortex-A720 CPU
> PMUs. They are straight-forward additions with just new compatible
> strings.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.

> ---
>  drivers/perf/arm_pmuv3.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c
> index 08b3a1bf0ef6..0bf522b05dc3 100644
> --- a/drivers/perf/arm_pmuv3.c
> +++ b/drivers/perf/arm_pmuv3.c
> @@ -1266,7 +1266,10 @@ PMUV3_INIT_SIMPLE(armv8_cortex_a76)
>  PMUV3_INIT_SIMPLE(armv8_cortex_a77)
>  PMUV3_INIT_SIMPLE(armv8_cortex_a78)
>  PMUV3_INIT_SIMPLE(armv9_cortex_a510)
> +PMUV3_INIT_SIMPLE(armv9_cortex_a520)
>  PMUV3_INIT_SIMPLE(armv9_cortex_a710)
> +PMUV3_INIT_SIMPLE(armv9_cortex_a715)
> +PMUV3_INIT_SIMPLE(armv9_cortex_a720)
>  PMUV3_INIT_SIMPLE(armv8_cortex_x1)
>  PMUV3_INIT_SIMPLE(armv9_cortex_x2)
>  PMUV3_INIT_SIMPLE(armv8_neoverse_e1)
> @@ -1334,7 +1337,10 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
>  	{.compatible = "arm,cortex-a77-pmu",	.data = armv8_cortex_a77_pmu_init},
>  	{.compatible = "arm,cortex-a78-pmu",	.data = armv8_cortex_a78_pmu_init},
>  	{.compatible = "arm,cortex-a510-pmu",	.data = armv9_cortex_a510_pmu_init},
> +	{.compatible = "arm,cortex-a520-pmu",	.data = armv9_cortex_a520_pmu_init},
>  	{.compatible = "arm,cortex-a710-pmu",	.data = armv9_cortex_a710_pmu_init},
> +	{.compatible = "arm,cortex-a715-pmu",	.data = armv9_cortex_a715_pmu_init},
> +	{.compatible = "arm,cortex-a720-pmu",	.data = armv9_cortex_a720_pmu_init},
>  	{.compatible = "arm,cortex-x1-pmu",	.data = armv8_cortex_x1_pmu_init},
>  	{.compatible = "arm,cortex-x2-pmu",	.data = armv9_cortex_x2_pmu_init},
>  	{.compatible = "arm,neoverse-e1-pmu",	.data = armv8_neoverse_e1_pmu_init},
> -- 
> 2.40.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720
  2023-06-30 18:56 [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Rob Herring
  2023-06-30 18:56 ` [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Rob Herring
@ 2023-07-03 16:07 ` Conor Dooley
  2023-07-03 19:40 ` Robin Murphy
  2 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2023-07-03 16:07 UTC (permalink / raw)
  To: Rob Herring
  Cc: Will Deacon, Mark Rutland, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-kernel, devicetree, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 281 bytes --]

On Fri, Jun 30, 2023 at 12:56:01PM -0600, Rob Herring wrote:
> Add compatible strings for the Arm Cortex-A520, Cortex-A715, and
> Cortex-A720 CPU PMUs.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720
  2023-06-30 18:56 [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Rob Herring
  2023-06-30 18:56 ` [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Rob Herring
  2023-07-03 16:07 ` [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Conor Dooley
@ 2023-07-03 19:40 ` Robin Murphy
  2023-07-05 21:40   ` Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Robin Murphy @ 2023-07-03 19:40 UTC (permalink / raw)
  To: Rob Herring, Will Deacon, Mark Rutland, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-kernel, devicetree, linux-kernel

On 2023-06-30 19:56, Rob Herring wrote:
> Add compatible strings for the Arm Cortex-A520, Cortex-A715, and
> Cortex-A720 CPU PMUs.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   Documentation/devicetree/bindings/arm/pmu.yaml | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
> index e14358bf0b9c..0cc468d6c372 100644
> --- a/Documentation/devicetree/bindings/arm/pmu.yaml
> +++ b/Documentation/devicetree/bindings/arm/pmu.yaml
> @@ -49,7 +49,10 @@ properties:
>             - arm,cortex-a77-pmu
>             - arm,cortex-a78-pmu
>             - arm,cortex-a510-pmu
> +          - arm,cortex-a520-pmu
>             - arm,cortex-a710-pmu
> +          - arm,cortex-a715-pmu
> +          - arm,cortex-a720-pmu
>             - arm,cortex-x1-pmu
>             - arm,cortex-x2-pmu

Should we catch up on Cortex-X (3 and 4 now) while we're at it?

Cheers,
Robin.

>             - arm,neoverse-e1-pmu

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720
  2023-07-03 19:40 ` Robin Murphy
@ 2023-07-05 21:40   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2023-07-05 21:40 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Will Deacon, Mark Rutland, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-kernel, devicetree, linux-kernel

On Mon, Jul 3, 2023 at 1:40 PM Robin Murphy <robin.murphy@arm.com> wrote:
>
> On 2023-06-30 19:56, Rob Herring wrote:
> > Add compatible strings for the Arm Cortex-A520, Cortex-A715, and
> > Cortex-A720 CPU PMUs.
> >
> > Signed-off-by: Rob Herring <robh@kernel.org>
> > ---
> >   Documentation/devicetree/bindings/arm/pmu.yaml | 3 +++
> >   1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
> > index e14358bf0b9c..0cc468d6c372 100644
> > --- a/Documentation/devicetree/bindings/arm/pmu.yaml
> > +++ b/Documentation/devicetree/bindings/arm/pmu.yaml
> > @@ -49,7 +49,10 @@ properties:
> >             - arm,cortex-a77-pmu
> >             - arm,cortex-a78-pmu
> >             - arm,cortex-a510-pmu
> > +          - arm,cortex-a520-pmu
> >             - arm,cortex-a710-pmu
> > +          - arm,cortex-a715-pmu
> > +          - arm,cortex-a720-pmu
> >             - arm,cortex-x1-pmu
> >             - arm,cortex-x2-pmu
>
> Should we catch up on Cortex-X (3 and 4 now) while we're at it?

Yes. I'll add those.

Looking a bit further at this, it seems a bunch of platforms
(including a Cortex-X3 based one) are just using "arm,armv8-pmuv3".
That's supposed to be just for s/w models, but it's not enforceable.

Rob

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-05 21:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 18:56 [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Rob Herring
2023-06-30 18:56 ` [PATCH 2/2] perf: pmuv3: Add Cortex-A520, Cortex-A715, and Cortex-A720 PMUs Rob Herring
2023-07-03 10:09   ` Mark Rutland
2023-07-03 16:07 ` [PATCH 1/2] dt-bindings: arm: pmu: Add Cortex-A520, Cortex-A715, and Cortex-A720 Conor Dooley
2023-07-03 19:40 ` Robin Murphy
2023-07-05 21:40   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).