Skip to contentSkip to conversation

HiSilicon hip08 uncore PMU events additions

PATCH Applied John Garry 5 participants 20 messages Sep 4, 2019 – Oct 22, 2019

Subsystems (3)
lore
Share & tools
lore

John Garry

author
#0 lore raw

cover HiSilicon hip08 uncore PMU events additions

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/4 perf jevents: Fix Hisi hip08 DDRC PMU eventname

The "EventName" for the DDRC precharge command event is incorrect, so fix it.

Fixes 57cc732479ba ("perf jevents: Add support for Hisi hip08 DDRC PMU aliasing")
---
 .../perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json +1 -1
index 0d1556fcdffe..99f4fc425564 100644
@@ -15,7 +15,7 @@
    },
    {
 	    "EventCode": "0x04",
-	    "EventName": "uncore_hisi_ddrc.flux_wr",
+	    "EventName": "uncore_hisi_ddrc.pre_cmd",
 	    "BriefDescription": "DDRC precharge commands",
 	    "PublicDescription": "DDRC precharge commands",
 	    "Unit": "hisi_sccl,ddrc",
Signature · 1 line
2.17.1
merge bot Applied
#2 lore raw

[tip: perf/core] perf vendor events arm64: Fix Hisi hip08 DDRC PMU eventname

The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     84b0975f4853ba32d2d9b3c19ffa2b947f023fb3
Gitweb:        https://git.kernel.org/tip/84b0975f4853ba32d2d9b3c19ffa2b947f023fb3
Author:        John Garry <[email protected]>
AuthorDate:    Wed, 04 Sep 2019 23:54:41 +08:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 15 Oct 2019 13:03:58 -03:00

perf vendor events arm64: Fix Hisi hip08 DDRC PMU eventname

The "EventName" for the DDRC precharge command event is incorrect, so fix it.

Fixes 57cc732479ba ("perf jevents: Add support for Hisi hip08 DDRC PMU aliasing")
Cc Alexander Shishkin <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Will Deacon <[email protected]>
---
 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json +1 -1
index 0d1556f..99f4fc4 100644
@@ -15,7 +15,7 @@
    },
    {
 	    "EventCode": "0x04",
-	    "EventName": "uncore_hisi_ddrc.flux_wr",
+	    "EventName": "uncore_hisi_ddrc.pre_cmd",
 	    "BriefDescription": "DDRC precharge commands",
 	    "PublicDescription": "DDRC precharge commands",
 	    "Unit": "hisi_sccl,ddrc",
author
#3 lore raw

PATCH 2/4 perf jevents: Add some missing events for Hisi hip08 DDRC PMU

In reply to John Garry

Add some more missing events.

---
 .../arch/arm64/hisilicon/hip08/uncore-ddrc.json    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json +14 -0
index 99f4fc425564..7da86942dae2 100644
@@ -1,4 +1,18 @@
 [
+   {
+	    "EventCode": "0x00",
+	    "EventName": "uncore_hisi_ddrc.flux_wr",
+	    "BriefDescription": "DDRC total write operations",
+	    "PublicDescription": "DDRC total write operations",
+	    "Unit": "hisi_sccl,ddrc",
+   },
+   {
+	    "EventCode": "0x01",
+	    "EventName": "uncore_hisi_ddrc.flux_rd",
+	    "BriefDescription": "DDRC total read operations",
+	    "PublicDescription": "DDRC total read operations",
+	    "Unit": "hisi_sccl,ddrc",
+   },
    {
 	    "EventCode": "0x02",
 	    "EventName": "uncore_hisi_ddrc.flux_wcmd",
Signature · 1 line
2.17.1
merge bot Applied
#4 lore raw

[tip: perf/core] perf vendor events arm64: Add some missing events for Hisi hip08 DDRC PMU

The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     1410732a1b642ba82730a95bdf7f4dafbac1891a
Gitweb:        https://git.kernel.org/tip/1410732a1b642ba82730a95bdf7f4dafbac1891a
Author:        John Garry <[email protected]>
AuthorDate:    Wed, 04 Sep 2019 23:54:42 +08:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 15 Oct 2019 13:03:58 -03:00

perf vendor events arm64: Add some missing events for Hisi hip08 DDRC PMU

Add some more missing events.

---
 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json +14 -0
index 99f4fc4..7da8694 100644
@@ -1,5 +1,19 @@
 [
    {
+	    "EventCode": "0x00",
+	    "EventName": "uncore_hisi_ddrc.flux_wr",
+	    "BriefDescription": "DDRC total write operations",
+	    "PublicDescription": "DDRC total write operations",
+	    "Unit": "hisi_sccl,ddrc",
+   },
+   {
+	    "EventCode": "0x01",
+	    "EventName": "uncore_hisi_ddrc.flux_rd",
+	    "BriefDescription": "DDRC total read operations",
+	    "PublicDescription": "DDRC total read operations",
+	    "Unit": "hisi_sccl,ddrc",
+   },
+   {
 	    "EventCode": "0x02",
 	    "EventName": "uncore_hisi_ddrc.flux_wcmd",
 	    "BriefDescription": "DDRC write commands",
author
#5 lore raw

PATCH 3/4 perf jevents: Add some missing events for Hisi hip08 L3C PMU

In reply to John Garry

Add some more missing events.

---
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json +56 -0
index ca48747642e1..f463d0acfaef 100644
@@ -34,4 +34,60 @@
 	    "PublicDescription": "l3c precharge commands",
 	    "Unit": "hisi_sccl,l3c",
    },
+   {
+	    "EventCode": "0x20",
+	    "EventName": "uncore_hisi_l3c.rd_spipe",
+	    "BriefDescription": "Count of the number of read lines that come from this cluster of CPU core in spipe",
+	    "PublicDescription": "Count of the number of read lines that come from this cluster of CPU core in spipe",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x21",
+	    "EventName": "uncore_hisi_l3c.wr_spipe",
+	    "BriefDescription": "Count of the number of write lines that come from this cluster of CPU core in spipe",
+	    "PublicDescription": "Count of the number of write lines that come from this cluster of CPU core in spipe",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x22",
+	    "EventName": "uncore_hisi_l3c.rd_hit_spipe",
+	    "BriefDescription": "Count of the number of read lines that hits in spipe of this L3C",
+	    "PublicDescription": "Count of the number of read lines that hits in spipe of this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x23",
+	    "EventName": "uncore_hisi_l3c.wr_hit_spipe",
+	    "BriefDescription": "Count of the number of write lines that hits in spipe of this L3C",
+	    "PublicDescription": "Count of the number of write lines that hits in spipe of this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x29",
+	    "EventName": "uncore_hisi_l3c.back_invalid",
+	    "BriefDescription": "Count of the number of L3C back invalid operations",
+	    "PublicDescription": "Count of the number of L3C back invalid operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x40",
+	    "EventName": "uncore_hisi_l3c.retry_cpu",
+	    "BriefDescription": "Count of the number of retry that L3C suppresses the CPU operations",
+	    "PublicDescription": "Count of the number of retry that L3C suppresses the CPU operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x41",
+	    "EventName": "uncore_hisi_l3c.retry_ring",
+	    "BriefDescription": "Count of the number of retry that L3C suppresses the ring operations",
+	    "PublicDescription": "Count of the number of retry that L3C suppresses the ring operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x42",
+	    "EventName": "uncore_hisi_l3c.prefetch_drop",
+	    "BriefDescription": "Count of the number of prefetch drops from this L3C",
+	    "PublicDescription": "Count of the number of prefetch drops from this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
 ]
Signature · 1 line
2.17.1
merge bot Applied
#6 lore raw

[tip: perf/core] perf vendor events arm64: Add some missing events for Hisi hip08 L3C PMU

The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     e3ae569541802a6c9e89ab1f0f3ff613a5a1237b
Gitweb:        https://git.kernel.org/tip/e3ae569541802a6c9e89ab1f0f3ff613a5a1237b
Author:        John Garry <[email protected]>
AuthorDate:    Wed, 04 Sep 2019 23:54:43 +08:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 15 Oct 2019 13:03:58 -03:00

perf vendor events arm64: Add some missing events for Hisi hip08 L3C PMU

Add some more missing events.

---
 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json +56 -0
index ca48747..f463d0a 100644
@@ -34,4 +34,60 @@
 	    "PublicDescription": "l3c precharge commands",
 	    "Unit": "hisi_sccl,l3c",
    },
+   {
+	    "EventCode": "0x20",
+	    "EventName": "uncore_hisi_l3c.rd_spipe",
+	    "BriefDescription": "Count of the number of read lines that come from this cluster of CPU core in spipe",
+	    "PublicDescription": "Count of the number of read lines that come from this cluster of CPU core in spipe",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x21",
+	    "EventName": "uncore_hisi_l3c.wr_spipe",
+	    "BriefDescription": "Count of the number of write lines that come from this cluster of CPU core in spipe",
+	    "PublicDescription": "Count of the number of write lines that come from this cluster of CPU core in spipe",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x22",
+	    "EventName": "uncore_hisi_l3c.rd_hit_spipe",
+	    "BriefDescription": "Count of the number of read lines that hits in spipe of this L3C",
+	    "PublicDescription": "Count of the number of read lines that hits in spipe of this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x23",
+	    "EventName": "uncore_hisi_l3c.wr_hit_spipe",
+	    "BriefDescription": "Count of the number of write lines that hits in spipe of this L3C",
+	    "PublicDescription": "Count of the number of write lines that hits in spipe of this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x29",
+	    "EventName": "uncore_hisi_l3c.back_invalid",
+	    "BriefDescription": "Count of the number of L3C back invalid operations",
+	    "PublicDescription": "Count of the number of L3C back invalid operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x40",
+	    "EventName": "uncore_hisi_l3c.retry_cpu",
+	    "BriefDescription": "Count of the number of retry that L3C suppresses the CPU operations",
+	    "PublicDescription": "Count of the number of retry that L3C suppresses the CPU operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x41",
+	    "EventName": "uncore_hisi_l3c.retry_ring",
+	    "BriefDescription": "Count of the number of retry that L3C suppresses the ring operations",
+	    "PublicDescription": "Count of the number of retry that L3C suppresses the ring operations",
+	    "Unit": "hisi_sccl,l3c",
+   },
+   {
+	    "EventCode": "0x42",
+	    "EventName": "uncore_hisi_l3c.prefetch_drop",
+	    "BriefDescription": "Count of the number of prefetch drops from this L3C",
+	    "PublicDescription": "Count of the number of prefetch drops from this L3C",
+	    "Unit": "hisi_sccl,l3c",
+   },
 ]
author
#7 lore raw

PATCH 4/4 perf jevents: Add some missing events for Hisi hip08 HHA PMU

In reply to John Garry

Add some more missing events.

A trivial typo is also fixed.

---
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 ++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json +22 -1
index 447d3064de90..3be418a248ea 100644
@@ -20,6 +20,13 @@
 	    "PublicDescription": "The number of all operations received by the HHA from another SCCL in this socket",
 	    "Unit": "hisi_sccl,hha",
    },
+   {
+	    "EventCode": "0x03",
+	    "EventName": "uncore_hisi_hha.rx_ccix",
+	    "BriefDescription": "Count of the number of operations that HHA has received from CCIX",
+	    "PublicDescription": "Count of the number of operations that HHA has received from CCIX",
+	    "Unit": "hisi_sccl,hha",
+   },
    {
 	    "EventCode": "0x1c",
 	    "EventName": "uncore_hisi_hha.rd_ddr_64b",
@@ -29,7 +36,7 @@
    },
    {
 	    "EventCode": "0x1d",
-	    "EventName": "uncore_hisi_hha.wr_dr_64b",
+	    "EventName": "uncore_hisi_hha.wr_ddr_64b",
 	    "BriefDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes",
 	    "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes",
 	    "Unit": "hisi_sccl,hha",
@@ -48,4 +55,18 @@
 	    "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 128 bytes",
 	    "Unit": "hisi_sccl,hha",
    },
+   {
+	    "EventCode": "0x20",
+	    "EventName": "uncore_hisi_hha.spill_num",
+	    "BriefDescription": "Count of the number of spill operations that the HHA has sent",
+	    "PublicDescription": "Count of the number of spill operations that the HHA has sent",
+	    "Unit": "hisi_sccl,hha",
+   },
+   {
+	    "EventCode": "0x21",
+	    "EventName": "uncore_hisi_hha.spill_success",
+	    "BriefDescription": "Count of the number of successful spill operations that the HHA has sent",
+	    "PublicDescription": "Count of the number of successful spill operations that the HHA has sent",
+	    "Unit": "hisi_sccl,hha",
+   },
 ]
