]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/scheduler: don't oops on failure to load
authorDave Airlie <airlied@redhat.com>
Tue, 3 Nov 2015 16:10:03 +0000 (11:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Nov 2015 16:15:29 +0000 (11:15 -0500)
commit7a95d9d180be1e3a0738776a35c3d6d031932db4
treef18a83b35b5e006725164b3c07c725ad5f645079
parent38bfa915d59063cdb963b3fc3f0f7544b832a5fd
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: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c