From: Jianping Li <jianping.li@oss.qualcomm.com>
To: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>,
Srinivas Kandagatla <srini@kernel.org>,
amahesh@qti.qualcomm.com, arnd@arndb.de,
Greg KH <gregkh@linuxfoundation.org>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fastrpc: Reduce log level for DSP info and reserved memory messages
Date: Wed, 26 Aug 2026 16:41:47 +0800 [thread overview]
Message-ID: <f78bf297-e676-48f9-b2e8-565a8758ac6e@oss.qualcomm.com> (raw)
In-Reply-To: <dcf8d925-cf9e-47d8-ad79-0b5e641529ee@oss.qualcomm.com>
On 8/25/2026 2:47 PM, Ekansh Gupta wrote:
> On 14-05-2026 11:58, Jianping Li wrote:
>> On some platforms (e.g. QCS615 Talos), fastrpc may temporarily fail
>> to retrieve DSP attributes during boot, resulting in repeated
>> "Error: dsp information is incorrect" messages printed on the
>> console.
>>
>> These messages are observed continuously during boot when metadata
>> flashing is enabled as part of RC releases, causing unnecessary
>> log noise.
>>
>> Similarly, the absence of reserved DMA memory is a valid
>> configuration and does not represent an error condition.
>>
>> Since these scenarios are expected and do not indicate a failure,
>> downgrade the log level from dev_err/dev_info to dev_dbg to avoid
>> flooding the console.
>>
>> No functional change intended.
> misc: fastrpc: >
ACK.
>> Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>
>> ---
>> drivers/misc/fastrpc.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
>> index 1080f9acf70a..05ec14c07fd0 100644
>> --- a/drivers/misc/fastrpc.c
>> +++ b/drivers/misc/fastrpc.c
>> @@ -1802,7 +1802,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;
>> }
>> @@ -2361,7 +2361,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);
> Can you also move this log[1] to debug level/rate-limit? This can cause
> dmesg flooding in case all the session are already getting used by
> processes. Some discussion around the same happened here[2].
>
> [1]
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/misc/fastrpc.c#n1786
> [2] https://github.com/qualcomm/fastrpc/issues/383
Thanks for the pointer.
Agreed, that log can flood dmesg when the session pool is exhausted.
However, unlike the two messages in this patch, "No session available"
reflects a real failure — fastrpc_device_open() returns -EBUSY to
userspace on that path. Lowering it all the way to dev_dbg would hide a
genuine session-exhaustion condition from the default log, making such
issues harder to diagnose in the field.
So I'd prefer dev_err_ratelimited() here: it caps the flooding while
still surfacing the error. I'll fold this into the same series in v2.
Thanks,
Jianping
>
next prev parent reply other threads:[~2026-08-26 8:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 6:28 Jianping Li
2026-05-17 23:08 ` Dmitry Baryshkov
2026-07-03 8:31 ` Jianping Li
2026-07-04 0:12 ` Dmitry Baryshkov
2026-08-04 6:41 ` Jianping
2026-08-25 6:47 ` Ekansh Gupta
2026-08-26 8:41 ` Jianping Li [this message]
2026-08-27 4:47 ` Ekansh Gupta
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=f78bf297-e676-48f9-b2e8-565a8758ac6e@oss.qualcomm.com \
--to=jianping.li@oss.qualcomm.com \
--cc=amahesh@qti.qualcomm.com \
--cc=arnd@arndb.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=ekansh.gupta@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=srini@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
all inboxes | Powered by JetHome®