Re: [meta-ti] [RFC 0/2] Proposal for enabling CMEM

2015-04-23 Thread Denys Dmytriyenko
On Thu, Apr 23, 2015 at 07:42:09AM -0400, Jacob Stiffler wrote:
 This is a proposal for adding a CMEM region in the device tree.
 
 I wanted to get comments on the following:
 
 * implementation of using an inc file to enable this.
 * Whether the actual configuration belongs in the kernel recipe, or if
   this is something that should be handled at the distro or branding
   level. (RFC sets the configuration in kernel recipe).
 - I have verified that this configuration may also be set in the
branding file using, for example,
 
  CMEM_BASE_pn-linux-ti-staging_omap-a15 = a000
  CMEM_SIZE_pn-linux-ti-staging_omap-a15 = 2000

Hmm, on one hand I don't like this change being so invasive. But on the other 
hand, I'm not sure there's a better cleaner way to do a dts injection like 
that. Let me think about it...


 Jacob Stiffler (2):
   linux/cmem.inc: Support reserving memory for CMEM.
   linux-ti-staging_3.14: Add CMEM region for omap-a15.
 
  recipes-kernel/linux/cmem.inc |   22 ++
  recipes-kernel/linux/linux-ti-staging_3.14.bb |6 +-
  recipes-kernel/linux/linux/cmem.dtsi  |   24 
  3 files changed, 51 insertions(+), 1 deletion(-)
  create mode 100644 recipes-kernel/linux/cmem.inc
  create mode 100644 recipes-kernel/linux/linux/cmem.dtsi
 
 -- 
 1.7.9.5
 
 -- 
 ___
 meta-ti mailing list
 meta-ti@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/meta-ti
-- 
___
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


[meta-ti] [RFC 1/2] linux/cmem.inc: Support reserving memory for CMEM.

2015-04-23 Thread Jacob Stiffler
To reserve contiguous memory for CMEM:
* include the recipes-kernel/linux/cmem.inc
* Set CMEM_BASE and CMEM_SIZE to the physical memory address and size,
  respectively, to reserve for CMEM.

Currently limited to reserving a single memory region used to create
a single buffer pool of a single buffer.

Signed-off-by: Jacob Stiffler j-stiff...@ti.com
---
 recipes-kernel/linux/cmem.inc|   22 ++
 recipes-kernel/linux/linux/cmem.dtsi |   24 
 2 files changed, 46 insertions(+)
 create mode 100644 recipes-kernel/linux/cmem.inc
 create mode 100644 recipes-kernel/linux/linux/cmem.dtsi

diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc
new file mode 100644
index 000..c23445a
--- /dev/null
+++ b/recipes-kernel/linux/cmem.inc
@@ -0,0 +1,22 @@
+FILESEXTRAPATHS_append = :${THISDIR}/linux
+
+SRC_URI += file://cmem.dtsi
+
+CMEM_BASE ?= 
+CMEM_SIZE ?= 
+
+do_compileconfigs_prepend() {
+if [ ! -z ${CMEM_BASE} ]
+then
+cp ${WORKDIR}/cmem.dtsi ${S}/arch/arm/boot/dts/${MACHINE}-cmem.dtsi
+
+sed -i -e s|__CMEM_BASE__|${CMEM_BASE}|g \
+   -e s|__CMEM_SIZE__|${CMEM_SIZE}|g \
+   ${S}/arch/arm/boot/dts/${MACHINE}-cmem.dtsi
+
+for dts in ${KERNEL_DEVICETREE}
+do
+echo #include \${MACHINE}-cmem.dtsi\  
${S}/arch/arm/boot/dts/${dts%.dtb}.dts
+done
+fi
+}
diff --git a/recipes-kernel/linux/linux/cmem.dtsi 
b/recipes-kernel/linux/linux/cmem.dtsi
new file mode 100644
index 000..6b1da99
--- /dev/null
+++ b/recipes-kernel/linux/linux/cmem.dtsi
@@ -0,0 +1,24 @@
+/ {
+reserved-memory {
+cmem_block_mem_0: cmem_block_mem@__CMEM_BASE__ {
+reg = 0x__CMEM_BASE__ 0x__CMEM_SIZE__;
+no-map;
+status = okay;
+};
+};
+
+cmem {
+compatible = ti,cmem;
+#address-cells = 1;
+#size-cells = 0;
+
+status = okay;
+
+cmem_block_0: cmem_block@0 {
+reg = 0;
+memory-region = cmem_block_mem_0;
+cmem-buf-pools = 1 0x__CMEM_SIZE__;
+};
+};
+
+};
-- 
1.7.9.5

