From nobody Fri Apr 3 11:12:45 2026 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 0BC82207A38; Thu, 19 Feb 2026 13:50:27 +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=1771509027; cv=none; b=Brwsgdfv3h8ROlnOqH7LAdxks2OCimTQ6kL6We7hWvS6sW7YW6Tjwr/vKGqL2AElassiQznZi6AIf+T4cpwUSeiIZfuTB4vEBheUl/0oafTQx9OpmhUYo/heGecSKpvINySxDS3o3fxXPEiQJMAZocxAYEPt+9mLnR0hVFuXp9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771509027; c=relaxed/simple; bh=9XAB1WkKG/tI/e5hODd4LVsH6dlMu4Pako5uxzY7r4U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gW6bWqU1MFjhynYwihmcsAYmz5amc36rszBGq6s6gko4j7k43GLB11EXv8zopN51ckrwWk68Bk49PrDGjktjIyUS69Wx74Hv5crmUgL7pyQ/6OxT7YgXpXK4KNRl7+HpxeRlTI6mBfJSMv8JQXLP83LlwTT8FZQ+m10tA8Rtrnk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WGjBa8Ym; 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="WGjBa8Ym" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8206CC116C6; Thu, 19 Feb 2026 13:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771509026; bh=9XAB1WkKG/tI/e5hODd4LVsH6dlMu4Pako5uxzY7r4U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=WGjBa8Ym8qaifVZTCVB4ipQG6VYshVgrPAg6P0SxWFtsQ4FloFd5aNBVkldTkuqT5 J27IcBn/iiNjJEXafEQdlnCQfFMmrr5EvOCEbBaHBL9pg81zqIp9R8Qc2I1SHqycaG EP7jXnAhYcbiz8UDnUIlcg60Nx8Z+dmDVUmT0WBjSQNY5mkmkn+96HSi0Yt7X3lfba AwvS79HnRxAbMrtc7TUG8SPWGkaP79pIVXe04mtXK4PiuNSY5Z9GXbtik73qWU2DNW V+4kaKEAqzI3JOkyNt5aJtrNz1M4qesiP+iS1TKYSKPqQUpOryubuT65zMekWaGaNL xPOrv5PwbfsdA== From: Konrad Dybcio Date: Thu, 19 Feb 2026 14:49:48 +0100 Subject: [PATCH net-next v4 1/3] dt-bindings: sram: qcom,imem: Allow modem-tables subnode 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: <20260219-topic-ipa_imem-v4-1-189d91dbee84@oss.qualcomm.com> References: <20260219-topic-ipa_imem-v4-0-189d91dbee84@oss.qualcomm.com> In-Reply-To: <20260219-topic-ipa_imem-v4-0-189d91dbee84@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 , Krzysztof Kozlowski , Alex Elder X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771509014; l=1479; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=EkZkFoDGwWgx618F15NSBVvffYCMvU4Fbz6lmWps3uA=; b=1Ond31A9jnhBLKGItxrg0VnS5s41WId3NgCJ93uN96R4nX38qubAlziO+HrM3RMkV+oFOlYrU zemUJEvi+MwDaRgQj4Imnhw2Qn4/eB74pTIpqbfzPtchJlZoDYsPAf6 X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio The IP Accelerator hardware/firmware owns a sizeable region within the IMEM, named 'modem-tables', containing various packet processing configuration data. It's not actually accessed by the OS, although we have to IOMMU-map it with the IPA device, so that presumably the firmware can act upon it. Allow it as a subnode of IMEM. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Alex Elder Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Docume= ntation/devicetree/bindings/sram/qcom,imem.yaml index 6a627c57ae2f..c63026904061 100644 --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml @@ -67,6 +67,20 @@ properties: $ref: /schemas/power/reset/syscon-reboot-mode.yaml# =20 patternProperties: + "^modem-tables@[0-9a-f]+$": + type: object + description: + Region containing packet processing configuration for the IP Acceler= ator. + + properties: + reg: + maxItems: 1 + + required: + - reg + + additionalProperties: false + "^pil-reloc@[0-9a-f]+$": $ref: /schemas/remoteproc/qcom,pil-info.yaml# description: Peripheral image loader relocation region --=20 2.53.0 From nobody Fri Apr 3 11:12:45 2026 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 3C74F207A38; Thu, 19 Feb 2026 13:50:32 +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=1771509032; cv=none; b=ifemhMYTg7ARo9UV3o6TjwmpgBqca7fn1cScLsNzXAaXwkokF53CYX9xlfJqkn919erMKis07rTeSTiBkBk5xKDTLZlf2c6tmbIxeugIcs6k2+NnCq1WffTmSiPxwheXNpIHoVIWSHb6W//meD+uYPRjaQA8tWD0pzMzLAkbVGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771509032; c=relaxed/simple; bh=2dYSFWHyj4X3N9lIZ8cPMHQHezOGMsV6I5UBAIu+Dd8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Qc11z7XMjtgcSZpezhXYf5QTMGd2qd83Yfb/fbQa4VaV9Ht85SAou7wknakSKMqPjFrUG2t9jdCSg+KHwcKunVOyTECwcAD8xzGZ9CPzEd2PcqZ/3/jCYisxXd7BTBr5BQHuXXHJgkrxdki0wx2pY+o7YbTScY+0qyxoM0QPleM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ff9EKVUG; 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="ff9EKVUG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 742D5C4AF0B; Thu, 19 Feb 2026 13:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771509032; bh=2dYSFWHyj4X3N9lIZ8cPMHQHezOGMsV6I5UBAIu+Dd8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ff9EKVUGJ412kQbYNMxBwMHvQSSrNEB0j+bMZhmaDjZYmOi+TjDu3dq7pn9jBPBWK iyvPGTzznaycGH7T+HEKUiM8q30pabovuZqbQ5J7qaqQQR4xEf6z+EnwkHhqBKKSP6 X+alVISZ6HBm16T5Uxq9nzJsjpaRY66mDu2Lsw3roZSxtqfG+U+kgxOnzfRRyKsSal yo0GCulrQJeuTs5MsuuPSR+edGGVjWLpkkpuxnVBg9+BUIRuDnitNRwdDpS9QKzvC4 p98qkcN8EVqq6x48IC1C/spWvEBeFcUQcNVD44QsP96UfyCly48vakk6qchquQnYUC tSt13FweG1v5g== From: Konrad Dybcio Date: Thu, 19 Feb 2026 14:49:49 +0100 Subject: [PATCH net-next v4 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: <20260219-topic-ipa_imem-v4-2-189d91dbee84@oss.qualcomm.com> References: <20260219-topic-ipa_imem-v4-0-189d91dbee84@oss.qualcomm.com> In-Reply-To: <20260219-topic-ipa_imem-v4-0-189d91dbee84@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 , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771509014; l=1543; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=FtJRSrboOafEtcZXaNS6FW/2KBBL5SVhQOA5zYIeMBE=; b=SeF4Ead3naO7drthQ0YG0Dickjyktb6zI+uSraXuHCiJBTFU1AMxuRCXKhMY3TR0p04Iswl9k Y7vaiEkOTjwBCdiQvxqbUhfHJAyfp4r+XXgRgSflXGQKkyDaj1iBB87 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 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- 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 c7f5f2ef7452..4237e74041ef 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml @@ -165,6 +165,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.53.0 From nobody Fri Apr 3 11:12:45 2026 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 9A93A25B31D; Thu, 19 Feb 2026 13:50:37 +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=1771509037; cv=none; b=sCvrs+norLDZ+oP/QC5OyBe9Ftqw372BYLfLVO9kkDgVTzkTXV0PGp8u6roC9umaBqEzgJr57QCrCfQmvVIj0HGA5uSOPN4GI/J0jn2ha1mTDPoPwzGMVRa3ARy3LoNyf4+KNJfQ1h5KVeUavPKhe8EomragQVd6BA77eUReDNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771509037; c=relaxed/simple; bh=C5oY30UkFQ3O3eG6iTmmPWTIKiizU7kru4zFrzFk5sk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VnwQcnH3w+clIqtCkkbZ0z1KygqW0PSO7K7ACb6LuV/Bk1tbBkNvt2w+6gNycSCs31eiHWCCZe0QWmCqPGkg6tuPqmpWgcEPKzBbwrOMbLvbnKuBRsbAcyzM1Vso6w/7A+otsJAG7b/CoS2QDAlB7RZxcJh1eaQMIHMgePe8GN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sSKo7NWS; 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="sSKo7NWS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96FC4C4CEF7; Thu, 19 Feb 2026 13:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771509037; bh=C5oY30UkFQ3O3eG6iTmmPWTIKiizU7kru4zFrzFk5sk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=sSKo7NWSryM8IANgajCZ97j06+BsuQ2Zup1JXszIz9XNT6BzJaav6nFdGvH3O0Fcx YRHf4xja5v3AV7oZezAzyImobkiC+ppIwuNeN+fKAVeptfvzuxhMYgohmzJKmBMI4H Z5Jt+cHUc6PDqvcufifBxCOY54fkQroGY4PICekjUOaG5jF7McSzgREPLA/cCCum+3 SuH6ifqgds8sYrFFHR52xLYaPMFPtA4azrMtDef5jweBGVk/xvqlqWBFPyqwAK6yrB rdXCmLUIgh0HU77BZmIvDotuNLVHtOb16d2AVDz4b6SD3z8yXZjTCZGOotQ8xfURef FUKrg/DtwNSEg== From: Konrad Dybcio Date: Thu, 19 Feb 2026 14:49:50 +0100 Subject: [PATCH net-next v4 3/3] net: ipa: Grab IMEM slice base/size from DTS 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: <20260219-topic-ipa_imem-v4-3-189d91dbee84@oss.qualcomm.com> References: <20260219-topic-ipa_imem-v4-0-189d91dbee84@oss.qualcomm.com> In-Reply-To: <20260219-topic-ipa_imem-v4-0-189d91dbee84@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 , Dmitry Baryshkov , Simon Horman X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771509014; l=2728; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=RQ2LdCvjFfiS0OMnOv+dT6EBkJVtY3P4ubESo3oaBx0=; b=JQkD4XzdBvCi8zCrqx51J7TP2egaspc10g1YRC5JtB1vvrMpsTode1VKUVKjX0ngZWjSbpKVA Rp9vdqBXbghCmxNvdPtdi5SjwtJ/Sj2VjofF/5Z8DirkXUBgguG9EBP X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio This is a detail that differ per chip, and not per IPA version (and there are cases of the same IPA versions being implemented across very very very different SoCs). This region isn't actually used by the driver, but we most definitely want to iommu-map it, so that IPA can poke at the data within. Reviewed-by: Alex Elder Acked-by: Dmitry Baryshkov Reviewed-by: Simon Horman Signed-off-by: Konrad Dybcio --- drivers/net/ipa/ipa_data.h | 9 +++++++-- drivers/net/ipa/ipa_mem.c | 22 +++++++++++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/net/ipa/ipa_data.h b/drivers/net/ipa/ipa_data.h index 2fd03f0799b2..f3bdc64cef05 100644 --- a/drivers/net/ipa/ipa_data.h +++ b/drivers/net/ipa/ipa_data.h @@ -185,8 +185,13 @@ struct ipa_resource_data { struct ipa_mem_data { u32 local_count; const struct ipa_mem *local; - u32 imem_addr; - u32 imem_size; + + /* These values are now passed via DT, but to support + * older systems we must allow this to be specified here. + */ + u32 imem_addr; /* DEPRECATED */ + u32 imem_size; /* DEPRECATED */ + u32 smem_size; }; =20 diff --git a/drivers/net/ipa/ipa_mem.c b/drivers/net/ipa/ipa_mem.c index 835a3c9c1fd4..5d3f68bd02d9 100644 --- a/drivers/net/ipa/ipa_mem.c +++ b/drivers/net/ipa/ipa_mem.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include =20 @@ -617,7 +618,9 @@ static void ipa_smem_exit(struct ipa *ipa) int ipa_mem_init(struct ipa *ipa, struct platform_device *pdev, const struct ipa_mem_data *mem_data) { + struct device_node *ipa_slice_np; struct device *dev =3D &pdev->dev; + u32 imem_base, imem_size; struct resource *res; int ret; =20 @@ -656,7 +659,24 @@ int ipa_mem_init(struct ipa *ipa, struct platform_devi= ce *pdev, ipa->mem_addr =3D res->start; ipa->mem_size =3D resource_size(res); =20 - ret =3D ipa_imem_init(ipa, mem_data->imem_addr, mem_data->imem_size); + ipa_slice_np =3D of_parse_phandle(dev->of_node, "sram", 0); + if (ipa_slice_np) { + ret =3D of_address_to_resource(ipa_slice_np, 0, res); + of_node_put(ipa_slice_np); + if (ret) + goto err_unmap; + + imem_base =3D res->start; + imem_size =3D resource_size(res); + } else { + /* Backwards compatibility for DTs lacking + * an explicit reference + */ + imem_base =3D mem_data->imem_addr; + imem_size =3D mem_data->imem_size; + } + + ret =3D ipa_imem_init(ipa, imem_base, imem_size); if (ret) goto err_unmap; =20 --=20 2.53.0