Skip to contentSkip to conversation

Add SRAM Nodes for VPU

PATCH Applied Brandon Brnich 2 participants 6 messages Sep 21 – Sep 28

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover Add SRAM Nodes for VPU

Hello All,

This series is responsible for adding the SRAM nodes for the Wave5 VPU to use. First patch is responsible for carving out the SRAM pool from main_navss that the VPU on J721s2 will then reference.

The last 2 patches use the existing oc_sram pool already found in the relevant device trees.

Changes since v2:

- Removed j784s4 since there are two vpu instances, need to find another SRAM pool so both can get full benefit of B/W savings

Changes since v1:

- properly updates the nodename in the first two patches to pass dtbs_check.

Best,
Brandon

Brandon Brnich (4):
arm64: dts: ti: k3-j721s2-main: Add mmio-sram node to main_navss
arm64: dts: ti: k3-j721s2-main: Assign SRAM to VPU node
arm64: dts: ti: k3-am62a-main: Assign SRAM to VPU node
arm64: dts: ti: k3-am62p-j722s-common-main: Assign SRAM to VPU node

 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi              | 1 +
 arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi | 1 +
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi             | 9 +++++++++
 3 files changed, 11 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 1/4 arm64: dts: ti: k3-j721s2-main: Add mmio-sram node to main_navss

The NavigatorSS (NAVSS) address space contains a 64 KiB on-chip SRAM region at its base address. Add an mmio-sram node to expose this region to consumers via the generic SRAM allocator API.

---
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +8 -0
index 1228ac5711bf0..1fd173a68c0b2 100644
@@ -784,6 +784,14 @@ main_navss: bus@30000000 {
 		dma-coherent;
 		dma-ranges;
 
+		main_navss_sram: sram@30000000 {
+			compatible = "mmio-sram";
+			reg = <0x00 0x30000000 0x00 0x10000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x00 0x30000000 0x10000>;
+		};
+
 		main_navss_intr: interrupt-controller@310e0000 {
 			compatible = "ti,sci-intr";
 			reg = <0x00 0x310e0000 0x00 0x4000>;
Signature · 1 line
2.43.0
#2 lore raw

PATCH v3 2/4 arm64: dts: ti: k3-j721s2-main: Assign SRAM to VPU node

In reply to Brandon Brnich

The Wave5 VPU supports connecting to on-chip SRAM through its secondary AXI interface. This allows temporal buffers to be stored on a per-stream basis, reducing DDR memory traffic.

---
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +1 -0
index 1fd173a68c0b2..233aedcbf2ec3 100644
@@ -716,6 +716,7 @@ vpu: video-codec@4210000 {
 		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&k3_clks 179 2>;
 		power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
+		sram = <&main_navss_sram>;
 	};
 
 	main_sdhci0: mmc@4f80000 {
Signature · 1 line
2.43.0
#3 lore raw

PATCH v3 3/4 arm64: dts: ti: k3-am62a-main: Assign SRAM to VPU node

In reply to Brandon Brnich

The Wave5 VPU supports connecting to on-chip SRAM through its secondary AXI interface. This allows temporal buffers to be stored on a per-stream basis, reducing DDR memory traffic.

---
 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +1 -0
index 9e5b75a4e88e2..92dd1b96cef4d 100644
@@ -1149,6 +1149,7 @@ vpu: video-codec@30210000 {
 		reg = <0x00 0x30210000 0x00 0x10000>;
 		clocks = <&k3_clks 204 2>;
 		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
+		sram = <&oc_sram>;
 	};
 
 	c7x_0: dsp@7e000000 {
Signature · 1 line
2.43.0
#4 lore raw

PATCH v3 4/4 arm64: dts: ti: k3-am62p-j722s-common-main: Assign SRAM to VPU node

In reply to Brandon Brnich

The Wave5 VPU supports connecting to on-chip SRAM through its secondary AXI interface. This allows temporal buffers to be stored on a per-stream basis, reducing DDR memory traffic.

---
 arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +1 -0
index f130c7cb998d7..61e3588bbfdc5 100644
@@ -1117,6 +1117,7 @@ vpu: video-codec@30210000 {
 		interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&k3_clks 204 2>;
 		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
+		sram = <&oc_sram>;
 	};
 
 	hsm: remoteproc@43c00000 {
Signature · 1 line
2.43.0
maintainer Applied
#5 lore raw
In reply to Brandon Brnich

Hi Brandon Brnich,

Quoted 8 lines · Brandon Brnich

This series is responsible for adding the SRAM nodes for the Wave5 VPU to use. First patch is responsible for carving out the SRAM pool from main_navss that the VPU on J721s2 will then reference.

The last 2 patches use the existing oc_sram pool already found in the relevant device trees.

[...]

I have applied the following to branch ti-k3-dts-next on [1]. Thank you!

[1/4] arm64: dts: ti: k3-j721s2-main: Add mmio-sram node to main_navss

      commit: b4824bac766e1696a31c54c14541b65e33eb683f
[2/4] arm64: dts: ti: k3-j721s2-main: Assign SRAM to VPU node
      commit: 86ab93a198114653faf0fef11a88d4a240f5adf4
[3/4] arm64: dts: ti: k3-am62a-main: Assign SRAM to VPU node
      commit: 0bd8ecba297bd50fe5b154a96f6eaf0233b28dd3
[4/4] arm64: dts: ti: k3-am62p-j722s-common-main: Assign SRAM to VPU node
      commit: 330236fda4fd7a63e3bf9d9ce1b7ce227ddb8f1c

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git

Signature · 4 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource