From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BC9C31DD97 for ; Fri, 3 Jul 2026 08:31:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783067512; cv=none; b=ThzqiMUMYU7J6WGconEXzc1kAfHtepTtN3XWOcCZfNW4rqiVpbrmlLHk32UuJqwZ23r29LpHZ0As7m9LKcst4bdIE7aG2pGcsB+WeBmbVOTsUvOZ4P2/91EOekzknUVvEz3zRvWrKVpMmtluv3O/J4iiAX/3K4RW2fJn2VL0ZD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783067512; c=relaxed/simple; bh=RM14EZ+JtNCN7Tih2aDJbikJ63wC1jDUw91kbqLYjEA=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=Rq4fqg7y3Hy4aJpqEGqXrcGFcxXPo5gITqo5D5523qZEhwA0QCtzxWOnmQaQYOd4xBkbSTskeV4vTZkcln9vB8W5LlTSx6D+rUN5SSpSWjxjMJT4yYB4tO8v/v+fJNxNvazm+3t2gtjyIcAK7SsHdcHvUdelG1WDVOeBa6grNs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=XCBPZ2IJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JMeR8pUU; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="XCBPZ2IJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JMeR8pUU" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6635s39c3126906 for ; Fri, 3 Jul 2026 08:31:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 30jHl1aofyomvSG7on5YYtAKEDMGwM3o7HFcEeYIKXc=; b=XCBPZ2IJ3Eb8DgH9 1Sst3yHvnu6gkYi6RdjV5PmhLo13mTWF9d03tdUedS6pbuhV3uP9MbGUdNNQzQKZ +rsy2HtQSjckn2dnP/f/UX9syZ6kffWztVskGwjs5gzqyqNrvkQDjrvZBwv/b8ZC xeSA6eNAecY6IThuro6QZpqEgrc98Qdsqw1Wr5D9Q2ZfTT3p9dkQIXTahQ8Tl+hk V/75xDZZ1XeOuaz0GFILi7iaV7sSJOjXg7nJzp7pvNRyTHONNSzfeqEReEDdKOCk PIE4uwe5faUsh8v6LRv+jjlxdudDI73QoWTszPJCMvnPgm7HnksSC13bhO1FQJvl bmmcXQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5tpnkhv1-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 08:31:49 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2c6bbd0afffso8636825ad.0 for ; Fri, 03 Jul 2026 01:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783067509; x=1783672309; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=30jHl1aofyomvSG7on5YYtAKEDMGwM3o7HFcEeYIKXc=; b=JMeR8pUUCEd5efR6HgVVbM6I6uU9Of9KwHgEGrJYKoloQRaMI5L4mGEao35jMKsMTP CrcfW7AgXooUQu/SBd66GP34ffyHwufHHBSBxH5NAi9Z5Sse4pPLrZL4VrUYEBDHsv61 PzhQidyw4xos8Z+G59HqYmaUl/KTTbbte0hb6NzlTz7gFzZcbS3gj2mySelp7aJAqSYK 6CH7KjfGYReE6YTsbPgspANzSqR+285LuLFykJnOohhMIolq4yDAIdQ/LqPvbnL/eQvq fZd6DUlnK0NXOGbziF0uHY9K1kvBOXYjzB3YoajzLbGjpQ4ZsaB+2xs8WH5+AfMjRpFC cGFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783067509; x=1783672309; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=30jHl1aofyomvSG7on5YYtAKEDMGwM3o7HFcEeYIKXc=; b=KJw+oT54C6DHK/LuPg0mYVvHu/AmIOp9AAEDXkoQsZASISh38bdUHHX20YTYHsfTsZ lHsRRn6wsCQE0dxVfep126aMudCtVEuk7Qq5wsyvzHB6JYvwxzfs7J2ebAyKedWKzEsh tVbFNp+Hzkq9ozHoZbtQ8f0//Sa3z5GVSFoOthQGhLMCdD8dJ6mLukeDfoFTFT8Ga+5C HW+w+WO5fps0ycw+qS3dXGS1bS06OMQ7OSAKxIFY2KdJxtxIWEN/uSDWTNWcS9C5MjXs s+4EYaN0b01yTWHGJ9M4niEjRzqBX2rtX5slhzLH4R4R+ef0fgM37cyReegey7RdCtRn oQGA== X-Forwarded-Encrypted: i=1; AHgh+RpGasfKdVpoMexfNcA9R129nyIwWeM319RxILbjieSvIonHQaqVmCB3rLegQDoBqIRnG0msGf0ZHEqO6yg=@vger.kernel.org X-Gm-Message-State: AOJu0YzelUnyZRbq0ntB7JV5nwwM9aVVD8NgjVGcismH0BQkcMGoFFsn GiUW30loTT/fkRHQNA6lHO8g/EIzkFvWx8k9ctAvY9bhAIvSuiKFB0aqsv0k5B/C/TryE27bQ9O srf+MtB/5dpXgqFDDeWvbQIejGtfo/xd37XbWwMxgrGWmtEBxrBuCjexh6wBEd69vcZRj3Qsts2 4= X-Gm-Gg: AfdE7cmrhm8OHr5XErFfQ9o8oYs47j7J++mks+/RmX/VHDb9uObWMULoL3XqpBvH7ca gvwEynm2R0FaPkB24n51q48+QbWgYw4JplvIq7bHNS+Zwa36s89YTJPQHvvvsZSKxY/aI8BtMu7 kcVPG8X8Me/j1eBplYIA3ZeZ0LZ44WugAfUXlw33QUmtqFVRk2kx3woEZIMwyFydRFwsO39vHqn 7AsixuZrHy0pdZYKsijXQrDYLqBciEpGspIQXfOTljfvbdpuJXlJE7AYny/lLALBzLvFeyIAx6f 8iDhTom0vLWpmUWN39ziDak02x2wjFHc3hof5NmXHLQutGf6vqqvUHQ+igYF4j39c1Lt9mJ+MVJ EFUtNm4fS3z9XTT7rN+kU+4IuJDl8sqIhjV98Sb7z+RnJKsTQi5P3kbB5K45xbjl7e/DrmZg3Df 1a3kabQw== X-Received: by 2002:a17:903:fae:b0:2c9:e261:95bf with SMTP id d9443c01a7336-2ca7e757955mr102746995ad.26.1783067508770; Fri, 03 Jul 2026 01:31:48 -0700 (PDT) X-Received: by 2002:a17:903:fae:b0:2c9:e261:95bf with SMTP id d9443c01a7336-2ca7e757955mr102746625ad.26.1783067508205; Fri, 03 Jul 2026 01:31:48 -0700 (PDT) Received: from [10.133.33.167] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad7871366sm5880105ad.62.2026.07.03.01.31.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 01:31:47 -0700 (PDT) Message-ID: Date: Fri, 3 Jul 2026 16:31:43 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fastrpc: Reduce log level for DSP info and reserved memory messages To: Dmitry Baryshkov References: <20260514062825.50172-1-jianping.li@oss.qualcomm.com> Content-Language: en-US Cc: Srinivas Kandagatla , amahesh@qti.qualcomm.com, arnd@arndb.de, Greg KH , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ekansh Gupta From: Jianping Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: AC3WhUyaCN4HQ2Rye01QQnvT0ZP-YDBy X-Proofpoint-ORIG-GUID: AC3WhUyaCN4HQ2Rye01QQnvT0ZP-YDBy X-Authority-Analysis: v=2.4 cv=UMft2ify c=1 sm=1 tr=0 ts=6a477375 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=C2AwR90XAiyykRj1wVUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA4MCBTYWx0ZWRfX5ute5dSjwG6l HUI6zvqKuo7DdCVywM4DyrZVOzuKwQ7iSExmm75g57JimcVSgo+FvoS6sVRY5mRXp5THbUK3dxX zlErVR+2gB4uMzk/UWXb0voYxONi2Ek= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA4MCBTYWx0ZWRfX87h+05DNx2CW sfseQjQCbiXUv0BAEHzm+Wsaq/276KWOTAjx190CU9Ak6BTIUxBa6eeVtAUhm6OOhOBBaKF9uJx uHiB3+Dqc17tNuAsfYpkoYKjybIKk28j+ZOoLrPfmCMl/w0xJmD7oeWwFeFyGEZsV0oGMHwKdym NXsedNPntHuUKzuWo4JsWnTOIxQyIkJU4JRcKGQ9lFPZzV8vVPb3LZM2q3Wfv6eIuOIjifRDdZB OA1U4RRU5AJvHyIhXhVrYv8FwLv/bdFLRV9E+ZG6lvNKP7svl0DnOI/ZpBSKDIUF7PcJgwouaMW /lPwdimsTmBVETF/tof6ieka7xhtrIWbB4jR5+cXUI2th7y8Ir+x3mbyTBpL+NPOg0QrbJ7SY4O JPAODew0wOuON45+dpcoCI53N6TjOejm35aUHk7oFfI8DEXfhnrvq3JcqUxsZ4LBS/X+UGwinUC cngjYrPzm5LjxOmb2Uw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 spamscore=0 adultscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030080 On 5/18/2026 7:08 AM, Dmitry Baryshkov wrote: > On Thu, May 14, 2026 at 02:28:25PM +0800, Jianping Li wrote: >> On some platforms (e.g. QCS615 Talos), fastrpc may temporarily fail >> to retrieve DSP attributes during boot, resulting in repeated > temporarily? What does it mean? Should there be any sync with the DSP, > letting the FastRPC driver know when it's safe to retrieve the > information? Hi Dmitry, Thanks for the review — "temporarily" was a poor word choice on my part, sorry for the confusion. There is no boot-time race that eventually resolves; let me walk through the code to make the actual scenario clearer. The FastRPC misc device is only registered after the rpmsg channel to the DSP is up (fastrpc_rpmsg_probe -> fastrpc_device_register), so the transport-level sync between the driver and the DSP is already in place before userspace can issue any ioctl. And fastrpc_get_info_from_kernel() already caches the result the first time it succeeds: if (cctx->valid_attributes) { spin_unlock_irqrestore(&cctx->lock, flags); goto done; } ... err = fastrpc_get_info_from_dsp(...); if (err == DSP_UNSUPPORTED_API) { dev_info(... "DSP capabilities not supported\n"); return -EOPNOTSUPP; } else if (err) { dev_err(... "dsp information is incorrect err: %d\n", err); return err; } ... cctx->valid_attributes = true; So on platforms where the DSP firmware implements the attribute RPC, the message is not printed and the query happens exactly once for the lifetime of the channel. On this SoC the DSP firmware returns a non-zero error that is not DSP_UNSUPPORTED_API, so the else-if (err) branch is taken every time: valid_attributes is never set, the next open re-queries the DSP, and the same dev_err line is printed again. On RC builds with metadata flashing enabled, several such clients come up at boot and the console gets flooded. I think lowering the kernel log level is the least invasive fix. I'll respin v2 with the commit message reworded to drop "temporarily" and describe the above accurately. No functional change beyond the log-level downgrade. Thanks, Jianping > >> "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. >> >> Signed-off-by: Jianping Li >> --- >> drivers/misc/fastrpc.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >>