- Required for TIDL DSP execution
Signed-off-by: Yuan Zhao <[email protected]>
---
.../ocl/files/0002-OpenCL_l2_cache_size.patch | 49 ++++++++++++++++++++++
.../recipes-ti/ocl/opencl-monitor_git.bb | 4 +-
2 files changed, 52 insertions(+), 1 deletion(-)
create mode 100644
meta-arago-extras/recipes-ti/ocl/files/0002-OpenCL_l2_cache_size.patch
diff --git
a/meta-arago-extras/recipes-ti/ocl/files/0002-OpenCL_l2_cache_size.patch
b/meta-arago-extras/recipes-ti/ocl/files/0002-OpenCL_l2_cache_size.patch
new file mode 100644
index 00000000..7a81a137
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/ocl/files/0002-OpenCL_l2_cache_size.patch
@@ -0,0 +1,49 @@
+diff --git a/monitor/src/builtins.c b/monitor/src/builtins.c
+index fbf3bf3..4edf61c 100644
+--- a/monitor/src/builtins.c
++++ b/monitor/src/builtins.c
+@@ -159,7 +159,7 @@ EXPORT int __cache_l2_none()
+ EXPORT int __cache_l2_32k()
+ {
+ int32_t scratch_delta = __cache_l2_size() - (32 << 10);
+- uint32_t scratch_size = kernel_config_l2.L2_scratch_size;
++ int32_t scratch_size = kernel_config_l2.L2_scratch_size;
+ if (-scratch_delta > scratch_size) return 0;
+ kernel_config_l2.L2_scratch_size += scratch_delta;
+
+@@ -173,7 +173,7 @@ EXPORT int __cache_l2_32k()
+ EXPORT int __cache_l2_64k()
+ {
+ int32_t scratch_delta = __cache_l2_size() - (64 << 10);
+- uint32_t scratch_size = kernel_config_l2.L2_scratch_size;
++ int32_t scratch_size = kernel_config_l2.L2_scratch_size;
+ if (-scratch_delta > scratch_size) return 0;
+ kernel_config_l2.L2_scratch_size += scratch_delta;
+
+@@ -187,7 +187,7 @@ EXPORT int __cache_l2_64k()
+ EXPORT int __cache_l2_128k()
+ {
+ int32_t scratch_delta = __cache_l2_size() - (128 << 10);
+- uint32_t scratch_size = kernel_config_l2.L2_scratch_size;
++ int32_t scratch_size = kernel_config_l2.L2_scratch_size;
+ if (-scratch_delta > scratch_size) return 0;
+ kernel_config_l2.L2_scratch_size += scratch_delta;
+
+@@ -205,7 +205,7 @@ EXPORT int __cache_l2_512k() { return 0; }
+ EXPORT int __cache_l2_256k()
+ {
+ int32_t scratch_delta = __cache_l2_size() - (256 << 10);
+- uint32_t scratch_size = kernel_config_l2.L2_scratch_size;
++ int32_t scratch_size = kernel_config_l2.L2_scratch_size;
+ if (-scratch_delta > scratch_size) return 0;
+ kernel_config_l2.L2_scratch_size += scratch_delta;
+
+@@ -219,7 +219,7 @@ EXPORT int __cache_l2_256k()
+ EXPORT int __cache_l2_512k()
+ {
+ int32_t scratch_delta = __cache_l2_size() - (512 << 10);
+- uint32_t scratch_size = kernel_config_l2.L2_scratch_size;
++ int32_t scratch_size = kernel_config_l2.L2_scratch_size;
+ if (-scratch_delta > scratch_size) return 0;
+ kernel_config_l2.L2_scratch_size += scratch_delta;
+
diff --git a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
index 0ab21a1a..00aa773c 100644
--- a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
+++ b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
@@ -5,7 +5,9 @@ LICENSE = "BSD"
include ocl.inc
require recipes-ti/includes/arago-paths.inc
-PR = "${INC_PR}.0"
+SRC_URI += "file://0002-OpenCL_l2_cache_size.patch;patchdir=${WORKDIR}/git"
+
+PR = "${INC_PR}.1"
inherit update-alternatives
--
2.14.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago