drm/amdgpu/sdma4: simplify the logic around powering up sdma
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2020 21:14:54 +0000 (17:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 18:00:49 +0000 (14:00 -0400)
commitd0767e0e0f796948cfa4c4e295ebf1edd7ccc722
tree05673948823b91e3def99fd7e1822f7884963a0c
parentd7aca4f0b2edc6dc904ecab28c59f1e63b9fb46f
drm/amdgpu/sdma4: simplify the logic around powering up sdma

Just check if it's an APU.  The checks for the ppfuncs are
pointless because if we don't have them we can't power up
sdma anyway so we shouldn't even be in this code in the first
place.  I'm not sure about the in_gpu_reset check.  This
probably needs to be double checked.  The fini logic doesn't
match the init logic however with that in_gpu_reset check
in place which seems odd.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c