linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU
@ 2021-02-03  5:53 Seiya Wang
  2021-02-03  5:53 ` [PATCH v2 1/2] arm64: perf: add support for Cortex-A78 Seiya Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Seiya Wang @ 2021-02-03  5:53 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Rob Herring
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Catalin Marinas,
	Matthias Brugger, linux-arm-kernel, devicetree, linux-kernel,
	linux-mediatek, srv_heupstream


Add support for ARM Cortex-A78 PMU since it will be used in
new Mediatek SoC.

Based on v5.11-rc6

Change in v2:
Remove change-id in commit message

Seiya Wang (2):
  arm64: perf: add support for Cortex-A78
  dt-bindings: arm: add Cortex-A78 binding

 Documentation/devicetree/bindings/arm/pmu.yaml | 1 +
 arch/arm64/kernel/perf_event.c                 | 7 +++++++
 2 files changed, 8 insertions(+)

--
2.14.1


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

* [PATCH v2 1/2] arm64: perf: add support for Cortex-A78
  2021-02-03  5:53 [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Seiya Wang
@ 2021-02-03  5:53 ` Seiya Wang
  2021-02-03  5:53 ` [PATCH v2 2/2] dt-bindings: arm: add Cortex-A78 binding Seiya Wang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Seiya Wang @ 2021-02-03  5:53 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Rob Herring
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Catalin Marinas,
	Matthias Brugger, linux-arm-kernel, devicetree, linux-kernel,
	linux-mediatek, srv_heupstream, Seiya Wang

Add support for Cortex-A78 using generic PMUv3 for now.

Signed-off-by: Seiya Wang <seiya.wang@mediatek.com>
---
 arch/arm64/kernel/perf_event.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c
index 38bb07eff872..62ec2b4ea403 100644
--- a/arch/arm64/kernel/perf_event.c
+++ b/arch/arm64/kernel/perf_event.c
@@ -1190,6 +1190,12 @@ static int armv8_a77_pmu_init(struct arm_pmu *cpu_pmu)
 				       armv8_pmuv3_map_event);
 }
 
+static int armv8_a78_pmu_init(struct arm_pmu *cpu_pmu)
+{
+	return armv8_pmu_init_nogroups(cpu_pmu, "armv8_cortex_a78",
+				       armv8_pmuv3_map_event);
+}
+
 static int armv8_e1_pmu_init(struct arm_pmu *cpu_pmu)
 {
 	return armv8_pmu_init_nogroups(cpu_pmu, "armv8_neoverse_e1",
@@ -1227,6 +1233,7 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
 	{.compatible = "arm,cortex-a75-pmu",	.data = armv8_a75_pmu_init},
 	{.compatible = "arm,cortex-a76-pmu",	.data = armv8_a76_pmu_init},
 	{.compatible = "arm,cortex-a77-pmu",	.data = armv8_a77_pmu_init},
+	{.compatible = "arm,cortex-a78-pmu",	.data = armv8_a78_pmu_init},
 	{.compatible = "arm,neoverse-e1-pmu",	.data = armv8_e1_pmu_init},
 	{.compatible = "arm,neoverse-n1-pmu",	.data = armv8_n1_pmu_init},
 	{.compatible = "cavium,thunder-pmu",	.data = armv8_thunder_pmu_init},
-- 
2.14.1


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

* [PATCH v2 2/2] dt-bindings: arm: add Cortex-A78 binding
  2021-02-03  5:53 [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Seiya Wang
  2021-02-03  5:53 ` [PATCH v2 1/2] arm64: perf: add support for Cortex-A78 Seiya Wang
