From: Sudeep Holla <sudeep.holla@arm.com>
To: Besar Wicaksono <bwicaksono@nvidia.com>, rafael@kernel.org
Cc: lenb@kernel.org, robert.moore@intel.com, catalin.marinas@arm.com,
will@kernel.org, lorenzo.pieralisi@arm.com, guohanjun@huawei.com,
linux-tegra@vger.kernel.org, treding@nvidia.com,
jonathanh@nvidia.com, linux-acpi@vger.kernel.org,
devel@acpica.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] ACPI: ARM Performance Monitoring Unit Table (APMT) initial support
Date: Wed, 4 May 2022 19:26:33 +0100 [thread overview]
Message-ID: <20220504182633.a3mwuiohfqtjvpep@bogus> (raw)
In-Reply-To: <20220419205432.46021-3-bwicaksono@nvidia.com>
Hi Besar, Rafael,
Sorry for the delayed response.
On Tue, Apr 19, 2022 at 03:54:32PM -0500, Besar Wicaksono wrote:
> ARM Performance Monitoring Unit Table describes the properties of PMU
> support in ARM-based system. The APMT table contains a list of nodes,
> each represents a PMU in the system that conforms to ARM CoreSight PMU
> architecture. The properties of each node include information required
> to access the PMU (e.g. MMIO base address, interrupt number) and also
> identification. For more detailed information, please refer to the
> specification below:
> * APMT: https://developer.arm.com/documentation/den0117/latest
> * ARM Coresight PMU:
> https://developer.arm.com/documentation/ihi0091/latest
>
> The initial support adds the detection of APMT table and generic
> infrastructure to create platform devices for ARM CoreSight PMUs.
> Similar to IORT the root pointer of APMT is preserved during runtime
> and each PMU platform device is given a pointer to the corresponding
> APMT node.
>
Hi Besar,
This patch on its own looks fine and happy to ack. However I would like
to know general process on such changes that add platform or any bus
device but the driver itself is not upstream.
Any particular reason why you would like to rush and push this without
the actual driver to probe the device being added here ?
> Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
> ---
> arch/arm64/Kconfig | 1 +
> drivers/acpi/arm64/Kconfig | 3 +
> drivers/acpi/arm64/Makefile | 1 +
> drivers/acpi/arm64/apmt.c | 176 ++++++++++++++++++++++++++++++++++++
> drivers/acpi/bus.c | 2 +
> include/linux/acpi_apmt.h | 19 ++++
> 6 files changed, 202 insertions(+)
> create mode 100644 drivers/acpi/arm64/apmt.c
> create mode 100644 include/linux/acpi_apmt.h
>
[...]
> diff --git a/drivers/acpi/arm64/apmt.c b/drivers/acpi/arm64/apmt.c
> new file mode 100644
> index 000000000000..8b8b9f480548
> --- /dev/null
> +++ b/drivers/acpi/arm64/apmt.c
> @@ -0,0 +1,176 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * ARM APMT table support.
> + * Design document number: ARM DEN0117.
> + *
> + * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES.
> + *
> + */
> +
> +#define pr_fmt(fmt) "ACPI: APMT: " fmt
> +
> +#include <linux/acpi.h>
> +#include <linux/init.h>
> +#include <linux/kernel.h>
> +#include <linux/platform_device.h>
> +
> +#define DEV_NAME "arm-csite-pmu"
> +
I really don't prefer this name:
1. arm-coresight-pmu is much better than "csite". I see the short form
used elsewhere in the kernel is just "cs" as in cs_etm,...etc
2. Since APMT is more generic than just coresight(I understand coresight
was the initial motivation for the generic specification) and also
the type list seem to cover memory controller, SMMU,..etc, does
it make sense to call it "arm-generic-pmu" or something similar.
Anyways, it can be part of the driver discussion as people might have
opinion based on what and how the driver covers the variety of PMU
types possible as described in APMT.
Not sure if the same device name will be re-used or PMUs can be registered
with different name under perf subsystem, but the name matters for the user
space tools and decoders. They may use the name or type information to analyse
the data samples.
So it is better to wait for all those discussion as part of the driver
upstreaming before you use this device name unless we are absolutely sure
the PMUs can be registered with different names in the driver(which could
be possible, I just don't know)
Apart from this name, I am OK with the changes here and happy to ack if it
is OK to merge this without any driver to probe this device yet.
--
Regards,
Sudeep
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-05-04 18:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-19 20:54 [PATCH 0/2] ACPI: ARM CoreSight Performance Monitoring Unit Besar Wicaksono
2022-04-19 20:54 ` [PATCH 1/2] ACPICA: Add support for ARM Performance Monitoring Unit Table Besar Wicaksono
2022-04-20 15:31 ` Rafael J. Wysocki
2022-04-19 20:54 ` [PATCH 2/2] ACPI: ARM Performance Monitoring Unit Table (APMT) initial support Besar Wicaksono
2022-05-04 18:26 ` Sudeep Holla [this message]
2022-05-04 22:08 ` Besar Wicaksono
2022-05-05 11:42 ` Sudeep Holla
2022-05-07 15:03 ` Hanjun Guo
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=20220504182633.a3mwuiohfqtjvpep@bogus \
--to=sudeep.holla@arm.com \
--cc=bwicaksono@nvidia.com \
--cc=catalin.marinas@arm.com \
--cc=devel@acpica.org \
--cc=guohanjun@huawei.com \
--cc=jonathanh@nvidia.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=rafael@kernel.org \
--cc=robert.moore@intel.com \
--cc=treding@nvidia.com \
--cc=will@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox