]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: fix scheduler fence teardown order v2
authorChristian König <christian.koenig@amd.com>
Fri, 28 Oct 2016 15:04:07 +0000 (17:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 16:43:20 +0000 (12:43 -0400)
commit7aa07fdf4f3363524572a4d7c794ec0220674449
tree14de2bb1c8f9ecd2d38c230c286c13e59d4dcbad
parent24b18bcf0aeade5f8008c4b3379ae340404f9e13
drm/amd: fix scheduler fence teardown order v2

Some fences might be alive even after we have stopped the scheduler leading
to warnings about leaked objects from the SLUB allocator.

Fix this by allocating/freeing the SLUB allocator from the module
init/fini functions just like we do it for hw fences.

v2: make variable static, add link to bug

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=97500
Reported-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
drivers/gpu/drm/amd/scheduler/sched_fence.c