[PATCH] drm/amdgpu: fix sched fence slab teardown

2016-10-24 Thread Alex Deucher
On Mon, Oct 24, 2016 at 5:06 AM, Christian König wrote: > Reviewed-by: Christian König > > > Am 24.10.2016 um 04:34 schrieb zhoucm1: >> >> Acked-by: Chunming Zhou >> >> On 2016年10月24日 02:31, Grazvydas Ignotas wrote: >>> >>> To free fences, call_rcu() is used, which calls amd_sched_fence_

[PATCH] drm/amdgpu: fix sched fence slab teardown

2016-10-24 Thread Christian König
Reviewed-by: Christian König Am 24.10.2016 um 04:34 schrieb zhoucm1: > Acked-by: Chunming Zhou > > On 2016年10月24日 02:31, Grazvydas Ignotas wrote: >> To free fences, call_rcu() is used, which calls amd_sched_fence_free() >> after a grace period. During teardown, there is no guarantee all >

[PATCH] drm/amdgpu: fix sched fence slab teardown

2016-10-24 Thread zhoucm1
Acked-by: Chunming Zhou On 2016年10月24日 02:31, Grazvydas Ignotas wrote: > To free fences, call_rcu() is used, which calls amd_sched_fence_free() > after a grace period. During teardown, there is no guarantee all > callbacks have finished, so sched_fence_slab may be destroyed before > all fen

[PATCH] drm/amdgpu: fix sched fence slab teardown

2016-10-23 Thread Grazvydas Ignotas
To free fences, call_rcu() is used, which calls amd_sched_fence_free() after a grace period. During teardown, there is no guarantee all callbacks have finished, so sched_fence_slab may be destroyed before all fences have been freed. If we are lucky, this results in some slab warnings, if not, we ge