From: Greg KH <gregkh@linuxfoundation.org>
To: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Cc: arnd@arndb.de, catalin.marinas@arm.com, rostedt@goodmis.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
maz@kernel.org, quic_psodagud@quicinc.com,
quic_tsoni@quicinc.com, will@kernel.org
Subject: Re: [PATCHv12 7/9] asm-generic/io: Add logging support for MMIO accessors
Date: Thu, 28 Apr 2022 12:51:49 +0200 [thread overview]
Message-ID: <YmpxxW5CZjMVrzF0@kroah.com> (raw)
In-Reply-To: <6673a2e73d3dd4c7aa01fee9b26cc4a52176ba7a.1651139070.git.quic_saipraka@quicinc.com>
On Thu, Apr 28, 2022 at 03:25:30PM +0530, Sai Prakash Ranjan wrote:
> Add logging support for MMIO high level accessors such as read{b,w,l,q}
> and their relaxed versions to aid in debugging unexpected crashes/hangs
> caused by the corresponding MMIO operation.
>
> Signed-off-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
> ---
> include/asm-generic/io.h | 82 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 78 insertions(+), 4 deletions(-)
>
> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
> index 7ce93aaf69f8..99090722cb4b 100644
> --- a/include/asm-generic/io.h
> +++ b/include/asm-generic/io.h
> @@ -10,6 +10,7 @@
> #include <asm/page.h> /* I/O is all done through memory accesses */
> #include <linux/string.h> /* for memset() and memcpy() */
> #include <linux/types.h>
> +#include <linux/instruction_pointer.h>
>
> #ifdef CONFIG_GENERIC_IOMAP
> #include <asm-generic/iomap.h>
> @@ -61,6 +62,35 @@
> #define __io_par(v) __io_ar(v)
> #endif
>
> +#if IS_ENABLED(CONFIG_TRACE_MMIO_ACCESS) && !(defined(__DISABLE_TRACE_MMIO__))
Shouldn't you document __DISABLE_TRACE_MMIO__ somewhere? It's not even
in the changelog. Put a big comment above this for what is is for and
how to use it. Otherwise you will forget all about this in 6 months :)
thanks,
greg k-h
next prev parent reply other threads:[~2022-04-28 10:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 9:55 [PATCHv12 0/9] lib/rwmmio/arm64: Add support to trace register reads/writes Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 1/9] arm64: io: Use asm-generic high level MMIO accessors Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 2/9] coresight: etm4x: Use asm-generic IO memory barriers Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 3/9] irqchip/tegra: Fix overflow implicit truncation warnings Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 4/9] drm/meson: " Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 5/9] lib: Add register read/write tracing support Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 6/9] KVM: arm64: Add a flag to disable MMIO trace for nVHE KVM Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 7/9] asm-generic/io: Add logging support for MMIO accessors Sai Prakash Ranjan
2022-04-28 10:51 ` Greg KH [this message]
2022-04-28 11:21 ` Sai Prakash Ranjan
2022-04-28 12:02 ` Greg KH
2022-04-28 12:29 ` Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 8/9] serial: qcom_geni_serial: Disable MMIO tracing for geni serial Sai Prakash Ranjan
2022-04-28 10:50 ` Greg KH
2022-04-28 11:30 ` Sai Prakash Ranjan
2022-04-28 16:31 ` Trilok Soni
2022-04-28 16:49 ` Greg KH
2022-04-28 17:00 ` Trilok Soni
2022-04-29 13:00 ` Sai Prakash Ranjan
2022-04-28 9:55 ` [PATCHv12 9/9] soc: qcom: geni: Disable MMIO tracing for GENI SE Sai Prakash Ranjan
2022-04-28 10:50 ` Greg KH
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=YmpxxW5CZjMVrzF0@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=quic_psodagud@quicinc.com \
--cc=quic_saipraka@quicinc.com \
--cc=quic_tsoni@quicinc.com \
--cc=rostedt@goodmis.org \
--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