Skip to contentSkip to conversation

net: ipa: fix SDX55 interconnects

PATCH Applied Alex Elder 2 participants 4 messages Dec 10, 2021 – Dec 13, 2021

Subsystems (5)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

v2 cover net: ipa: fix SDX55 interconnects

The SDX55 SoC has IPA v4.5. It currently represents the path between IPA and main memory using two consecutive interconnects. This was an optimization--not required for correct operation--and complicates things unnecessarily. It also does not conform to the IPA binding (as pointed out by David Heidelberg).

This series fixes this by combining the two interconnects into one.

Version 2 simply adds a few missed e-mail addressees; there is no change to the patch content.

-Alex
Alex Elder (2):
ARM: dts: qcom: sdx55: fix IPA interconnect definitions
net: ipa: fix IPA v4.5 interconnect data

 arch/arm/boot/dts/qcom-sdx55.dtsi | 6 ++----
 drivers/net/ipa/ipa_data-v4.5.c   | 7 +------
 2 files changed, 3 insertions(+), 10 deletions(-)
Signature · 1 line
2.32.0
author
#1 lore raw

PATCH v2 1/2 ARM: dts: qcom: sdx55: fix IPA interconnect definitions

The first two interconnects defined for IPA on the SDX55 SoC are really two parts of what should be represented as a single path between IPA and system memory.

Fix this by combining the "memory-a" and "memory-b" interconnects into a single "memory" interconnect.

---
 arch/arm/boot/dts/qcom-sdx55.dtsi | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/qcom-sdx55.dtsi +2 -4
index 44526ad9d210b..eee2f63b9bbab 100644
@@ -333,12 +333,10 @@ ipa: ipa@1e40000 {
 			clocks = <&rpmhcc RPMH_IPA_CLK>;
 			clock-names = "core";
 
-			interconnects = <&system_noc MASTER_IPA &system_noc SLAVE_SNOC_MEM_NOC_GC>,
-					<&mem_noc MASTER_SNOC_GC_MEM_NOC &mc_virt SLAVE_EBI_CH0>,
+			interconnects = <&system_noc MASTER_IPA &mc_virt SLAVE_EBI_CH0>,
 					<&system_noc MASTER_IPA &system_noc SLAVE_OCIMEM>,
 					<&mem_noc MASTER_AMPSS_M0 &system_noc SLAVE_IPA_CFG>;
-			interconnect-names = "memory-a",
-					     "memory-b",
+			interconnect-names = "memory",
 					     "imem",
 					     "config";
 
Signature · 1 line
2.32.0
author
#2 lore raw

PATCH v2 2/2 net: ipa: fix IPA v4.5 interconnect data

In reply to Alex Elder

Update the definition of the IPA interconnects for IPA v4.5 so the path between IPA and system memory is represented by a single "memory" interconnect.

---
 drivers/net/ipa/ipa_data-v4.5.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/ipa/ipa_data-v4.5.c +1 -6
index e62ab9c3ac672..2da2c4194f2e6 100644
@@ -420,15 +420,10 @@ static const struct ipa_mem_data ipa_mem_data = {
 /* Interconnect rates are in 1000 byte/second units */
 static const struct ipa_interconnect_data ipa_interconnect_data[] = {
 	{
-		.name			= "memory-a",
+		.name			= "memory",
 		.peak_bandwidth		= 600000,	/* 600 MBps */
 		.average_bandwidth	= 150000,	/* 150 MBps */
 	},
-	{
-		.name			= "memory-b",
-		.peak_bandwidth		= 1804000,	/* 1.804 GBps */
-		.average_bandwidth	= 150000,	/* 150 MBps */
-	},
 	/* Average rate is unused for the next two interconnects */
 	{
 		.name			= "imem",
Signature · 1 line
2.32.0
#3 lore raw
In reply to Alex Elder
This series was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 9 lines · On Fri, 10 Dec 2021 16:31:21 -0600 you wrote:

The SDX55 SoC has IPA v4.5. It currently represents the path between IPA and main memory using two consecutive interconnects. This was an optimization--not required for correct operation--and complicates things unnecessarily. It also does not conform to the IPA binding (as pointed out by David Heidelberg).

This series fixes this by combining the two interconnects into one.

[...]

Here is the summary with links:
- [net-next,v2,1/2] ARM: dts: qcom: sdx55: fix IPA interconnect definitions

    https://git.kernel.org/netdev/net-next/c/c0d6316c238b
  - [net-next,v2,2/2] net: ipa: fix IPA v4.5 interconnect data
    https://git.kernel.org/netdev/net-next/c/97884b07122a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html