drm/amdgpu: Check late_init status before set cg/pg state
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 3 Oct 2018 08:19:50 +0000 (16:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Oct 2018 19:48:44 +0000 (14:48 -0500)
commita2d31dc3cfab29f79c1cda2876d32b909ae26e25
treea494d4a7bc2007fc974f71c1fa084a85accb5379
parent73f847dbab26cd9b962ce03e413612d7a2b2b47d
drm/amdgpu: Check late_init status before set cg/pg state

Fix cg/pg unexpected set in hw init failed case.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c