Skip to contentSkip to conversation

Revert "linux/cmem: patch keystone dtsi files to co-exist with new sram driver"

PATCH New Sam Nelson 1 participant 3 messages Dec 3, 2016

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/3 Revert "linux/cmem: patch keystone dtsi files to co-exist with new sram driver"

This reverts commit b9dbc83d7663d5517fd9cbcf4bb651e039f134a4.

---
 recipes-kernel/linux/cmem.inc                      |  3 -
 ...stone-Remove-reg-entry-from-the-sram-node.patch | 79 ----------------------
 2 files changed, 82 deletions(-)
 delete mode 100644 recipes-kernel/linux/files/0001-ARM-dts-keystone-Remove-reg-entry-from-the-sram-node.patch
recipes-kernel/linux/cmem.inc +0 -3
index 649b59d..d4edc60 100644
@@ -24,9 +24,6 @@ CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb
 # Flag to enable CMEM injection
 RESERVE_CMEM ?= "0"
 
-# Need to patch main keystone dtsi files sram entry
-SRC_URI_append_keystone = "${@base_conditional("RESERVE_CMEM", "1", " file://0001-ARM-dts-keystone-Remove-reg-entry-from-the-sram-node.patch", "", d)}"
-
 # Add correct cmem.dtsi to SRC_URI for each variant for a given machine
 python() {
     old_overrides = d.getVar('OVERRIDES', False)
recipes-kernel/linux/files/0001-ARM-dts-keystone-Remove-reg-entry-from-the-sram-node.patch deleted +0 -79

79 lines not on this page · raw message

Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/3 cmem: Update to new version 4.13.0.0_eng

---
 recipes-bsp/cmem/cmem-mod_git.bb | 2 +-
 recipes-bsp/cmem/cmem.inc        | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
recipes-bsp/cmem/cmem-mod_git.bb +1 -1
index bf6a477..1031e85 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Kernel module for contiguous memory allocation from userspace"
 include cmem.inc
 
 # This package builds a kernel module, use kernel PR as base and append a local
-MACHINE_KERNEL_PR_append = "c"
+MACHINE_KERNEL_PR_append = "a"
 PR = "${MACHINE_KERNEL_PR}"
 
 inherit module
recipes-bsp/cmem/cmem.inc +3 -3
index e68bb6b..0d05bb3 100644
@@ -3,11 +3,11 @@ HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=9b745e2765a6ba8a636c91aed4b02ac1"
 
-BRANCH = "master"
-# This corresponds to version 4.12.00.00
+BRANCH = "lu-next"
+# This corresponds to version 4.13.00.00_eng
 SRCREV = "d6d3e84c84d0e84a9b96c3f6f789ac642d03afcb"
 
-PV = "4.12.00.00+git${SRCPV}"
+PV = "4.13.00.00+git${SRCPV}"
 
 SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
 
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 3/3 recipes-kernel: cmem.dtsi: Update memory sections for DDR and MSMC

In reply to Sam Nelson

cmem.dtsi splits the already defined dsp_common_mpm_area DDR memory into a smaller MPM segment and other CMEM blocks.
The mpm_block_mem is removed and instead the original memory sections dsp_common_mpm_area and mpm_mem in the kernel dtb are updated to reflect

On the MSMC memory, cmem.dtsi defines a sram subnode instead of the reserved memory.
mpm MSMC areas are already captured in the kernel dtb.

---
 recipes-kernel/linux/files/k2e/cmem.dtsi      | 27 ++++----
 recipes-kernel/linux/files/k2g/cmem.dtsi      | 91 ++++++++++++++-------------
 recipes-kernel/linux/files/k2hk-evm/cmem.dtsi | 91 ++++++++++++++-------------
 recipes-kernel/linux/files/k2l-evm/cmem.dtsi  | 20 ++++--
 4 files changed, 120 insertions(+), 109 deletions(-)
recipes-kernel/linux/files/k2e/cmem.dtsi +14 -13
index 4c8e785..2a2909a 100644
@@ -1,22 +1,10 @@
 / {
 	reserved-memory {
-		mpm_block_mem_0: mpm_block_mem@820000000 {
-			reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
-			no-map;
-			status = "okay";
-		};
-
 		cmem_block_mem_0: cmem_block_mem@829000000 {
 			reg = <0x00000008 0x22000000 0x00000000 0x1E000000>;
 			no-map;
 			status = "okay";
 		};
-
-		cmem_block_mem_1: cmem_block_mem@00c080000 {
-			reg = <0x00000000 0x0c080000 0x00000000 0x000c0000>;
-			no-map;
-			status = "okay";
-		};
 	};
 
 	cmem {
@@ -36,7 +24,20 @@
 
 		cmem_block_1: cmem_block@1 {
 			reg = <1>;
-			memory-region = <&cmem_block_mem_1>;
+			sram = <&sram_cmem>;
 		};
 	};
 };
+
+&dsp_common_mpm_area {
+	reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
+};
+&mpm_mem {
+	reg = <0xa0000000 0x02000000>;
+};
+
+&msm_ram {
+	sram_cmem: sram-cmem@80000 {
+		reg = <0x80000 0xc0000>;
+	};
+};
recipes-kernel/linux/files/k2g/cmem.dtsi +46 -45

100 lines not on this page · raw message

recipes-kernel/linux/files/k2hk-evm/cmem.dtsi +46 -45

100 lines not on this page · raw message

recipes-kernel/linux/files/k2l-evm/cmem.dtsi +14 -6
index 4c8e785..8b09642 100644
@@ -1,10 +1,5 @@
 / {
 	reserved-memory {
-		mpm_block_mem_0: mpm_block_mem@820000000 {
-			reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
-			no-map;
-			status = "okay";
-		};
 
 		cmem_block_mem_0: cmem_block_mem@829000000 {
 			reg = <0x00000008 0x22000000 0x00000000 0x1E000000>;
@@ -36,7 +31,20 @@
 
 		cmem_block_1: cmem_block@1 {
 			reg = <1>;
-			memory-region = <&cmem_block_mem_1>;
+			sram = <&sram_cmem>;
 		};
 	};
 };
+
+&dsp_common_mpm_area {
+	reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
+};
+&mpm_mem {
+	reg = <0xa0000000 0x02000000>;
+};
+
+&msm_ram {
+	sram_cmem: sram-cmem@80000 {
+		reg = <0x80000 0xc0000>;
+	};
+};
Signature · 1 line
1.9.1