Signature · 1 line
2.17.1
merge bot Applied
#8 lore raw

[tip: perf/core] perf vendor events arm64: Add some missing events for Hisi hip08 HHA PMU

The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     2b7847158120136c4b23684c768a82d571ee59bf
Gitweb:        https://git.kernel.org/tip/2b7847158120136c4b23684c768a82d571ee59bf
Author:        John Garry <[email protected]>
AuthorDate:    Wed, 04 Sep 2019 23:54:44 +08:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 15 Oct 2019 13:03:58 -03:00

perf vendor events arm64: Add some missing events for Hisi hip08 HHA PMU

Add some more missing events.

A trivial typo is also fixed.

---
 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json +22 -1
index 447d306..3be418a 100644
@@ -21,6 +21,13 @@
 	    "Unit": "hisi_sccl,hha",
    },
    {
+	    "EventCode": "0x03",
+	    "EventName": "uncore_hisi_hha.rx_ccix",
+	    "BriefDescription": "Count of the number of operations that HHA has received from CCIX",
+	    "PublicDescription": "Count of the number of operations that HHA has received from CCIX",
+	    "Unit": "hisi_sccl,hha",
+   },
+   {
 	    "EventCode": "0x1c",
 	    "EventName": "uncore_hisi_hha.rd_ddr_64b",
 	    "BriefDescription": "The number of read operations sent by HHA to DDRC which size is 64 bytes",
@@ -29,7 +36,7 @@
    },
    {
 	    "EventCode": "0x1d",
-	    "EventName": "uncore_hisi_hha.wr_dr_64b",
+	    "EventName": "uncore_hisi_hha.wr_ddr_64b",
 	    "BriefDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes",
 	    "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes",
 	    "Unit": "hisi_sccl,hha",
@@ -48,4 +55,18 @@
 	    "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 128 bytes",
 	    "Unit": "hisi_sccl,hha",
    },
