drm/amd: Use `amdgpu_ucode_*` helpers for SDMA3.0
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Jan 2023 14:36:19 +0000 (08:36 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:58 +0000 (14:32 -0500)
commitd7f50961aa5c6a6b242793da79baf41667b8b1eb
tree21aa9603d7e32fb1bb0c44175cc3747467791bfe
parent10024cd73d4c3f87a06f4ad4c6bd72642bbc7c18
drm/amd: Use `amdgpu_ucode_*` helpers for SDMA3.0

The `amdgpu_ucode_request` helper will ensure that the return code for
missing firmware is -ENODEV so that early_init can fail.

The `amdgpu_ucode_release` helper is for symmetry on unloading.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c