]> git.baikalelectronics.ru Git - kernel.git/commit
drm/scheduler: Add drm_sched_suspend/resume_timeout()
authorSharat Masetty <smasetty@codeaurora.org>
Thu, 29 Nov 2018 10:05:20 +0000 (15:35 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Dec 2018 22:56:16 +0000 (17:56 -0500)
commit2130e7c1c09a72b5b460f8b9a440537e35c5c2e5
treee93983882976af32506fdde4336f930c1fb761d8
parent84c8015cacbbe54c36a00623ab9a593589522e51
drm/scheduler: Add drm_sched_suspend/resume_timeout()

This patch adds two new functions to help client drivers suspend and
resume the scheduler job timeout. This can be useful in cases where the
hardware has preemption support enabled. Using this, it is possible to have
the timeout active only for the ring which is active on the ringbuffer.
This patch also makes the job_list_lock IRQ safe.

Suggested-by: Christian Koenig <Christian.Koenig@amd.com>
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/etnaviv/etnaviv_dump.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h