diff options
| author | Stanislaw Gruszka <[email protected]> | 2023-10-28 15:59:31 +0000 |
|---|---|---|
| committer | Stanislaw Gruszka <[email protected]> | 2023-10-31 15:14:17 +0000 |
| commit | 57c7e3e4800ad65048a7044b03723cd85d9595af (patch) | |
| tree | 82e870cd80b7deba2134c5a7677962db251a30cf /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | accel/ivpu: Assure device is off if power up sequence fail (diff) | |
| download | kernel-57c7e3e4800ad65048a7044b03723cd85d9595af.tar.gz kernel-57c7e3e4800ad65048a7044b03723cd85d9595af.zip | |
accel/ivpu: Stop job_done_thread on suspend
Stop job_done thread when going to suspend. Use kthread_park() instead
of kthread_stop() to avoid memory allocation and potential failure
on resume.
Use separate function as thread wake up condition. Use spin lock to assure
rx_msg_list is properly protected against concurrent access. This avoid
race condition when the rx_msg_list list is modified and read in
ivpu_ipc_recive() at the same time.
Reviewed-by: Karol Wachowski <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Signed-off-by: Stanislaw Gruszka <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
