Skip to contentSkip to conversation

net: ipa: correct IPA v4.7 IMEM offset

PATCH Superseded Alex Elder 3 participants 4 messages Jan 4, 2023 – Jan 6, 2023

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Alex Elder

author
#0 lore raw

PATCH 1/1 net: ipa: correct IPA v4.7 IMEM offset

Commit b310de784bacd ("net: ipa: add IPA v4.7 support") was merged despite an unresolved comment made by Konrad Dybcio. Konrad observed that the IMEM region specified for IPA v4.7 did not match that used downstream for the SM7225 SoC. In "lagoon.dtsi" present in a Sony Xperia source tree, a ipa_smmu_ap node was defined with a "qcom,additional-mapping" property that defined the IPA IMEM area starting at offset 0x146a8000 (not 0x146a9000 that was committed).

The IPA v4.7 target system used for testing uses the SM7225 SoC, so we'll adhere what the downstream code specifies is the address of the IMEM region used for IPA.

---
Note: This fixes a commit that first landed in v6.2-rc1.

 drivers/net/ipa/data/ipa_data-v4.7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ipa/data/ipa_data-v4.7.c +1 -1
index 7552c400961eb..b83390c486158 100644
@@ -357,7 +357,7 @@ static const struct ipa_mem ipa_mem_local_data[] = {
 static const struct ipa_mem_data ipa_mem_data = {
 	.local_count	= ARRAY_SIZE(ipa_mem_local_data),
 	.local		= ipa_mem_local_data,
-	.imem_addr	= 0x146a9000,
+	.imem_addr	= 0x146a8000,
 	.imem_size	= 0x00002000,
 	.smem_id	= 497,
 	.smem_size	= 0x00009000,
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Alex Elder

Commit b310de784bacd ("net: ipa: add IPA v4.7 support") was merged despite an unresolved comment made by Konrad Dybcio. Konrad observed that the IMEM region specified for IPA v4.7 did not match that used downstream for the SM7225 SoC. In "lagoon.dtsi" present in a Sony Xperia source tree, a ipa_smmu_ap node was defined with a "qcom,additional-mapping" property that defined the IPA IMEM area starting at offset 0x146a8000 (not 0x146a9000 that was committed).

Quoted 8 lines

The IPA v4.7 target system used for testing uses the SM7225 SoC, so we'll adhere what the downstream code specifies is the address of the IMEM region used for IPA.

---

Konrad

Quoted 18 lines

Note: This fixes a commit that first landed in v6.2-rc1.

 drivers/net/ipa/data/ipa_data-v4.7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ipa/data/ipa_data-v4.7.c +1 -1
index 7552c400961eb..b83390c486158 100644
@@ -357,7 +357,7 @@ static const struct ipa_mem ipa_mem_local_data[] = {
 static const struct ipa_mem_data ipa_mem_data = {
 	.local_count	= ARRAY_SIZE(ipa_mem_local_data),
 	.local		= ipa_mem_local_data,
-	.imem_addr	= 0x146a9000,
+	.imem_addr	= 0x146a8000,
 	.imem_size	= 0x00002000,
 	.smem_id	= 497,
 	.smem_size	= 0x00009000,
maintainer
#2 lore raw
In reply to Alex Elder
Quoted 1 line · On Wed, 4 Jan 2023 12:10:17 -0600 Alex Elder wrote:

Note: This fixes a commit that first landed in v6.2-rc1.

Why is it tagged for net-next then? 🤔️
Let's treat it as a normal fix with a Fixes tag and for net. I reckon the commit message makes is sufficiently clear that I'm to blame :)

author
#3 lore raw
Quoted 7 lines · Jakub Kicinski
Quoted 1 line · On Wed, 4 Jan 2023 12:10:17 -0600 Alex Elder wrote:

Note: This fixes a commit that first landed in v6.2-rc1.

Why is it tagged for net-next then? 🤔️
Let's treat it as a normal fix with a Fixes tag and for net. I reckon the commit message makes is sufficiently clear that I'm to blame :)

Sorry about that, I was confused, thinking it is only needed in 6.2-rc--the current release cycle. But that's not the way it works. I guess I wasn't fully recovered from the holiday break.

I'll re-send and base it on net/master. Thanks.

-Alex