Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32544d02 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

drm/amd/scheduler: don't oops on failure to load



In two places amdgpu tries to tear down something it hasn't
initalised when failing. This is what happens when you
enable experimental support on topaz which then fails in
ring init.

This patch allows it to fail cleanly.

agd: Split out from from the original patch since the
scheduler is a driver independent.

Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent fe295b27
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -468,5 +468,6 @@ int amd_sched_init(struct amd_gpu_scheduler *sched,
 */
void amd_sched_fini(struct amd_gpu_scheduler *sched)
{
	if (sched->thread)
		kthread_stop(sched->thread);
}