+   {
+	    "EventCode": "0x20",
+	    "EventName": "uncore_hisi_hha.spill_num",
+	    "BriefDescription": "Count of the number of spill operations that the HHA has sent",
+	    "PublicDescription": "Count of the number of spill operations that the HHA has sent",
+	    "Unit": "hisi_sccl,hha",
+   },
+   {
+	    "EventCode": "0x21",
+	    "EventName": "uncore_hisi_hha.spill_success",
+	    "BriefDescription": "Count of the number of successful spill operations that the HHA has sent",
+	    "PublicDescription": "Count of the number of successful spill operations that the HHA has sent",
+	    "Unit": "hisi_sccl,hha",
+   },
 ]
author
#9 lore raw
In reply to John Garry
Quoted 7 lines · John Garry

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Hi guys,

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Thanks in advance,
John

Quoted 12 lines

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
#10 lore raw

Em Fri, Oct 04, 2019 at 03:30:07PM +0100, John Garry escreveu:

Quoted 7 lines · John Garry
Quoted 6 lines

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

Quoted 6 lines
Quoted 1 line

It also includes a fix for a DDRC eventname.

Hi guys,

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Looking at them now.

- Arnaldo

Quoted 16 lines

Thanks in advance,
John

Quoted 12 lines

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
Signature · 1 line
- Arnaldo
#11 lore raw