-- 
___
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


[meta-ti] [RFC 2/2] linux-ti-staging_3.14: Add CMEM region for omap-a15.

2015-04-23 Thread Jacob Stiffler
* This region can be used by applications to enable shared contiguous
  memory in user space for data transfer between the ARM and DSP.

Signed-off-by: Jacob Stiffler j-stiff...@ti.com
---
 recipes-kernel/linux/linux-ti-staging_3.14.bb |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-ti-staging_3.14.bb 
b/recipes-kernel/linux/linux-ti-staging_3.14.bb
index 061faed..ee91fc1 100644
--- a/recipes-kernel/linux/linux-ti-staging_3.14.bb
+++ b/recipes-kernel/linux/linux-ti-staging_3.14.bb
@@ -8,6 +8,7 @@ inherit kernel
 require recipes-kernel/linux/linux-dtb.inc
 require recipes-kernel/linux/setup-defconfig.inc
 require recipes-kernel/linux/multi-kernel.inc
+require recipes-kernel/linux/cmem.inc
 
 # Look in the generic major.minor directory for files
 FILESEXTRAPATHS_prepend := ${THISDIR}/${PN}-3.14:
@@ -49,7 +50,7 @@ SRCREV = 5e342e186fcd9834fff09f6335b344599042be88
 PV = 3.14.39
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
-MACHINE_KERNEL_PR_append = a+gitr${SRCPV}
+MACHINE_KERNEL_PR_append = b+gitr${SRCPV}
 PR = ${MACHINE_KERNEL_PR}
 
 KERNEL_CONFIG_DIR = ${S}/ti_config_fragments
@@ -57,6 +58,9 @@ KERNEL_CONFIG_DIR = ${S}/ti_config_fragments
 KERNEL_CONFIG_FRAGMENTS_append_ti33x =  ${KERNEL_CONFIG_DIR}/am33xx_only.cfg
 KERNEL_CONFIG_FRAGMENTS_append_ti43x =  ${KERNEL_CONFIG_DIR}/am43xx_only.cfg
 
+CMEM_BASE_omap-a15 = a000
+CMEM_SIZE_omap-a15 = 2000
+
 MULTI_CONFIG_BASE_SUFFIX = 
 
 KERNEL_GIT_URI = git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
-- 
1.7.9.5

-- 
___
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


[meta-ti] [RFC 0/2] Proposal for enabling CMEM

2015-04-23 Thread Jacob Stiffler
This is a proposal for adding a CMEM region in the device tree.

I wanted to get comments on the following:

* implementation of using an inc file to enable this.
* Whether the actual configuration belongs in the kernel recipe, or if
  this is something that should be handled at the distro or branding
  level. (RFC sets the configuration in kernel recipe).
- I have verified that this configuration may also be set in the
   branding file using, for example,

 CMEM_BASE_pn-linux-ti-staging_omap-a15 = a000
 CMEM_SIZE_pn-linux-ti-staging_omap-a15 = 2000

Jacob Stiffler (2):
  linux/cmem.inc: Support reserving memory for CMEM.
  linux-ti-staging_3.14: Add CMEM region for omap-a15.

 recipes-kernel/linux/cmem.inc |   22 ++
 recipes-kernel/linux/linux-ti-staging_3.14.bb |6 +-
 recipes-kernel/linux/linux/cmem.dtsi  |   24 
 3 files changed, 51 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/cmem.inc
 create mode 100644 recipes-kernel/linux/linux/cmem.dtsi

-- 
1.7.9.5

-- 
___
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


[meta-ti] [nightly] Distroless meta-ti/master minimal build 2015-04-23_21-00-51

2015-04-23 Thread Denys Dmytriyenko
Title: 
Status for 04/23/15





Status for 04/23/15

BUILD_ID: build-2015-04-23_21-02-01

Clean Build: false

Clean Sources: false
Repository Revisions


Repository
Git URL
Branch
Commit ID
Layers



bitbake
git://git.openembedded.org/bitbake
master
HEAD
layers=


meta-ti
git://git.yoctoproject.org/meta-ti
master
HEAD
layers=


