All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Vladimir Bely" <vlwwwwww@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH v2 1/2] ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read
Date: Sun, 29 Nov 2026 01:23:34 +0000	[thread overview]
Message-ID: <sashiko-outbox-239204@kernel.org> (raw)
In-Reply-To: <20261129011802.1025539-2-vlwwwwww@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: qcom: q6asm: inaccurate Fixes trailer subject in commit
  message
--

commit a358d36ca367153380fac1d8e155a55b8e361b0c
Author: Vladimir Bely <vlwwwwww@gmail.com>

> ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read
>
> q6asm_write_async() and q6asm_read() increment port->dsp_buf under
> ac->lock and release the lock before calling apr_send_pkt().  If
> apr_send_pkt() fails (for example with -EAGAIN when the SMD FIFO is full
> during a playback write burst on MSM8916), dsp_buf has already moved on
> even though the DSP never received that buffer.  Subsequent writes then
> send out-of-sequence period addresses and tokens, and any retry skips the
> failed period.
>
> Hold ac->lock across apr_send_pkt() (which is atomic and non-blocking via
> rpmsg_trysend()) and only advance port->dsp_buf when the packet was
> actually accepted.  Also clear port->buf and port->dsp_buf under ac->lock
> in q6asm_audio_client_free_buf() (freeing the saved pointer after unlock)
> and reject q6asm_write_async()/q6asm_read() with -EINVAL when !port->buf
> or !port->num_periods, preventing races with concurrent unmap.
>
> Fixes: 68fd8480bb7b ("ASoC: qdsp6: q6asm: Add q6asm driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>

[Severity: Low]
The subject for commit 68fd8480bb7b is "ASoC: qdsp6: q6asm: Add support to
audio stream apis" ("ASoC: qdsp6: q6asm: Add q6asm driver" is the subject of
commit a13e872314ae), and the unlocked port->buf clear and kfree() in
q6asm_audio_client_free_buf() came from commit fdbb53d318aa ("ASoC: qdsp6:
q6asm: do not sleep while atomic").  Should the Fixes tags be:

  Fixes: 68fd8480bb7b ("ASoC: qdsp6: q6asm: Add support to audio stream apis")
  Fixes: fdbb53d318aa ("ASoC: qdsp6: q6asm: do not sleep while atomic")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129011802.1025539-1-vlwwwwww@gmail.com?part=1

  reply	other threads:[~2026-11-29  1:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  0:19 [PATCH 0/2] ASoC: qcom: qdsp6: handle SMD FIFO -EAGAIN in q6asm playback Vladimir Bely
2026-11-29  0:19 ` [PATCH 1/2] ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read Vladimir Bely
2026-11-29  0:19 ` [PATCH 2/2] ASoC: qcom: q6asm-dai: retry playback queuing on -EAGAIN Vladimir Bely
2026-11-29  0:34   ` sashiko-bot
2026-11-29  1:18 ` [PATCH v2 0/2] ASoC: qcom: qdsp6: handle SMD FIFO -EAGAIN in q6asm playback Vladimir Bely
2026-11-29  9:20   ` [PATCH v3 " Vladimir Bely
2026-11-30  7:49     ` Konrad Dybcio
2026-11-29  9:20   ` [PATCH v3 1/2] ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read Vladimir Bely
2026-11-29  9:20   ` [PATCH v3 2/2] ASoC: qcom: q6asm-dai: retry playback queuing on -EAGAIN Vladimir Bely
2026-11-29  1:18 ` [PATCH v2 1/2] ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read Vladimir Bely
2026-11-29  1:23   ` sashiko-bot [this message]
2026-11-29  1:18 ` [PATCH v2 2/2] ASoC: qcom: q6asm-dai: retry playback queuing on -EAGAIN Vladimir Bely
2026-11-29  1:31   ` 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=sashiko-outbox-239204@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vlwwwwww@gmail.com \
    /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.