summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1762b34)
raw | patch | inline | side by side (parent: 1762b34)
author | Buddy Liong <a0270631@ti.com> | |
Thu, 28 Jul 2016 19:04:24 +0000 (14:04 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Mon, 2 Oct 2017 15:26:29 +0000 (10:26 -0500) |
Previously dce_init() is configured as the BIOS UserStartupFunction or
started when BIOS_start() is called.
This is configured in \src\ti\framework\dce\package.xs
The assumption is that IpcMgr_rpmsgStartup() is also configured as the
BIOS UserStartupFunction or started when BIOS_start() is called.
This is configured in \platform\ti\dce\baseimage\dce_ipu.cfg
If IPC API IpcMgr_rpmsgStartup() is not configured as BIOS UserStartupFunction
but instead it was called from a Task thread, then dce_init has to be delayed
until RPMessage_init() which is called in IpcMgr_rpmsgStartup() is completed.
Otherwise rpmsg-dce and dce_callback thread in dce_init() will be failing
since the RPMSG is not configured yet.
This patch removes dce_init() from BIOS UserStartupFunction. It will now be
called from IPUMM_Main()
Change-Id: I6d2cb8f4cf55d72c25eb867ad48ed7e2710efb4b
Signed-off-by: Buddy Liong <a0270631@ti.com>
started when BIOS_start() is called.
This is configured in \src\ti\framework\dce\package.xs
The assumption is that IpcMgr_rpmsgStartup() is also configured as the
BIOS UserStartupFunction or started when BIOS_start() is called.
This is configured in \platform\ti\dce\baseimage\dce_ipu.cfg
If IPC API IpcMgr_rpmsgStartup() is not configured as BIOS UserStartupFunction
but instead it was called from a Task thread, then dce_init has to be delayed
until RPMessage_init() which is called in IpcMgr_rpmsgStartup() is completed.
Otherwise rpmsg-dce and dce_callback thread in dce_init() will be failing
since the RPMSG is not configured yet.
This patch removes dce_init() from BIOS UserStartupFunction. It will now be
called from IPUMM_Main()
Change-Id: I6d2cb8f4cf55d72c25eb867ad48ed7e2710efb4b
Signed-off-by: Buddy Liong <a0270631@ti.com>
platform/ti/dce/baselib/ipumm_main.c | patch | blob | history | |
src/ti/framework/dce/dce.c | patch | blob | history | |
src/ti/framework/dce/package.xs | patch | blob | history |
index aa92080ef7e00b7a9911e0a61f0900e2b319d943..76ccd34f626ed5f6df5445c733577fee0a4c6c90 100644 (file)
hostId = MultiProc_getId("HOST");
RPMessage_init(hostId);
+ dce_init();
+
/* CPU load reporting in the trace. */
start_load_task();
index f0e1d77b70e2ea3aaa1f5e408d53b87a6e4ce042..78848d4408d34ff54339ad0e2bb9a8f8cdecd09b 100644 (file)
Task_Params callback_params;
Semaphore_Params semParams;
- INFO("Creating DCE server and DCE callbabk server thread...");
+ INFO("Creating DCE server and DCE callback server thread...");
/* Create DCE task. */
Task_Params_init(¶ms);
index 7e7f11af9cc4e8f9a5ebc797e6161baa53d998af..d385733a14da9aebf98b62412c703b19262f29a7 100644 (file)
* it will be called during BIOS_start()
*/
var BIOS = xdc.useModule('ti.sysbios.BIOS');
- BIOS.addUserStartupFunction('&dce_init');
Program.sectMap[".ipummversion"] = new Program.SectionSpec();
Program.sectMap[".ipummversion"].type = "COPY";