summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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