]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: clean up init sequence for failures
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jul 2015 15:50:31 +0000 (11:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jul 2015 19:50:36 +0000 (15:50 -0400)
commit6b26b62cdbe22a9d575c242cbb0f5756bf580a4d
tree7332edf65919a1630666c3eb8e2406f932646210
parent106311166c00c687a1c999fe12bad6bcf82ccc67
drm/amdgpu: clean up init sequence for failures

If we fail during device init, record what state each
block is in so that we can tear down clearly.

Fixes various problems on device init failure.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c