Skip to contentSkip to conversation

cmem: Add CMEM 384MB block to dra76xx to enable opencl and tidl

PATCH In review Djordje Senicic 2 participants 4 messages Jun 19, 2019 – Jun 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cmem: Add CMEM 384MB block to dra76xx to enable opencl and tidl

---
 recipes-kernel/linux/cmem.inc                 |  6 ++--
 .../linux/files/dra7xx/cmem-dra76x.dtsi       | 29 +++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi
recipes-kernel/linux/cmem.inc +4 -2
index 5fd0b9d9..8bd643f4 100644
@@ -4,8 +4,8 @@
 CMEM_MACHINE = "${MACHINE}"
 CMEM_MACHINE_am57xx-evm = "am571x am572x am574x"
 CMEM_MACHINE_am57xx-hs-evm = "am571x am572x am574x"
-CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x"
-CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x"
+CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x dra76x"
+CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x dra76x"
 
 # Set cmem.dtsi per machine or machine variant
 CMEM_DTSI = "cmem.dtsi"
@@ -13,6 +13,7 @@ CMEM_DTSI_am571x = "cmem-am571x.dtsi"
 CMEM_DTSI_am574x = "cmem-am574x.dtsi"
 CMEM_DTSI_dra71x = "cmem-dra71x.dtsi"
 CMEM_DTSI_dra72x = "cmem-dra72x.dtsi"
+CMEM_DTSI_dra76x = "cmem-dra76x.dtsi"
 
 # Split device trees between variants
 CMEM_DEVICETREE = "${KERNEL_DEVICETREE}"
@@ -24,6 +25,7 @@ CMEM_DEVICETREE_dra71x = "dra71-evm.dtb"
 CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \
                           dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb"
 CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb"
+CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb"
 
 # Flag to enable CMEM injection
 RESERVE_CMEM ?= "0"
recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi new file +29 -0
new file mode 100644
index 00000000..9d207db5
@@ -0,0 +1,29 @@
+/ {
+        reserved-memory {
+                #address-cells = <2>;
+                #size-cells = <2>;
+                ranges;
+
+                cmem_block_mem_0: cmem_block_mem@a0000000 {
+                        reg = <0x0 0xa0000000 0x0 0x18000000>;
+                        no-map;
+                        status = "okay";
+                };
+        };
+
+        cmem {
+                compatible = "ti,cmem";
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+		#pool-size-cells = <2>;
+
+                status = "okay";
+
+                cmem_block_0: cmem_block@0 {
+                        reg = <0>;
+                        memory-region = <&cmem_block_mem_0>;
+                        cmem-buf-pools = <1 0x0 0x18000000>;
+                };
+        };
+};
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 pm-lld-rtos: Enable building opencl-monitor for dra76xx

---
 recipes-bsp/pm-lld/pm-lld-rtos_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-bsp/pm-lld/pm-lld-rtos_git.bb +4 -0
index 33ed5ffe..a8b870f0 100644
@@ -63,4 +63,8 @@ do_compile_append() {
     tar -cf pm_lld.tar --exclude='*.tar' ./*
 }
 
+
+# Workaround: dra7xx build requires am57xx pm libraries for opencl-monitor
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x am574x"
+
 INSANE_SKIP_${PN} = "arch staticdev"
Signature · 1 line
2.17.1
#2 lore raw

Re: [EXTERNAL] [thud/master][PATCH 2/2] pm-lld-rtos: Enable building opencl-monitor for dra76xx

Denys,

Can you please back-port this to ti2019.01?

Thank you,

Jake

Quoted 18 lines · Djordje Senicic
---
  recipes-bsp/pm-lld/pm-lld-rtos_git.bb | 4 ++++
  1 file changed, 4 insertions(+)
recipes-bsp/pm-lld/pm-lld-rtos_git.bb +4 -0
index 33ed5ffe..a8b870f0 100644
@@ -63,4 +63,8 @@ do_compile_append() {
      tar -cf pm_lld.tar --exclude='*.tar' ./*
  }
 
+
+# Workaround: dra7xx build requires am57xx pm libraries for opencl-monitor
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x am574x"
+
  INSANE_SKIP_${PN} = "arch staticdev"
#3 lore raw
In reply to Djordje Senicic

Denys,

Can you please back-port this to ti2019.01?

Thank you,

Jake

Quoted 73 lines · Djordje Senicic
---
  recipes-kernel/linux/cmem.inc                 |  6 ++--
  .../linux/files/dra7xx/cmem-dra76x.dtsi       | 29 +++++++++++++++++++
  2 files changed, 33 insertions(+), 2 deletions(-)

create mode 100644 recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi

recipes-kernel/linux/cmem.inc +4 -2
index 5fd0b9d9..8bd643f4 100644
@@ -4,8 +4,8 @@
  CMEM_MACHINE = "${MACHINE}"
  CMEM_MACHINE_am57xx-evm = "am571x am572x am574x"
  CMEM_MACHINE_am57xx-hs-evm = "am571x am572x am574x"
-CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x"
-CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x"
+CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x dra76x"
+CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x dra76x"
 
  # Set cmem.dtsi per machine or machine variant
  CMEM_DTSI = "cmem.dtsi"
@@ -13,6 +13,7 @@ CMEM_DTSI_am571x = "cmem-am571x.dtsi"
  CMEM_DTSI_am574x = "cmem-am574x.dtsi"
  CMEM_DTSI_dra71x = "cmem-dra71x.dtsi"
  CMEM_DTSI_dra72x = "cmem-dra72x.dtsi"
+CMEM_DTSI_dra76x = "cmem-dra76x.dtsi"
 
  # Split device trees between variants
  CMEM_DEVICETREE = "${KERNEL_DEVICETREE}"
@@ -24,6 +25,7 @@ CMEM_DEVICETREE_dra71x = "dra71-evm.dtb"
  CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \
                            dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb"
  CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb"
+CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb"
 
  # Flag to enable CMEM injection
  RESERVE_CMEM ?= "0"
recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi new file +29 -0
new file mode 100644
index 00000000..9d207db5
@@ -0,0 +1,29 @@
+/ {
+        reserved-memory {
+                #address-cells = <2>;
+                #size-cells = <2>;
+                ranges;
+
+                cmem_block_mem_0: cmem_block_mem@a0000000 {
+                        reg = <0x0 0xa0000000 0x0 0x18000000>;
+                        no-map;
+                        status = "okay";
+                };
+        };
+
+        cmem {
+                compatible = "ti,cmem";
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+		#pool-size-cells = <2>;
+
+                status = "okay";
+
+                cmem_block_0: cmem_block@0 {
+                        reg = <0>;
+                        memory-region = <&cmem_block_mem_0>;
+                        cmem-buf-pools = <1 0x0 0x18000000>;
+                };
+        };
+};