]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: move fence slab handling to module init/exit
authorLucas Stach <l.stach@pengutronix.de>
Wed, 6 Dec 2017 16:49:40 +0000 (17:49 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Dec 2017 16:52:14 +0000 (11:52 -0500)
commite923958246ef27b7b775ab5c057677398df1e2ae
tree676060a54b0ec63ae5c81f4a04adb4a7880befe5
parentae7f395749004686962e7a29d99710590b330796
drm/sched: move fence slab handling to module init/exit

This is the only part of the scheduler which must not be called from
different drivers. Move it to module init/exit so it is done a single
time when loading the scheduler.

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/scheduler/sched_fence.c
include/drm/gpu_scheduler.h