* [PATCH 0/6] Add Andes PMU extension support
@ 2023-09-06 11:14 Yu Chien Peter Lin
2023-10-06 12:20 ` Lad, Prabhakar
0 siblings, 1 reply; 6+ messages in thread
From: Yu Chien Peter Lin @ 2023-09-06 11:14 UTC (permalink / raw)
To: opensbi
This patch series enables perf tool to utilize Andes PMU
extension via PMU SBI calls, provides PMU device callbacks
for event sampling and mode filtering.
We also provide a PMU node example of AX45MP in the last
patch.
The OpenSBI and Linux patches can be found on Andes Technology GitHub
- https://github.com/andestech/opensbi/commits/andes-pmu-support
- https://github.com/andestech/linux/commits/andes-pmu-support
Yu Chien Peter Lin (6):
sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
platform: include: andes45: Add PMU related CSR defines
platform: andes: Add Andes custom PMU support
platform: andes: Enable Andes PMU for AE350
platform: rzfive: Enable Andes PMU for RZ/Five
docs: pmu: Add Andes PMU node example
docs/pmu_support.md | 87 ++++++++++++++++++++++
include/sbi/sbi_pmu.h | 6 ++
lib/sbi/sbi_pmu.c | 5 +-
platform/generic/Kconfig | 2 +
platform/generic/andes/Kconfig | 4 +
platform/generic/andes/ae350.c | 2 +
platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
platform/generic/andes/objects.mk | 1 +
platform/generic/include/andes/andes45.h | 26 +++++++
platform/generic/include/andes/andes_pmu.h | 12 +++
platform/generic/renesas/rzfive/rzfive.c | 2 +
11 files changed, 231 insertions(+), 1 deletion(-)
create mode 100644 platform/generic/andes/andes_pmu.c
create mode 100644 platform/generic/include/andes/andes_pmu.h
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/6] Add Andes PMU extension support
2023-09-06 11:14 [PATCH 0/6] Add Andes PMU extension support Yu Chien Peter Lin
@ 2023-10-06 12:20 ` Lad, Prabhakar
2023-10-10 6:09 ` Yu-Chien Peter Lin
0 siblings, 1 reply; 6+ messages in thread
From: Lad, Prabhakar @ 2023-10-06 12:20 UTC (permalink / raw)
To: opensbi
Hi Lin-san,
On Wed, Sep 6, 2023 at 12:17?PM Yu Chien Peter Lin
<peterlin@andestech.com> wrote:
>
> This patch series enables perf tool to utilize Andes PMU
> extension via PMU SBI calls, provides PMU device callbacks
> for event sampling and mode filtering.
>
> We also provide a PMU node example of AX45MP in the last
> patch.
>
> The OpenSBI and Linux patches can be found on Andes Technology GitHub
> - https://github.com/andestech/opensbi/commits/andes-pmu-support
> - https://github.com/andestech/linux/commits/andes-pmu-support
>
> Yu Chien Peter Lin (6):
> sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
> platform: include: andes45: Add PMU related CSR defines
> platform: andes: Add Andes custom PMU support
> platform: andes: Enable Andes PMU for AE350
> platform: rzfive: Enable Andes PMU for RZ/Five
> docs: pmu: Add Andes PMU node example
>
> docs/pmu_support.md | 87 ++++++++++++++++++++++
> include/sbi/sbi_pmu.h | 6 ++
> lib/sbi/sbi_pmu.c | 5 +-
> platform/generic/Kconfig | 2 +
> platform/generic/andes/Kconfig | 4 +
> platform/generic/andes/ae350.c | 2 +
> platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
> platform/generic/andes/objects.mk | 1 +
> platform/generic/include/andes/andes45.h | 26 +++++++
> platform/generic/include/andes/andes_pmu.h | 12 +++
> platform/generic/renesas/rzfive/rzfive.c | 2 +
> 11 files changed, 231 insertions(+), 1 deletion(-)
> create mode 100644 platform/generic/andes/andes_pmu.c
> create mode 100644 platform/generic/include/andes/andes_pmu.h
>
I tried these patches on the RZ/Five SMARC EVK and I am seeing kernel
freeze when trying to quit perf.
Cheers,
Prabhakar
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/6] Add Andes PMU extension support
2023-10-06 12:20 ` Lad, Prabhakar
@ 2023-10-10 6:09 ` Yu-Chien Peter Lin
0 siblings, 0 replies; 6+ messages in thread
From: Yu-Chien Peter Lin @ 2023-10-10 6:09 UTC (permalink / raw)
To: opensbi
On Fri, Oct 06, 2023 at 01:20:27PM +0100, Lad, Prabhakar wrote:
> Hi Lin-san,
>
> On Wed, Sep 6, 2023 at 12:17?PM Yu Chien Peter Lin
> <peterlin@andestech.com> wrote:
> >
> > This patch series enables perf tool to utilize Andes PMU
> > extension via PMU SBI calls, provides PMU device callbacks
> > for event sampling and mode filtering.
> >
> > We also provide a PMU node example of AX45MP in the last
> > patch.
> >
> > The OpenSBI and Linux patches can be found on Andes Technology GitHub
> > - https://github.com/andestech/opensbi/commits/andes-pmu-support
> > - https://github.com/andestech/linux/commits/andes-pmu-support
> >
> > Yu Chien Peter Lin (6):
> > sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
> > platform: include: andes45: Add PMU related CSR defines
> > platform: andes: Add Andes custom PMU support
> > platform: andes: Enable Andes PMU for AE350
> > platform: rzfive: Enable Andes PMU for RZ/Five
> > docs: pmu: Add Andes PMU node example
> >
> > docs/pmu_support.md | 87 ++++++++++++++++++++++
> > include/sbi/sbi_pmu.h | 6 ++
> > lib/sbi/sbi_pmu.c | 5 +-
> > platform/generic/Kconfig | 2 +
> > platform/generic/andes/Kconfig | 4 +
> > platform/generic/andes/ae350.c | 2 +
> > platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
> > platform/generic/andes/objects.mk | 1 +
> > platform/generic/include/andes/andes45.h | 26 +++++++
> > platform/generic/include/andes/andes_pmu.h | 12 +++
> > platform/generic/renesas/rzfive/rzfive.c | 2 +
> > 11 files changed, 231 insertions(+), 1 deletion(-)
> > create mode 100644 platform/generic/andes/andes_pmu.c
> > create mode 100644 platform/generic/include/andes/andes_pmu.h
> >
> I tried these patches on the RZ/Five SMARC EVK and I am seeing kernel
> freeze when trying to quit perf.
Thanks for reporting, this happens on my Tinker-V board as well.
I will look into this issue.
Thanks,
Peter Lin
> Cheers,
> Prabhakar
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/6] Add Andes PMU extension support
@ 2023-09-06 9:40 Yu Chien Peter Lin
2023-10-06 12:17 ` Anup Patel
0 siblings, 1 reply; 6+ messages in thread
From: Yu Chien Peter Lin @ 2023-09-06 9:40 UTC (permalink / raw)
To: opensbi
This patch series enables perf tool to utilize Andes PMU
extension via PMU SBI calls, provides PMU device callbacks
for event sampling and mode filtering.
We also provide a PMU node example of AX45MP in the last
patch.
The OpenSBI and Linux patches can be found on Andes Technology GitHub
- https://github.com/andestech/opensbi/commits/andes-pmu-support
- https://github.com/andestech/linux/commits/andes-pmu-support
Yu Chien Peter Lin (6):
sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
platform: include: andes45: Add PMU related CSR defines
platform: andes: Add Andes custom PMU support
platform: andes: Enable Andes PMU for AE350
platform: rzfive: Enable Andes PMU for RZ/Five
docs: pmu: Add Andes PMU node example
docs/pmu_support.md | 87 ++++++++++++++++++++++
include/sbi/sbi_pmu.h | 6 ++
lib/sbi/sbi_pmu.c | 5 +-
platform/generic/Kconfig | 2 +
platform/generic/andes/Kconfig | 4 +
platform/generic/andes/ae350.c | 2 +
platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
platform/generic/andes/objects.mk | 1 +
platform/generic/include/andes/andes45.h | 26 +++++++
platform/generic/include/andes/andes_pmu.h | 12 +++
platform/generic/renesas/rzfive/rzfive.c | 2 +
11 files changed, 231 insertions(+), 1 deletion(-)
create mode 100644 platform/generic/andes/andes_pmu.c
create mode 100644 platform/generic/include/andes/andes_pmu.h
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/6] Add Andes PMU extension support
2023-09-06 9:40 Yu Chien Peter Lin
@ 2023-10-06 12:17 ` Anup Patel
2023-10-07 6:04 ` Yu-Chien Peter Lin
0 siblings, 1 reply; 6+ messages in thread
From: Anup Patel @ 2023-10-06 12:17 UTC (permalink / raw)
To: opensbi
Hi Yu Chien Peter Lin,
On Wed, Sep 6, 2023 at 3:12?PM Yu Chien Peter Lin
<peterlin@andestech.com> wrote:
>
> This patch series enables perf tool to utilize Andes PMU
> extension via PMU SBI calls, provides PMU device callbacks
> for event sampling and mode filtering.
>
> We also provide a PMU node example of AX45MP in the last
> patch.
>
> The OpenSBI and Linux patches can be found on Andes Technology GitHub
> - https://github.com/andestech/opensbi/commits/andes-pmu-support
> - https://github.com/andestech/linux/commits/andes-pmu-support
>
> Yu Chien Peter Lin (6):
> sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
> platform: include: andes45: Add PMU related CSR defines
> platform: andes: Add Andes custom PMU support
> platform: andes: Enable Andes PMU for AE350
> platform: rzfive: Enable Andes PMU for RZ/Five
> docs: pmu: Add Andes PMU node example
I assume there is going to be a v2 due to comments on PATCH3 ?
Regards,
Anup
>
> docs/pmu_support.md | 87 ++++++++++++++++++++++
> include/sbi/sbi_pmu.h | 6 ++
> lib/sbi/sbi_pmu.c | 5 +-
> platform/generic/Kconfig | 2 +
> platform/generic/andes/Kconfig | 4 +
> platform/generic/andes/ae350.c | 2 +
> platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
> platform/generic/andes/objects.mk | 1 +
> platform/generic/include/andes/andes45.h | 26 +++++++
> platform/generic/include/andes/andes_pmu.h | 12 +++
> platform/generic/renesas/rzfive/rzfive.c | 2 +
> 11 files changed, 231 insertions(+), 1 deletion(-)
> create mode 100644 platform/generic/andes/andes_pmu.c
> create mode 100644 platform/generic/include/andes/andes_pmu.h
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/6] Add Andes PMU extension support
2023-10-06 12:17 ` Anup Patel
@ 2023-10-07 6:04 ` Yu-Chien Peter Lin
0 siblings, 0 replies; 6+ messages in thread
From: Yu-Chien Peter Lin @ 2023-10-07 6:04 UTC (permalink / raw)
To: opensbi
Hi Anup,
On Fri, Oct 06, 2023 at 05:47:16PM +0530, Anup Patel wrote:
> Hi Yu Chien Peter Lin,
>
> On Wed, Sep 6, 2023 at 3:12?PM Yu Chien Peter Lin
> <peterlin@andestech.com> wrote:
> >
> > This patch series enables perf tool to utilize Andes PMU
> > extension via PMU SBI calls, provides PMU device callbacks
> > for event sampling and mode filtering.
> >
> > We also provide a PMU node example of AX45MP in the last
> > patch.
> >
> > The OpenSBI and Linux patches can be found on Andes Technology GitHub
> > - https://github.com/andestech/opensbi/commits/andes-pmu-support
> > - https://github.com/andestech/linux/commits/andes-pmu-support
> >
> > Yu Chien Peter Lin (6):
> > sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
> > platform: include: andes45: Add PMU related CSR defines
> > platform: andes: Add Andes custom PMU support
> > platform: andes: Enable Andes PMU for AE350
> > platform: rzfive: Enable Andes PMU for RZ/Five
> > docs: pmu: Add Andes PMU node example
>
> I assume there is going to be a v2 due to comments on PATCH3 ?
Yes we are working on this.
Thanks.
Peter Lin
> Regards,
> Anup
>
> >
> > docs/pmu_support.md | 87 ++++++++++++++++++++++
> > include/sbi/sbi_pmu.h | 6 ++
> > lib/sbi/sbi_pmu.c | 5 +-
> > platform/generic/Kconfig | 2 +
> > platform/generic/andes/Kconfig | 4 +
> > platform/generic/andes/ae350.c | 2 +
> > platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++
> > platform/generic/andes/objects.mk | 1 +
> > platform/generic/include/andes/andes45.h | 26 +++++++
> > platform/generic/include/andes/andes_pmu.h | 12 +++
> > platform/generic/renesas/rzfive/rzfive.c | 2 +
> > 11 files changed, 231 insertions(+), 1 deletion(-)
> > create mode 100644 platform/generic/andes/andes_pmu.c
> > create mode 100644 platform/generic/include/andes/andes_pmu.h
> >
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-10 6:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-06 11:14 [PATCH 0/6] Add Andes PMU extension support Yu Chien Peter Lin
2023-10-06 12:20 ` Lad, Prabhakar
2023-10-10 6:09 ` Yu-Chien Peter Lin
-- strict thread matches above, loose matches on Subject: below --
2023-09-06 9:40 Yu Chien Peter Lin
2023-10-06 12:17 ` Anup Patel
2023-10-07 6:04 ` Yu-Chien Peter Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.