From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796295420; b=EGkGJRQJIvFeJtI8NMDERI3gh20mCQG4AJRzdLdSD9V948xonzpt7TPRZC4LQHnM2eET Aq2B29AmpnL12n+05cPOMePRc5z/+fVYk1el3ygsmynYhqdUige4yCyBJNLysrNCpcX7c W/u2odIy//QyFJgetVXqD6H+8FMG35Pc7bvB5VK1bfhDg0PKCXK5XSL+k9vEIql96NF0O mGhLpohSiCTVw2cYjwR4d896DFeGYbO/jVgWGQwzdX8HGd2yaXnO9VpuHxZ3lQ11GyOJP zLgvxX+phzCU8ewNGl4NdJDPBWB2Wfy1+CL83CtJWTRQZgxMzaqZsZVLF9Tyhw97XLg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295420; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=JAR1IMr84nvXAg/PDpe3VGl4e6gBI5BP2SBhklb7iQM=; b=ByDyukhTF0iLpTV+gxhOHXiih1GAxKsy74xCjRc8qNVMFxpeXGXRBaEKF9AlHAvHwWSp tP809ADjkvTKHPRTK2gHmwk+xIs7skrXqUeCQ+NyHYZj4VcSdf1O+J3y8fdHBeD9L6kRM IpAsTjEBthLX6qWXGM73CWNHItUyA5OtI2YGLn3EcVfFmJCkSLPtDCxdgMRGAIxpH7Dxh InRbeM29JJFvQGLYKIyN6jFWhAjCv1ApdpnPqhnUgR2hhKn3q8vGMk6WxCTWni9ncHBrv xNcgohixSz5c5BxmhZ0YXEJqJOteHMS2l08iBRJdKVCF8ni54vb/eaSI2IAwsADQJAA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="OxVT5/4t"; arc=pass header.oldest-pass=0 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 B72F2606A322; Thu, 3 Dec 2026 10:57:00 +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=OxVT5/4t Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796295420; b=EKUOQcUqKFXSXxHyWFJjJ0QIG2pZPe6HpG4UxC8fTTN3l6f+1zeVDxgM6ntquHQyUjC4 ShEBVxNTGD65F8cavlCFTM+vmSShrsQJ3ri7t2u56OyEipeVAlYIymvbnjSLNIBQjtIMD lKgnXPF+QTgWGVxqYbPU+lwxaKyY+qA9RYcxDZMLmRdaoM6OX92AEbQccl44C3ZHPVG23 FYHErSyQMppAoTO5CBKegKAHnX21vTG51GPtutABQyKsfFUrEh24cM1tc88rUbdiaI0wr q45sMyS139MEKraC3UtrSnbhO/cOHyUA1g0PP+ow6dEui8ajPWpyWKzG1maqhzp8ehQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796295420; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=JAR1IMr84nvXAg/PDpe3VGl4e6gBI5BP2SBhklb7iQM=; b=XOSO0dSUY/HK9S2RYJXfCoZOQW+xeYeHES1OhcBZEyEp6nlGRkY7vd8l+2F4wwYTwNlJ gsAhnXpfYL4sX4BoCJF2z7RDoRvpcTB3hLxeLjoixGMB89vij7LiLC2Z3xr3teoaphbkF IfL/CNMY23aD/Clq4xv/jj3CRO68Zbt7QpFhb2yMZaD488lZPeiuxBthyfJ5fnXHJA1kT UIbqjjSmVW91colNCgLJHNerQ9MneNOVN0mw3tFpptP/Vs/DN9EeiAHW1D7j/J4H3On5v MhX7eMMyCNvkbxkP0QJrEUmQidnDgAuSxCgNwjP8ooNXvwqAxtXce8hwCTF12Jhh1xg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id B12C61F00893; Thu, 3 Dec 2026 10:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796295420; bh=JAR1IMr84nvXAg/PDpe3VGl4e6gBI5BP2SBhklb7iQM=; h=From:Subject:Date:To:Cc:Reply-To; b=OxVT5/4tRRD2n/MHyw9kIEgHtKAfRP5dLXFl2sZwWyBApCpG7dTN1aI8FspAA0iZ/ P2U2H0eiPQROjF7iR2csHCiZfqksv09YV9+IJSKX5JLfePxJNIeMsI5a/JrJ0cU0FC 6vbtKNaypXkv8AbSfW2h53BQEPHBxa5Q9wAj6sItcyczGAZh7cinPKnMcv0Un5KaG+ Tnh8wMkKbJJgbAUuRGQ9vKLcZ+Hj6XZfroi2F9HMh3C3UO5lgXOSpoDex385SwfJ86 8L7WUZDyYTq+aeP82Z5rKcM4zZmBdF27t4xNoLzT648MBs61mVyPy9CkBjz5LL+l6A DGap1bMp3R1TA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 402B34F90E; Thu, 3 Dec 2026 10:56:59 +0000 (UTC) From: Alexandre Rapaille via B4 Relay Subject: [PATCH v2 0/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox Date: Thu, 03 Dec 2026 11:56:59 +0100 Message-Id: <20261203-smsm-null-mbox-v2-0-b4b6e224b127@atlr-engineering.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPtKEWsC/3WPwQ7CIAyGX8VwtkbAEfXke5gdgHUbZoCh2zKz7 N2Fefb4/W2/tisjTA6J3Q8rSzg7cjFkEMcDs70OHYJrMjNxFopzoYA8eQjTMIA3cQFZSd1Ic73 cKmR56J2wdcsufNY/psm80I7FUjqMJgSTdLB9iXZfyUqtdzTG9NmvmXlx/F08c+DQKqsaa4WWp n3ocUiAoXMB80+hO9noWb1t2xeSheUY5QAAAA== X-Change-ID: 20261126-smsm-null-mbox-353ad3b8495e To: Jassi Brar , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Alexandre Rapaille X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796295420; l=1383; i=arapaille@atlr-engineering.com; s=20261118; h=from:subject:message-id; bh=othWW8pbq3Way9+Nb3Iws+YZIXf3WB1er2k5oosbrbc=; b=M7D5zs4n7DkZOT2UVko3sjeCYMsqbMBzldArOEAWHyBePIIheO8DJNhRTpiG5TiWhxR0GbpC0 ZjWoHh1sAqcD6IiU6v6Z/JrPV/cSbJjL81RxmoIids1F2NWPzpF2cFO X-Developer-Key: i=arapaille@atlr-engineering.com; a=ed25519; pk=xskH/sIiNU/aZCeGeBB1TK/AuiG3MXlX0m2wMlbMl08= X-Endpoint-Received: by B4 Relay for arapaille@atlr-engineering.com/20261118 with auth_id=1560 X-Original-From: Alexandre Rapaille Reply-To: arapaille@atlr-engineering.com On msm8974, smsm logs a mailbox error twice at every boot, once for each host that has no mailbox. Patch 1 adds mbox_request_channel_optional() to the mailbox core, patch 2 uses it in smsm. Patch 2 depends on patch 1. Tested on a Fairphone 2 with next-20261127: without the series the line is printed twice at boot, with it not at all. The modem recovered from 3 forced crashes on both kernels. A boot-time kprobe on mbox_request_channel_optional() shows hosts 1-3 get a channel and hosts 0 and 4 get NULL. --- Changes in v2: - Add mbox_request_channel_optional() to the mailbox core and use it, instead of parsing "mboxes" in smsm (Konrad) - Drop Fixes: from the smsm patch, it now depends on patch 1 - Link to v1: https://patch.msgid.link/20261126-smsm-null-mbox-v1-1-f6c6dcc2a3bf@atlr-engineering.com --- Alexandre Rapaille (2): mailbox: Add mbox_request_channel_optional() soc: qcom: smsm: Don't log an error for hosts without a mailbox drivers/mailbox/mailbox.c | 62 ++++++++++++++++++++++++++++++------------ drivers/soc/qcom/smsm.c | 4 ++- include/linux/mailbox_client.h | 1 + 3 files changed, 48 insertions(+), 19 deletions(-) --- base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca change-id: 20261126-smsm-null-mbox-353ad3b8495e Best regards, -- Alexandre Rapaille