* [PATCH v2] misc: fastrpc: Reduce console noise from expected DSP info, reserved memory and session messages
@ 2026-09-07 7:03 Jianping Li
2026-09-14 8:12 ` Srinivas Kandagatla
0 siblings, 1 reply; 2+ messages in thread
From: Jianping Li @ 2026-09-07 7:03 UTC (permalink / raw)
To: Srinivas Kandagatla, Ekansh Gupta
Cc: Jianping Li, Arnd Bergmann, Greg Kroah-Hartman, linux-arm-msm,
dri-devel, linux-kernel, Dmitry Baryshkov, quic_chennak
On some platforms the DSP firmware does not support the fastrpc
capability/attribute query. The DSP side returns an error (err: -1)
while handling the request, so fastrpc_get_info_from_dsp() does not
return DSP_UNSUPPORTED_API but a generic error, and the "else if (err)"
branch in fastrpc_get_info_from_kernel() is taken.
cctx->valid_attributes is therefore never set and every open()/query
re-prints the same "dsp information is incorrect" line. This is not
tied to boot timing: it can be reproduced at any time by manually
starting adsprpcd. On RC builds with metadata flashing enabled several
clients come up and flood the console.
As this is an expected, platform-specific and non-fatal condition,
downgrade the message to dev_dbg. Similarly, the absence of reserved
DMA memory is a valid configuration and does not indicate an error,
so downgrade that message to dev_dbg as well. Also rate-limit the
"No session available" message with dev_err_ratelimited(): it reflects
a genuine failure (open() returns -EBUSY) so it should still be visible,
but must not flood dmesg when the session pool is exhausted.
No functional change intended.
Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>
---
Patch [v1]: https://lore.kernel.org/all/20260514062825.50172-1-jianping.li@oss.qualcomm.com/
Changes in v2:
- Add "misc: fastrpc:" subject prefix.
- Reword commit message: drop "temporarily", describe the actual scenario
and state the errno returned by the DSP.
- Rate-limit "No session available" with dev_err_ratelimited().
---
drivers/misc/fastrpc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
index d4fac2caca86..1f9531a534b9 100644
--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -1783,7 +1783,7 @@ static int fastrpc_device_open(struct inode *inode, struct file *filp)
fl->sctx = fastrpc_session_alloc(fl);
if (!fl->sctx) {
- dev_err(&cctx->rpdev->dev, "No session available\n");
+ dev_err_ratelimited(&cctx->rpdev->dev, "No session available\n");
mutex_destroy(&fl->mutex);
kfree(fl);
fastrpc_channel_ctx_put(cctx);
@@ -1937,7 +1937,7 @@ static int fastrpc_get_info_from_kernel(struct fastrpc_ioctl_capability *cap,
kfree(dsp_attributes);
return -EOPNOTSUPP;
} else if (err) {
- dev_err(&cctx->rpdev->dev, "Error: dsp information is incorrect err: %d\n", err);
+ dev_dbg(&cctx->rpdev->dev, "Error: dsp information is incorrect err: %d\n", err);
kfree(dsp_attributes);
return err;
}
@@ -2559,7 +2559,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
}
if (of_reserved_mem_device_init_by_idx(rdev, rdev->of_node, 0))
- dev_info(rdev, "no reserved DMA memory for FASTRPC\n");
+ dev_dbg(rdev, "no reserved DMA memory for FASTRPC\n");
vmcount = of_property_read_variable_u32_array(rdev->of_node,
"qcom,vmids", &vmids[0], 0, FASTRPC_MAX_VMIDS);
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v2] misc: fastrpc: Reduce console noise from expected DSP info, reserved memory and session messages
2026-09-07 7:03 [PATCH v2] misc: fastrpc: Reduce console noise from expected DSP info, reserved memory and session messages Jianping Li
@ 2026-09-14 8:12 ` Srinivas Kandagatla
0 siblings, 0 replies; 2+ messages in thread
From: Srinivas Kandagatla @ 2026-09-14 8:12 UTC (permalink / raw)
To: Ekansh Gupta, Jianping Li
Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-arm-msm, dri-devel,
linux-kernel, Dmitry Baryshkov, quic_chennak
On Mon, 07 Sep 2026 15:03:56 +0800, Jianping Li wrote:
> On some platforms the DSP firmware does not support the fastrpc
> capability/attribute query. The DSP side returns an error (err: -1)
> while handling the request, so fastrpc_get_info_from_dsp() does not
> return DSP_UNSUPPORTED_API but a generic error, and the "else if (err)"
> branch in fastrpc_get_info_from_kernel() is taken.
>
> cctx->valid_attributes is therefore never set and every open()/query
> re-prints the same "dsp information is incorrect" line. This is not
> tied to boot timing: it can be reproduced at any time by manually
> starting adsprpcd. On RC builds with metadata flashing enabled several
> clients come up and flood the console.
>
> [...]
Applied, thanks!
[1/1] misc: fastrpc: Reduce console noise from expected DSP info, reserved memory and session messages
commit: 94778611d71b57ff917de507229e1c58ad9deba7
Best regards,
--
Srinivas Kandagatla <srini@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-14 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-07 7:03 [PATCH v2] misc: fastrpc: Reduce console noise from expected DSP info, reserved memory and session messages Jianping Li
2026-09-14 8:12 ` Srinivas Kandagatla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®