From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795915415; b=afqUyI2CBa5hwLsSE3T4x7vfLPE3Ak5RXKmoe957/ZH0EOOHklVt5jr27pnMx+tDc3Ep HVORTh+5KviqRKxMVa7r2FgMjER87p/Z4mqluwL1vw5uP/MWk+Tbs99kkhIYd10nnyqI0 YoSU2EMGA4RFV+8nT0NfyaneIHorYgKiA8oeFFM2NMvi5qGocoZA0yoYzimMuT9JcZeLK 4RhmoXEgQtLbdFIBDT++SHMjtBeyW1eYWH3L4ZzCJK6h8EBjdizh/yJCb5BtH6VFh7vcj LPVOkGoN+DPvKvOhnX3l58S/FtoBnyc/kjc3sizRc5t/hFgM3IsPvDHfABJ3IAjurZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795915415; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=g5Ys1Ns+QnVv+9ESTZDIlBO5c9a3C1VlpWa5xlz6+wA=; b=VC8oF+dQZTJtuGCE1RdnO4uAr8lRLr+HdoIkH6TlebDLOpyj65G8i0+KbE8OPWhf6ina yWYBwLbNbaAMI59RXZjT2LWEOft+01WkDIY3Cs4bFx6B2VH6R1tkpyfA/RQGEJue7K92M XWs2V2Mn6Lfb5P1X8IJ65kiVXQgp27DaQBOhwlYEsu5s6bD4W5t8/aj9x/b5kUdauMWJN SNc6AN2owRdt4JbolOLlqCTzn3yuNrz9UOBLIvaO+A7g49weZXFSE7+K//R+e2WoBbVD3 3JBc24UNmk+IIvoVPwESA6cl/NSpULE8+2uuZAo+EU+XA1kWG55BbjeINgYhv7PM5bQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JghIVtxS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 678EF606A324 for ; Sun, 29 Nov 2026 01:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JghIVtxS Received: by smtp.kernel.org (Postfix) with ESMTPSA id E26221F000C1; Sun, 29 Nov 2026 01:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795915415; bh=g5Ys1Ns+QnVv+9ESTZDIlBO5c9a3C1VlpWa5xlz6+wA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JghIVtxS4XeFCkd7FlwT2HziM6OI3Es3Dh3aPipMT33alTBtdW5bFUaAVmECMG4XR 8rUuEhdLAHI6pva3EHKeSIx3hFXgpE8QCLYauBggZ6B4nhcFX9FQUuLQXkDPtnjear xWS0cerzAsGeFrCygikew4320DhRyG1zI8Q5It3NFwjR+hqeUA2vO+kyD+TweJI4M4 lp8Aipe2/x4Crz6DYqj/qDEH+YEtEyWLt94nIhl9leneOfOm8wC2VjKhXs9hcm5Z/u h6oTVNvTsLQFOu0mGM+oqrV6wqZxL76rZs9UWQ4VwF+z2su6uSKENDB/tY1Tz2qE1I yvMR9OKV1WYTw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/2] ASoC: qcom: q6asm: don't advance dsp_buf on failed write or read Reply-To: sashiko-reviews@lists.linux.dev To: "Vladimir Bely" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261129011802.1025539-2-vlwwwwww@gmail.com> References: <20261129001951.991080-1-vlwwwwww@gmail.com> <20261129011802.1025539-2-vlwwwwww@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 01:23:34 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 > 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 [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 api= s") Fixes: fdbb53d318aa ("ASoC: qdsp6: q6asm: do not sleep while atomic") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129011802.1025= 539-1-vlwwwwww@gmail.com?part=3D1