Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSD locking issue #6893

Closed
sungkeunsong opened this issue Jun 15, 2024 · 2 comments
Closed

CSD locking issue #6893

sungkeunsong opened this issue Jun 15, 2024 · 2 comments
Labels

Comments

@sungkeunsong
Copy link

Hi experts,

I got CSD locking issue. The Issue occures when suspending and resuming repeatedly.
The call stack is as follows.

[2024-06-11 12:46:36.163] [ 145.080166] Task dump for CPU 1:
[2024-06-11 12:46:36.163] [ 145.080567] task:gateway state:R running task stack: 0 pid: 984 ppid: 939 flags:0x00000a02
[2024-06-11 12:46:36.163] [ 145.081726] Call trace:
[2024-06-11 12:46:36.163] [ 145.082020] __switch_to+0xc8/0x120
[2024-06-11 12:46:36.163] [ 145.082432] prep_new_page+0x70/0xa0
[2024-06-11 12:46:36.166] [ 145.082853] get_page_from_freelist+0x1138/0x1490
[2024-06-11 12:46:36.166] [ 145.083406] trace_lock_acquire+0x174/0x204
[2024-06-11 12:46:36.166] [ 145.083896] lock_acquire+0x3c/0x8c
[2024-06-11 12:46:36.166] [ 145.084307] 0xffffb01a578a2c00
[2024-06-11 12:46:36.166] [ 145.084716] mutex_unlock+0x2c/0x50
[2024-06-11 12:46:36.167] [ 145.085130] optee_do_call_with_arg+0xe4/0x1e4
[2024-06-11 12:46:36.167] [ 145.085650] optee_invoke_func+0x138/0x1b0
[2024-06-11 12:46:36.167] [ 145.086130] tee_ioctl+0x1524/0x1630
[2024-06-11 12:46:36.167] [ 145.086553] __arm64_sys_ioctl+0xa8/0xf0
[2024-06-11 12:46:36.167] [ 145.087016] el0_svc_common.constprop.0+0x7c/0x1d0
[2024-06-11 12:46:36.169] [ 145.087578] do_el0_svc+0x28/0x94
[2024-06-11 12:46:36.169] [ 145.087969] el0_svc+0x20/0x30
[2024-06-11 12:46:36.169] [ 145.088329] el0_sync_handler+0xa4/0x130
[2024-06-11 12:46:36.171] [ 145.088805] el0_sync+0x184/0x1c0
[2024-06-11 12:46:36.171] [ 145.089197] smp: csd: Re-sending CSD lock (#1) IPI from CPU#00 to CPU#01
[2024-06-11 12:46:36.171] [ 145.089983] CPU: 0 PID: 599 Comm: TimeManager Tainted: G O 5.10.153-g0aa6ece4c3e6 #1

I 'm using OPTEE 3.19.
I don't have logs of TA and OPTEE. I want to know why the TA is not responding.

Thank you

@sungkeunsong
Copy link
Author

I found out the the root cause.
This issue occurs by the known RNS issue (5c4a6d1)

Thanks

Copy link

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant