log: output TEE Errors to KMSG for debugging [2/2]
authorLiqiang Jin <liqiang.jin@amlogic.com>
Tue, 11 Jun 2019 02:14:03 +0000 (10:14 +0800)
committerPeifu Jiang <peifu.jiang@amlogic.com>
Mon, 15 Jul 2019 09:38:26 +0000 (02:38 -0700)
commit5e6a685d4d7c0de80e4494f53bd885cc2236a663
treeee4c90f6fae3f83d45e9f1b09913016752035b0c
parent566330eb795d213d2a771f186b68c14fd7f7f40f
log: output TEE Errors to KMSG for debugging [2/2]

PD#SWPL-9652

Problem:
TEE logs are output to UART and not via kmsg.
Secure OS should support routing TEE logs into kmsg.

Solution:
1) reserve system share-mem as logger mem.
2) add API to support routing TEE logs to REE kmsg.

Verify:
Android P + U200

Change-Id: I7a43827f1d25a2e72ff15082751351bcad7c68f4
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
Makefile
optee/Makefile
optee/core.c
optee/log.c [new file with mode: 0644]
optee/optee_private.h
optee/optee_smc.h