oe-core
git://git.openembedded.org/openembedded-core
master
HEAD
layers=meta


Build and Target Test Results


Machine
Build Result
Target Test Result


am335x-evm
PASSED
FAILED


am437x-evm
PASSED
FAILED


am37x-evm
PASSED
FAILED


am3517-evm
PASSED
FAILED


am180x-evm
FAILED
SKIPPED


omap5-evm
PASSED
FAILED


dra7xx-evm
PASSED
FAILED


k2hk-evm
FAILED
SKIPPED


beagleboard
PASSED
FAILED


beaglebone
PASSED
FAILED


pandaboard
FAILED
SKIPPED




These builds were performed using the build-oesdk.sh script at:


git://arago-project.org/git/projects/tisdk-build-scripts.git



The configuration file passed to this script had the contents:


MANDATORY_INPUTS="MACHINES NUM_ARM9_BUILDS NUM_CORTEX_BUILDS BUILD_ID SCRIPTS_ROOT BUILD_ROOT TEST_ROOT PACKAGE_ROOT DEPLOY_ROOT FS_FILTER FS_IMAGE_TYPE NFS_ROOT CONFIG_FILE LOG_DIR TISDK_VERSION"
TISDK_VERSION="2015.04"
MACHINES="am335x-evm am437x-evm am37x-evm am3517-evm am180x-evm omap5-evm dra7xx-evm k2hk-evm beagleboard beaglebone pandaboard"
NUM_ARM9_BUILDS="1"
NUM_CORTEX_BUILDS="2"
BUILD_ID="`date +build-%F_%H-%M-%S`"
SCRIPTS_ROOT="$PWD"
BUILD_ROOT="/home/jenkins/distroless-build"
TEST_ROOT="$BUILD_ROOT/testing"
PACKAGE_ROOT="$BUILD_ROOT/packaging"
DEPLOY_ROOT="$BUILD_ROOT/deploy/$TISDK_VERSION"
FS_FILTER="core-image-minimal-"
FS_IMAGE_TYPE="tar.gz"
NFS_ROOT="/home/jenkins/nfs-root"
SOURCE_DIR="${BUILD_ROOT}/sources"
CLEAN_BUILD="false"
CLEAN_ALL="false"
CONFIG_FILE="${BUILD_ROOT}/configs/distroless-meta-ti-config.txt"
LOG_DIR="${BUILD_ROOT}/log-files"
BUILD_LOG_VERBOSE="true"
DL_DIR="/OE/downloads"
BB_GENERATE_MIRROR_TARBALLS="0"
INSTALLER_EXTRAS_ROOT="/home/jenkins/extra-files/installer_content"
TEST_SCRIPTS="$SCRIPTS_ROOT/test-scripts"
TEST_SCRIPTS_TGT="home/root/test-scripts"
TEST_LOCAL_IFACE="eth1"
OPENTEST_CLI="$SCRIPTS_ROOT/linux-devtest.tgz"
OPENTEST_TEE_IP="none"
OPENTEST_HW_CAP="linux_tigt_farm"
OPENTEST_BOOTLOADERS="false"
RUN_BUILD_TESTS="true"
STAF_ROOT="/usr/local/staf"
SKIP_TEST_FAILURES="false"
PRODUCTIZE_SDK="false"
BITBAKE_COMMAND="core-image-minimal"
RESULTS_CONFIG_COMMENTS="false"
INSTALL_BUILDER="/home/jenkins/installbuilder"
INSTALLER_ROOT="$BUILD_ROOT/installer"
INSTALL_BUILDER_PROJECT="$SCRIPTS_ROOT/installer-files/tisdk.xml"
INSTALLER_PREFIX="ti-sdk"
SD_CARD_CONTENT="/home/jenkins/extra-files/sd_content"
PACKAGE_BOOT_KERNEL_FILES="false"
WEBGEN_ROOT="/home/jenkins/webgen"
WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data"
EXPORT_ARAGO_SRC="0"
COPY_TO_WEB="true"
COPY_DEPLOY_TO_WEB="true"
WEB_HOST="lcpd...@lsblogin01.dal.design.ti.com:/web/lcpd/htdocs/core-minimal"
CLEAN_AFTER_COPY="true"
BACKUP_RESULTS="/home/jenkins/jobs/distroless-meta-ti-nightly/workspace"





-- 
___
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti