summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Shuide Chen [Tue, 28 May 2019 06:06:41 +0000 (14:06 +0800)]
tee: integrate tee module build to android build system [1/2]
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>
Liqiang Jin [Mon, 10 Jun 2019 08:55:22 +0000 (16:55 +0800)]
linuxdriver: update kernel4.9(4.9.113 -> 4.9.180) compile error [1/1]
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>
Pengguang Zhu [Thu, 16 May 2019 06:07:13 +0000 (14:07 +0800)]
linuxdriver: check supplicant status before send message [1/1]
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>
Zhizhou Zhang [Wed, 21 Nov 2018 03:01:43 +0000 (11:01 +0800)]
tee: optee: avoid possible double list_del() [1/1]
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>
Pengguang Zhu [Sun, 5 May 2019 09:37:53 +0000 (17:37 +0800)]
linuxdriver: check supplicant status before send message [1/1]
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>
Liqiang Jin [Wed, 9 Jan 2019 06:44:59 +0000 (14:44 +0800)]
linuxdriver: kernel4.19 "struct dma_buf_ops" have changed [1/1]
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>
Chao Liu [Mon, 19 Nov 2018 11:36:47 +0000 (19:36 +0800)]
linuxdriver: Change the compiled output directory [1/1]
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>
Chao Liu [Thu, 25 Oct 2018 06:37:56 +0000 (14:37 +0800)]
linuxdriver: revert g12b binding a53 [1/1]
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>
Chao Liu [Mon, 8 Oct 2018 07:00:36 +0000 (15:00 +0800)]
update code to the latest commit of the tdk-v2.4 branch of tdk
commit:
bca0ab730d6e9701730fdc1f3015ccb0abfe60b9
Change-Id: I42b4bcf14c3a2d6be864d7f31564a40cfc8a6f9c
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
Lei Qian [Fri, 21 Sep 2018 05:52:47 +0000 (13:52 +0800)]
Initial empty repository