Em Fri, Oct 04, 2019 at 11:36:58AM -0300, Arnaldo Carvalho de Melo escreveu:

Quoted 8 lines

Em Fri, Oct 04, 2019 at 03:30:07PM +0100, John Garry escreveu:

Quoted 7 lines · John Garry
Quoted 6 lines

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

It also includes a fix for a DDRC eventname.

Hi guys,

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Looking at them now.

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

- Arnaldo

Quoted 22 lines

- Arnaldo

Quoted 16 lines

Thanks in advance,
John

Quoted 12 lines

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
Signature · 1 line
- Arnaldo
Signature · 1 line
- Arnaldo
reviewer
#12 lore raw
Quoted 16 lines · Arnaldo Carvalho de Melo

Em Fri, Oct 04, 2019 at 11:36:58AM -0300, Arnaldo Carvalho de Melo escreveu:

Quoted 15 lines

Em Fri, Oct 04, 2019 at 03:30:07PM +0100, John Garry escreveu:

Quoted 13 lines · John Garry
Quoted 7 lines

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Hi guys,

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Quoted 6 lines
Quoted 1 line

Looking at them now.

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

The patches look fine to me, but the IP being supported here is designed by Hisilicon so my Arm knowledge isn't very helpful as it's outside the scope of the architecture.

