author | Buddy Liong <a0270631@ti.com> | |
Thu, 28 Jul 2016 19:04:24 +0000 (14:04 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Tue, 16 Aug 2016 17:04:51 +0000 (12:04 -0500) | ||
commit | 8ad2a268739f134b70e972711f59bd74346a87e1 | |
tree | 31808e8fc7af1e19b9d62fe95bdccb45fc0ff388 | tree | snapshot (tar.xz tar.gz zip) |
parent | 7c283ebc252223a728cb542dbc10c3ca0ab53e59 | 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 |