Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tee: optee: Change wait to interruptible
The thread of R-Car OP-TEE driver waits for RPC debug log command from OP-TEE, with wait_event (i.e. in TASK_UNINTERRUPTIBLE state). In case OP-TEE does't output the debug log for a long time, a hung task warning occurs when CONFIG_DETECT_HUNG_TASK is set: INFO: task optee_debug_log:1855 blocked for more than 120 seconds. Tainted: G O 4.14.75-ltsi-yocto-standard #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. optee_debug_log D 0 1855 2 0x00000020 Call trace: [<ffff000008085cf4>] __switch_to+0x94/0xd8 [<ffff000008b247c4>] __schedule+0x1c4/0x710 [<ffff000008b24d48>] schedule+0x38/0xa0 [<ffff0000089cfcfc>] debug_log_kthread+0xc4/0x130 [<ffff0000080eef2c>] kthread+0x12c/0x130 [<ffff000008084ed8>] ret_from_fork+0x10/0x18 This patch changes to wait in TASK_INTERRUPTIBLE state to solve a hung task warning. Signed-off-by: Takeshi Kihara <[email protected]> Signed-off-by: Nguyen Bao Nguyen <[email protected]>
- Loading branch information