Will

author
#13 lore raw
In reply to Arnaldo Carvalho de Melo
Quoted 16 lines · Arnaldo Carvalho de Melo

Em Fri, Oct 04, 2019 at 11:36:58AM -0300, Arnaldo Carvalho de Melo escreveu:

Quoted 15 lines

Em Fri, Oct 04, 2019 at 03:30:07PM +0100, John Garry escreveu:

Quoted 13 lines · John Garry
Quoted 7 lines

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Hi guys,

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Quoted 6 lines
Quoted 1 line

Looking at them now.

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

Hi Arnaldo,

For this specific case, I'm not sure how much traction or value there would be since we're just adding some missing events for custom IP.

But I do agree that more review of JSONs from the community is required - as I brought up here regarding a recent addition: https://lore.kernel.org/lkml/[email protected]/

Can we enforce that at least [email protected] and/or get_maintainer.pl results is cc'ed on anything ARM specific as a start?

Cheers,
John

Quoted 26 lines

- Arnaldo

Quoted 22 lines

- Arnaldo

Quoted 16 lines

Thanks in advance,
John

Quoted 12 lines

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)

--

- Arnaldo

#14 lore raw

Em Fri, Oct 04, 2019 at 03:59:44PM +0100, John Garry escreveu:

Quoted 17 lines · Arnaldo Carvalho de Melo
Quoted 15 lines

Em Fri, Oct 04, 2019 at 11:36:58AM -0300, Arnaldo Carvalho de Melo escreveu:

Quoted 14 lines

Em Fri, Oct 04, 2019 at 03:30:07PM +0100, John Garry escreveu:

Quoted 11 lines · John Garry
Quoted 7 lines

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Looking at them now.

Quoted 7 lines
Quoted 4 lines

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

For this specific case, I'm not sure how much traction or value there would be since we're just adding some missing events for custom IP.

Someone else inside your organization? If nobody is available, then so be it, let that be clear in the JSON file (see below) and then I wouldn't be waiting for acks/reviewed-by messages for such cases.

Quoted 6 lines

But I do agree that more review of JSONs from the community is required - as I brought up here regarding a recent addition:
https://lore.kernel.org/lkml/[email protected]/

Can we enforce that at least [email protected] and/or get_maintainer.pl results is cc'ed on anything ARM specific as a start?

I think this should be the case, would you be willing to add a note to that effect at the top of the JSON files?

And an extra note at tools/perf/pmu-events/README telling users to look at the json files to figure out what Reviewed-by tags are required for something to get merged? One extra Reviewed-by would be ok? Who would be the reviewers for each arch? Would that be at the top of the JSON file?

- Arnaldo

author
#15 lore raw
Quoted 16 lines
Quoted 15 lines
Quoted 15 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Looking at them now.

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

