All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yu-Chien Peter Lin <peterlin@andestech.com>
To: opensbi@lists.infradead.org
Subject: [PATCH v4 00/15] Add Andes PMU extension support
Date: Mon, 18 Dec 2023 15:16:32 +0800	[thread overview]
Message-ID: <ZX_x0JaEnB5QCSFz@APC323> (raw)
In-Reply-To: <CAK9=C2XS-s5z4ZfDXpAXE=pi70hTfjWfct5UqMUDhSYJf1fNZw@mail.gmail.com>

Hi Anup,

On Mon, Dec 18, 2023 at 11:15:48AM +0530, Anup Patel wrote:
> Hi,
> 
> On Wed, Dec 6, 2023 at 7:54?PM Anup Patel <anup@brainfault.org> wrote:
> >
> > On Thu, Nov 30, 2023 at 6: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
> > > to achieve event sampling and mode filtering.
> > >
> > > The last patch provides a PMU node example used on AX45MP cores.
> > >
> > > The OpenSBI and Linux patches can be found on Andes Technology GitHub
> > > - https://github.com/andestech/opensbi/commits/andes-pmu-support-v4
> > > - https://github.com/andestech/linux/commits/andes-pmu-support-v4
> > >
> > > For more details about Andes PMU extension, see Counter Related
> > > Registers in the AX45MP datasheet:
> > > http://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf
> > >
> > > Leo Yu-Chi Liang (1):
> > >   lib: ipi: Adjust Andes PLICSW to single-bit-per-hart scheme
> > >
> > > Yu Chien Peter Lin (14):
> > >   sbi: sbi_pmu: Improve sbi_pmu_init() error handling
> > >   lib: sbi: Add XAndesPMU in hart extensions
> > >   sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
> > >   platform: include: andes45: Add PMU related CSR defines
> > >   platform: generic: Introduce pmu_init() platform override
> > >   platform: andes: Add Andes custom PMU support
> > >   platform: andes: Enable Andes PMU for AE350
> > >   platform: rzfive: Enable Andes PMU for RZ/Five
> > >   lib: utils: fdt_fixup: Allow preserving PMU properties
> > >   platform: andes: Factor out is_andes() helper
> > >   lib: utils: fdt_pmu: Make the fdt_pmu_evt_select table global variable
> > >   lib: utils: fdt_pmu: Do not iterate over the fdt_pmu_evt_select table
> > >   platform: andes: Add Andes default PMU mapping support
> > >   docs: pmu: Add Andes PMU node example
> >
> > Applied all patches to the riscv/opensbi repo except PATCH14 which
> > has pending comment from Atish.
> 
> Can you address comments on PATCH14 and send it this week ?
> 
> Next week, we will be releasing OpenSBI v1.4

Sure, thanks for taking care of this series.

Best regards,
Peter Lin

