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) | ||
commit | 56b20c6e896a62433a815a8533f94456731510f6 | |
tree | f1cca968659093e9394fe9a6e89770e3eacaf800 | tree | snapshot (tar.xz tar.gz zip) |
parent | 1762b346b494503a4d6f4065cd12e019ecf42c7b | commit | diff |
Run dce_init on Task thread
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>
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>
platform/ti/dce/baselib/ipumm_main.c | diff | blob | history | |
src/ti/framework/dce/dce.c | diff | blob | history | |
src/ti/framework/dce/package.xs | diff | blob | history |