From nobody Sun Dec 14 12:14:23 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B04D2259C93; Tue, 27 May 2025 11:27:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748345227; cv=none; b=lFAAslFRz+1PTtUoWK49XaqD7fVI/UawwxgrvIKO5EZw+75tqhvDyxYU3M5d5JfK6ZFKoQV5xjW5iIffvAe+taak/mnha7/3w18UgrPkWEsfSdvbHclGwsxlzFBVmgV/Ue6s6BgVKjkjAnw8S0TD8A33Q/4e9MwTNxpMuD9Ybbo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748345227; c=relaxed/simple; bh=+pWI2uv73LuA3ddN/AMm/IroqKUSVjOsKAkr3zNnrkQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fg7Z2ZpwsXuJYVSqjOQu5ftQrl+1yzpmOahuO0bg0znbpgxStiR56anm65pM4g5DwzF03nQ+ekgrQpIWypoFdJUYi+RnZS+i500z4AW67IT2pSddjlVshFQCHatUeFVZSh1aBpPC3SnyuwLoA4wGRGiwb+daC8CtYZat6M+zjxI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LVzil5Ga; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LVzil5Ga" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD9C2C4CEEB; Tue, 27 May 2025 11:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1748345227; bh=+pWI2uv73LuA3ddN/AMm/IroqKUSVjOsKAkr3zNnrkQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LVzil5GaYmtvAHuv8MwfbMfVncaM0pxEwSf/LCJztXYxpTGzGR8qF5EaJ+uVKZYOV 98mVCEwQ4wD+LpwOA9xnefTdrMffp8K2CFKGiyBjcINtR7Enifu4fPEavpkO61TZQL XUSyDvyD8oJ9FMqVZQTGyFOYE2yhnogYdOHOlIMWZtw/kcN05V8QpOX4iIQeyyyE7d YfenuXvMTA6BNdNswcMt/jhDybhm7BkafJXEZAcHWdVPM/X4XLWoFe8Fs6LnIXnvAu K5yn8GdNNh7a1MCnitV+vcb+TwjCZvjnhmwJ71BcM2rsdeUdH1kbvMxk9PJN1Bnsxh YV/nNpQITGDPg== From: Konrad Dybcio Date: Tue, 27 May 2025 13:26:42 +0200 Subject: [PATCH net-next v2 2/3] dt-bindings: net: qcom,ipa: Add sram property for describing IMEM slice Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250527-topic-ipa_imem-v2-2-6d1aad91b841@oss.qualcomm.com> References: <20250527-topic-ipa_imem-v2-0-6d1aad91b841@oss.qualcomm.com> In-Reply-To: <20250527-topic-ipa_imem-v2-0-6d1aad91b841@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alex Elder Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Konrad Dybcio , Alex Elder X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1748345210; l=1535; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=wy6W0XXSLjyCDHmSQRFlaw12jjvq142qLvrrsqdi92A=; b=ZwAmY8A5qtj3mRShkQvUPRymkAFN8pwoB9WyP7tRR8otCO5qtMTUiYqU4dbg11pbjH0pRpIVF vEG3yKqY1I2CLGebZwU5v9XnKzvfnRIBi1ry+VIL8n0K7FqfRN3ZlFk X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio The IPA driver currently grabs a slice of IMEM through hardcoded addresses. Not only is that ugly and against the principles of DT, but it also creates a situation where two distinct platforms implementing the same version of IPA would need to be hardcoded together and matched at runtime. Instead, do the sane thing and accept a handle to said region directly. Don't make it required on purpose, as a) it's not there on ancient implementations (currently unsupported) and we're not yet done with filling the data across al DTs. Reviewed-by: Alex Elder Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Document= ation/devicetree/bindings/net/qcom,ipa.yaml index b4a79912d4739bec33933cdd7bb5e720eb41c814..1109f4d170af7178b998c6b7d41= 5cc60de1c58c5 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml @@ -166,6 +166,13 @@ properties: initializing IPA hardware. Optional, and only used when Trust Zone performs early initialization. =20 + sram: + maxItems: 1 + description: + A reference to an additional region residing in IMEM (special + on-chip SRAM), which is accessed by the IPA firmware and needs + to be IOMMU-mapped from the OS. + required: - compatible - iommus --=20 2.49.0