From: sashiko-bot@kernel.org
To: "Praveen Talari" <praveen.talari@oss.qualcomm.com>
Cc: Frank.Li@kernel.org, dmaengine@vger.kernel.org,
linux-trace-kernel@vger.kernel.org, vkoul@kernel.org
Subject: Re: [PATCH v3 1/2] dmaengine: qcom: gpi: Add trace event support
Date: Fri, 25 Sep 2026 21:02:33 +0000 [thread overview]
Message-ID: <20260925210234.137531F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260926-add-trace-support-gpio-v3-1-8572bf7456b2@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dmaengine: gpi: dropped trace events for coalesced interrupts
--
commit 0bb8d8f2455ccff160b2666b22bf4854db9eb970
Author: Praveen Talari <praveen.talari@oss.qualcomm.com>
dmaengine: qcom: gpi: Add trace event support
This commit adds tracepoint support to the Qualcomm GPI DMA engine driver
for structured runtime visibility into GPI DMA behavior. The events cover
channel command dispatch, IRQ type handling, and state transitions among
other details.
> diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c
> index c41bfac65ddf3..fafe6ac848d94 100644
> --- a/drivers/dma/qcom/gpi.c
> +++ b/drivers/dma/qcom/gpi.c
[ ... ]
> @@ -841,6 +846,7 @@ static irqreturn_t gpi_handle_irq(int irq, void *data)
>
> offset = GPII_n_CNTXT_TYPE_IRQ_OFFS(gpii->gpii_id);
> type = gpi_read_reg(gpii, gpii->regs + offset);
> + trace_gpi_irq_status(gpii->gpi_dev->dev, gpii_id, type);
[Severity: Medium]
Will this miss tracing coalesced interrupts?
Because trace_gpi_irq_status() is placed strictly before the
do { ... } while (type); loop in gpi_handle_irq(), when new interrupts
arrive during the handler execution and the loop re-reads the type
register, the tracepoint is not called again for the newly read type.
Should the tracepoint be moved inside the loop, or placed iteratively
after every register read?
>
> do {
> /* global gpii error */
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260926-add-trace-support-gpio-v3-0-8572bf7456b2@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-09-25 21:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 20:51 [PATCH v3 0/2] dmaengine: qcom: gpi: Add trace event support Praveen Talari
2026-09-25 20:51 ` [PATCH v3 1/2] " Praveen Talari
2026-09-25 21:02 ` sashiko-bot [this message]
2026-09-25 20:51 ` [PATCH v3 2/2] dmaengine: qcom: gpi: Convert dev_dbg() calls to tracepoints Praveen Talari
2026-09-25 21:02 ` sashiko-bot
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=20260925210234.137531F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=praveen.talari@oss.qualcomm.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@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