summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-22optee: fix uninitialized symbol 'parg' [1/1]android-tv-10.0.0_r0.1android-tv-deadpool-4.9-android10Jens Wiklander
PD#SWPL-8608 Problem: ** SYNC FROM linaro ** uninitialized symbol 'parg'. Solution: Fixes the static checker warning in optee_release(). Verify: none Change-Id: Idd3305534a88e6759d9af54a41dd6c6a931c1848
2019-07-24build: fix uninitialized-use when build with prebuilt toolchain [1/1]Chia-hung Duan
PD#SWPL-8241 Problem: ** SYNC FROM GOOGLE ** Build failed due to uninitialzed variable Solution: Init to reasonable value Verify: Build with Android prebuilt toolchain Change-Id: I41614aa257d4306efe190539e7a54f9756fcb78c
2019-07-24log: kernel4.19 compile error [1/1]Liqiang Jin
PD#SWPL-9652 Problem: init_timer() function not exist in kernel4.19 Solution: 1) use setup_timer() to init timer in kernel4.9 2) use timer_setup() to init timer in kernel4.19 Verify: Android P + U200 Change-Id: Ie9e12494a9b16eb6432a01cf8b503bae4c019023 Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2019-07-15log: output TEE Errors to KMSG for debugging [2/2]Liqiang Jin
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>
2019-06-16tee: integrate tee module build to android build system [1/2]Shuide Chen
PD#SWPL-9058 Problem: optee module build trigged at scanning Android.mk stage, it's too early and the module not depend to kernel, which may introduce very strange errors, and it customize toolchain and configures, which made the system very hard to maintain. Solution: Rewrite the makefile and structure for the above problem This CL also support build on Q Verify: locally Change-Id: I8d883735d926c54848a4135518e4be139594a147 Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2019-06-10linuxdriver: update kernel4.9(4.9.113 -> 4.9.180) compile error [1/1]Liqiang Jin
PD#SWPL-8875 Problem: macro "u64_to_user_ptr(x)" redefinition Solution: delete the macro Verify: kernel4.19 + arm64 kernel4.19 + arm kernel4.9 + arm64 kernel4.9 + arm Change-Id: Ie2549b1bddbc9fd819511a3c6d1b40c21561ccef Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2019-05-16linuxdriver: check supplicant status before send message [1/1]Pengguang Zhu
PD#TV-5392 Problem: when playing netflix movies, press power button, TV can not power down and console hang. previous commit will check supplicant status, but there is gap that thread will scheduled and meanwhile the supplicant status may change. Solution: move the status check before wait_for_completion Verify: TXLX + Android P Change-Id: I445619192a1c6cf047a3fe51f3660dad7aa39601 Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
2019-05-14tee: optee: avoid possible double list_del() [1/1]Zhizhou Zhang
PD#OTT-3799 Problem: This bug occurs when: - a new request arrives, one thread(let's call it A) is pending in optee_supp_req() with req->busy is initial value false. - tee-supplicant is killed, then optee_supp_release() is called, this function calls list_del(&req->link), and set supp->ctx to NULL. And it also wake up process A. - process A continues, it firstly checks supp->ctx which is NULL, then checks req->busy which is false, at last run list_del(&req->link). This triggers double list_del() and results kernel panic. Solution: For solve this problem, we rename req->busy to req->in_queue, and associate it with state of whether req is linked to supp->reqs. So we can just only check req->in_queue to make decision calling list_del() or not. Verify: Android P + S922X Change-Id: I14a71d1bda933573c7216774954c08fa3161be6c Signed-off-by: Zhizhou Zhang <zhizhouzhang@asrmicro.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2019-05-05linuxdriver: check supplicant status before send message [1/1]Pengguang Zhu
PD#TV-5392 Problem: when playing netflix movies, press power button, TV can not power down and console hang. Solution: 1. check supplicant status before send message Test: manual - mm Verify: TXLX + Android P Change-Id: Ia4829ba22de97ee06273632f7b824ddfa5909ee4 Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
2019-01-21linuxdriver: kernel4.19 "struct dma_buf_ops" have changed [1/1]Liqiang Jin
PD#SWPL-2814 Problem: because "struct dma_buf_ops" have changed, so compile failed Solution: use "struct dma_buf_ops" according to the kernel version Verify: Android P + G12A(U200) Change-Id: I47573d1cfcdc942e4de2ac2c92938ebc4bc975d9 Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2018-11-20linuxdriver: Change the compiled output directory [1/1]Chao Liu
PD#SWPL-2236 Problem: optee.mod.c and optee_armtz.mod.c has no license declaration Solution: Switch compilation directory to $(PRODUCT_OUT)/obj/optee_modules Verify: Verified on U200 Change-Id: I6d370a35a7324a89d949dc41e3c5175648d85975 Signed-off-by: Chao Liu <chao.liu@amlogic.com>
2018-10-25linuxdriver: revert g12b binding a53 [1/1]Chao Liu
PD#SWPL-981 Problem: kernel 3.14 compile failed. and these commits are not required Solution: revert g12b binging a53 android o tdk commit: f07bf39d83405d29158fe59f7df6e4d5c9a77e43 Verify: Android O + g12b_skt Change-Id: Id30f271a8f858f50be5355d8002fe3d0dc95e2dc Signed-off-by: Chao Liu <chao.liu@amlogic.com>
2018-10-08update code to the latest commit of the tdk-v2.4 branch of tdkChao Liu
commit: bca0ab730d6e9701730fdc1f3015ccb0abfe60b9 Change-Id: I42b4bcf14c3a2d6be864d7f31564a40cfc8a6f9c Signed-off-by: Chao Liu <chao.liu@amlogic.com>
2018-09-21Initial empty repositoryLei Qian