OSDN Git Service

drm/amdgpu: fix sdma firmware version error in sriov
authorKevin Wang <kevin1.wang@amd.com>
Mon, 31 May 2021 09:29:11 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:39 +0000 (22:55 -0400)
commit2b8f731849800e3948763ccaff31cceac526789b
tree2cbe183b4c9ca32ef35a5b923643263cb39a30c4
parent3fa8f89d72073206cad0a8840ce65afa239911ad
drm/amdgpu: fix sdma firmware version error in sriov

Re-adjust the function return order to avoid empty sdma version in the
sriov environment. (read amdgpu_firmware_info)

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Stanley.Yang <Stanley.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c