> 
> Regards,
> Anup
> 
> >
> > Thanks,
> > Anup
> >
> > >
> > >  docs/pmu_support.md                          |  82 ++++
> > >  include/sbi/sbi_ecall_interface.h            |   5 +
> > >  include/sbi/sbi_hart.h                       |   2 +
> > >  include/sbi/sbi_pmu.h                        |   6 +
> > >  include/sbi_utils/fdt/fdt_helper.h           |  17 +
> > >  include/sbi_utils/fdt/fdt_pmu.h              |   6 +
> > >  include/sbi_utils/ipi/andes_plicsw.h         |  23 +-
> > >  lib/sbi/sbi_hart.c                           |   3 +
> > >  lib/sbi/sbi_pmu.c                            |  26 +-
> > >  lib/utils/fdt/Kconfig                        |   7 +
> > >  lib/utils/fdt/fdt_fixup.c                    |   3 +
> > >  lib/utils/fdt/fdt_pmu.c                      |  17 +-
> > >  lib/utils/ipi/andes_plicsw.c                 | 104 ++---
> > >  platform/generic/Kconfig                     |   4 +
> > >  platform/generic/andes/Kconfig               |  15 +
> > >  platform/generic/andes/ae350.c               |  19 +-
> > >  platform/generic/andes/andes_hpm.c           | 405 +++++++++++++++++++
> > >  platform/generic/andes/andes_pmu.c           | 105 +++++
> > >  platform/generic/andes/objects.mk            |   2 +
> > >  platform/generic/include/andes/andes45.h     |  32 ++
> > >  platform/generic/include/andes/andes_hpm.h   |  81 ++++
> > >  platform/generic/include/andes/andes_pmu.h   |  34 ++
> > >  platform/generic/include/platform_override.h |   1 +
> > >  platform/generic/platform.c                  |  14 +-
> > >  platform/generic/renesas/rzfive/rzfive.c     |   5 +-
> > >  25 files changed, 908 insertions(+), 110 deletions(-)
> > >  create mode 100644 platform/generic/andes/andes_hpm.c
> > >  create mode 100644 platform/generic/andes/andes_pmu.c
> > >  create mode 100644 platform/generic/include/andes/andes_hpm.h
> > >  create mode 100644 platform/generic/include/andes/andes_pmu.h
> > >
> > > --
> > > 2.34.1
> > >
> >
> > --
> > opensbi mailing list
> > opensbi at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/opensbi


      reply	other threads:[~2023-12-18  7:16 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-30 12:41 [PATCH v4 00/15] Add Andes PMU extension support Yu Chien Peter Lin
2023-11-30 12:41 ` [PATCH v4 01/15] lib: ipi: Adjust Andes PLICSW to single-bit-per-hart scheme Yu Chien Peter Lin
2023-12-06 12:03   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 02/15] sbi: sbi_pmu: Improve sbi_pmu_init() error handling Yu Chien Peter Lin
2023-12-06  1:55   ` Atish Patra
2023-11-30 12:42 ` [PATCH v4 03/15] lib: sbi: Add XAndesPMU in hart extensions Yu Chien Peter Lin
2023-12-06 12:04   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 04/15] sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device Yu Chien Peter Lin
2023-12-04  9:02   ` Atish Patra
2023-12-06 12:05   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 05/15] platform: include: andes45: Add PMU related CSR defines Yu Chien Peter Lin
2023-11-30 12:42 ` [PATCH v4 06/15] platform: generic: Introduce pmu_init() platform override Yu Chien Peter Lin
2023-12-06 12:19   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 07/15] platform: andes: Add Andes custom PMU support Yu Chien Peter Lin
2023-12-06 12:24   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 08/15] platform: andes: Enable Andes PMU for AE350 Yu Chien Peter Lin
2023-12-06 12:26   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 09/15] platform: rzfive: Enable Andes PMU for RZ/Five Yu Chien Peter Lin
2023-12-06 12:28   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 10/15] lib: utils: fdt_fixup: Allow preserving PMU properties Yu Chien Peter Lin
2023-12-04  9:05   ` Atish Patra
2023-12-06 12:31   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 11/15] platform: andes: Factor out is_andes() helper Yu Chien Peter Lin
2023-11-30 12:42 ` [PATCH v4 12/15] lib: utils: fdt_pmu: Make the fdt_pmu_evt_select table global variable Yu Chien Peter Lin
2023-12-06  1:54   ` Atish Patra
2023-12-06 12:49   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 13/15] lib: utils: fdt_pmu: Do not iterate over the fdt_pmu_evt_select table Yu Chien Peter Lin
2023-12-04  9:09   ` Atish Patra
2023-12-06 12:50   ` Anup Patel
2023-11-30 12:42 ` [PATCH v4 14/15] platform: andes: Add Andes default PMU mapping support Yu Chien Peter Lin
2023-12-06  1:53   ` Atish Patra
2023-12-18  7:32     ` Yu-Chien Peter Lin
2023-11-30 12:42 ` [PATCH v4 15/15] docs: pmu: Add Andes PMU node example Yu Chien Peter Lin
2023-12-06 14:23 ` [PATCH v4 00/15] Add Andes PMU extension support Anup Patel
2023-12-18  5:45   ` Anup Patel
2023-12-18  7:16     ` Yu-Chien Peter Lin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZX_x0JaEnB5QCSFz@APC323 \
    --to=peterlin@andestech.com \
    --cc=opensbi@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.