@ 2021-02-03  5:53 ` Seiya Wang
  2021-02-03 12:38 ` [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Mark Rutland
  2021-02-03 21:31 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Seiya Wang @ 2021-02-03  5:53 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Rob Herring
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Catalin Marinas,
	Matthias Brugger, linux-arm-kernel, devicetree, linux-kernel,
	linux-mediatek, srv_heupstream, Seiya Wang

Add compatible for Cortex-A78 PMU

Signed-off-by: Seiya Wang <seiya.wang@mediatek.com>
---
 Documentation/devicetree/bindings/arm/pmu.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml
index 693ef3f185a8..e17ac049e890 100644
--- a/Documentation/devicetree/bindings/arm/pmu.yaml
+++ b/Documentation/devicetree/bindings/arm/pmu.yaml
@@ -43,6 +43,7 @@ properties:
           - arm,cortex-a75-pmu
           - arm,cortex-a76-pmu
           - arm,cortex-a77-pmu
+          - arm,cortex-a78-pmu
           - arm,neoverse-e1-pmu
           - arm,neoverse-n1-pmu
           - brcm,vulcan-pmu
-- 
2.14.1


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

* Re: [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU
  2021-02-03  5:53 [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Seiya Wang
  2021-02-03  5:53 ` [PATCH v2 1/2] arm64: perf: add support for Cortex-A78 Seiya Wang
  2021-02-03  5:53 ` [PATCH v2 2/2] dt-bindings: arm: add Cortex-A78 binding Seiya Wang
@ 2021-02-03 12:38 ` Mark Rutland
  2021-02-03 21:31 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Rutland @ 2021-02-03 12:38 UTC (permalink / raw)
  To: Seiya Wang, Will Deacon
  Cc: Rob Herring, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, Catalin Marinas, Matthias Brugger,
	linux-arm-kernel, devicetree, linux-kernel, linux-mediatek,
	srv_heupstream

On Wed, Feb 03, 2021 at 01:53:46PM +0800, Seiya Wang wrote:
> 
> Add support for ARM Cortex-A78 PMU since it will be used in
> new Mediatek SoC.
> 
> Based on v5.11-rc6
> 
> Change in v2:
> Remove change-id in commit message
> 
> Seiya Wang (2):
>   arm64: perf: add support for Cortex-A78
>   dt-bindings: arm: add Cortex-A78 binding

Both patches look good to me:

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

Will, I assume you'll pick this up.

Mark

> 
>  Documentation/devicetree/bindings/arm/pmu.yaml | 1 +
>  arch/arm64/kernel/perf_event.c                 | 7 +++++++
>  2 files changed, 8 insertions(+)
> 
> --
> 2.14.1
> 

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

* Re: [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU
  2021-02-03  5:53 [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Seiya Wang
                   ` (2 preceding siblings ...)
  2021-02-03 12:38 ` [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Mark Rutland
@ 2021-02-03 21:31 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Will Deacon @ 2021-02-03 21:31 UTC (permalink / raw)
  To: Mark Rutland, Rob Herring, Seiya Wang
  Cc: catalin.marinas, kernel-team, Will Deacon,
	Arnaldo Carvalho de Melo, linux-kernel, devicetree,
	linux-arm-kernel, linux-mediatek, Matthias Brugger, Namhyung Kim,
	Jiri Olsa, Ingo Molnar, srv_heupstream, Alexander Shishkin,
	Peter Zijlstra

On Wed, 3 Feb 2021 13:53:46 +0800, Seiya Wang wrote:
> Add support for ARM Cortex-A78 PMU since it will be used in
> new Mediatek SoC.
> 
> Based on v5.11-rc6
> 
> Change in v2:
> Remove change-id in commit message
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/2] arm64: perf: add support for Cortex-A78
      https://git.kernel.org/will/c/db2bb91f2e8e
[2/2] dt-bindings: arm: add Cortex-A78 binding
      https://git.kernel.org/will/c/750d43b4a79e

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

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

end of thread, other threads:[~2021-02-03 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03  5:53 [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Seiya Wang
2021-02-03  5:53 ` [PATCH v2 1/2] arm64: perf: add support for Cortex-A78 Seiya Wang
2021-02-03  5:53 ` [PATCH v2 2/2] dt-bindings: arm: add Cortex-A78 binding Seiya Wang
2021-02-03 12:38 ` [PATCH v2 0/2] Add support for ARM Cortex-A78 PMU Mark Rutland
2021-02-03 21:31 ` Will Deacon

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).