]> 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)
commit1733530e6a2c589add81f9fbe97db1d027e65a92
treee93983882976af32506fdde4336f930c1fb761d8
parent1547cf2f84da83eb09bfa5e47c552aa20b97bc91
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