Quoted 4 lines
Quoted 2 lines

For this specific case, I'm not sure how much traction or value there would be since we're just adding some missing events for custom IP.

Someone else inside your organization?

For this, sure. Colleague Shaokun (cc'ed) provided me the metadata for these JSON additions, so when he returns from national vacation I can ask him to provide necessary tags.

If nobody is available, then so

Quoted 7 lines

be it, let that be clear in the JSON file (see below) and then I wouldn't be waiting for acks/reviewed-by messages for such cases.

Quoted 4 lines

But I do agree that more review of JSONs from the community is required - as I brought up here regarding a recent addition:
https://lore.kernel.org/lkml/[email protected]/

Quoted 5 lines
Quoted 2 lines

Can we enforce that at least [email protected] and/or get_maintainer.pl results is cc'ed on anything ARM specific as a start?

I think this should be the case, would you be willing to add a note to that effect at the top of the JSON files?

Adding notes to JSONs would be painful unless the parser is updated to to filter them out. And, as I understand, the x86 JSONs are autogenerated, so that tooling would need to handle this also.

Quoted 5 lines

And an extra note at tools/perf/pmu-events/README telling users to look at the json files to figure out what Reviewed-by tags are required for something to get merged? One extra Reviewed-by would be ok?Who would be the reviewers for each arch? Would that be at the top of the JSON file?

There is no per-arch JSON, and, in addition, I think that would be hard to formulate such formal rules.

As an alternative, how about just add a maintainers entry for reviewers per arch? As a start, I don't mind being added there for arm64:

MAINTAINERS +4 -0
@@ -12767,6 +12767,10 @@ F:     arch/*/events/*
 F:     arch/*/events/*/*
 F:     tools/perf/
 
+PERFORMANCE EVENTS SUBSYSTEM ARM64 PMU EVENTS
+R:     John Garry <[email protected]>
+F:     tools/perf/pmu-events/arch/arm64
+
 

Patches per-arch should have some nod/tag from a member of the respective list. Or at very least be cc'ed :)

Thanks,
John

Quoted 5 lines

- Arnaldo

.

#16 lore raw

Em Fri, Oct 04, 2019 at 05:30:46PM +0100, John Garry escreveu:

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 15 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

Could I get these JSON updates picked up please? Maybe they were missed earlier. Let me know if I should re-post.

Looking at them now.

It would be really good if somehow we managed to have someone from the ARM community to check and provide a Reviewed-by for those, i.e. someone else than the poster to look at it and check that its ok, would that be possible?

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

For this specific case, I'm not sure how much traction or value there would be since we're just adding some missing events for custom IP.

Someone else inside your organization?

For this, sure. Colleague Shaokun (cc'ed) provided me the metadata for these JSON additions, so when he returns from national vacation I can ask him to provide necessary tags.

Ok

Quoted 11 lines

If nobody is available, then so

Quoted 10 lines

be it, let that be clear in the JSON file (see below) and then I wouldn't be waiting for acks/reviewed-by messages for such cases.

Quoted 6 lines

But I do agree that more review of JSONs from the community is required - as I brought up here regarding a recent addition:
https://lore.kernel.org/lkml/[email protected]/

Can we enforce that at least [email protected] and/or get_maintainer.pl results is cc'ed on anything ARM specific as a start?

Quoted 6 lines
Quoted 2 lines

I think this should be the case, would you be willing to add a note to that effect at the top of the JSON files?

Adding notes to JSONs would be painful unless the parser is updated to to filter them out. And, as I understand, the x86 JSONs are autogenerated, so that tooling would need to handle this also.

Ok

Quoted 8 lines
Quoted 5 lines

And an extra note at tools/perf/pmu-events/README telling users to look at the json files to figure out what Reviewed-by tags are required for something to get merged? One extra Reviewed-by would be ok?Who would be the reviewers for each arch? Would that be at the top of the JSON file?

There is no per-arch JSON, and, in addition, I think that would be hard to formulate such formal rules.

Ok

Quoted 14 lines

As an alternative, how about just add a maintainers entry for reviewers per arch? As a start, I don't mind being added there for arm64:

MAINTAINERS +4 -0
@@ -12767,6 +12767,10 @@ F:     arch/*/events/*
 F:     arch/*/events/*/*
 F:     tools/perf/
 
+PERFORMANCE EVENTS SUBSYSTEM ARM64 PMU EVENTS
+R:     John Garry <[email protected]>
+F:     tools/perf/pmu-events/arch/arm64
+
 
Quoted 2 lines

Patches per-arch should have some nod/tag from a member of the respective list. Or at very least be cc'ed :)

Another Ok, please send a formal patch, and it would be really nice if the other ARM folks would... Ack that ;-) :-) And provide extra entries for the other pmu-events directories or even for specific files, which is a possibility, right?

On my side I'll script a bit more and make sure that a post commit hook warns me if the right tag is not present.

- Arnaldo

author
#17 lore raw
Quoted 15 lines
Quoted 15 lines

As an alternative, how about just add a maintainers entry for reviewers per arch? As a start, I don't mind being added there for arm64:

MAINTAINERS +4 -0
@@ -12767,6 +12767,10 @@ F:     arch/*/events/*
 F:     arch/*/events/*/*
 F:     tools/perf/
 
+PERFORMANCE EVENTS SUBSYSTEM ARM64 PMU EVENTS
+R:     John Garry <[email protected]>
+F:     tools/perf/pmu-events/arch/arm64
+
 
Quoted 7 lines
Quoted 2 lines

Patches per-arch should have some nod/tag from a member of the respective list. Or at very least be cc'ed :)

Another Ok, please send a formal patch, and it would be really nice if the other ARM folks would... Ack that ;-) :-) And provide extra entries for the other pmu-events directories or even for specific files, which is a possibility, right?

ok, can do. Will has kindly agreed to have his name added to the MAINTAINERS entry (thanks). Other Cc's from ARM community may also be interested to be included - shout if so.

So I'll just include tools/perf/pmu-events/arch/arm64 for now.

The code in tools/perf/pmu-events/. should be generic for all architectures, while I'd say tools/perf/arch/arm64 is not strictly related.

Thanks,
John

Quoted 8 lines

On my side I'll script a bit more and make sure that a post commit hook warns me if the right tag is not present.

- Arnaldo

.

Reviewed-by on the v1 series
#18 lore raw
In reply to John Garry

Hi John,

Thanks for your nice work, these are useful for performance profiling if anyone is unfamiliar with the uncore PMU events on hip08. For this patchset, please feel free to add

Thanks,
Shaokun

Quoted 19 lines · John Garry

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
#19 lore raw

Em Wed, Oct 09, 2019 at 09:14:45AM +0800, Shaokun Zhang escreveu:

Quoted 7 lines

Hi John,

Thanks for your nice work, these are useful for performance profiling if anyone is unfamiliar with the uncore PMU events on hip08.

For this patchset, please feel free to add

Thanks, added and applied,

- Arnaldo

Quoted 23 lines

Thanks,
Shaokun

Quoted 19 lines · John Garry

This patchset adds some missing uncore PMU events for the hip08 arm64 platform.

The missing events were originally mentioned in
https://lkml.org/lkml/2019/6/14/645, when upstreaming the JSONs initially.

It also includes a fix for a DDRC eventname.

John Garry (4):
perf jevents: Fix Hisi hip08 DDRC PMU eventname perf jevents: Add some missing events for Hisi hip08 DDRC PMU perf jevents: Add some missing events for Hisi hip08 L3C PMU perf jevents: Add some missing events for Hisi hip08 HHA PMU

 .../arm64/hisilicon/hip08/uncore-ddrc.json    | 16 +++++-
 .../arm64/hisilicon/hip08/uncore-hha.json     | 23 +++++++-
 .../arm64/hisilicon/hip08/uncore-l3c.json     | 56 +++++++++++++++++++
 3 files changed, 93 insertions(+), 2 deletions(-)
Signature · 1 line
- Arnaldo