]> asedeno.scripts.mit.edu Git - linux.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)
commit1db8c142b6c557a951e8f9866b98953fe91cbdd6
treee93983882976af32506fdde4336f930c1fb761d8
parent9afd07566b6c908324cb4072102e2ce96bce986a
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