drm/amd: Use `amdgpu_ucode_*` helpers for GFX9
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 20:18:39 +0000 (14:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
commitec787deb2ddffc6cd6afe0e2fbbbd490ddc383ed
tree5c2321c4701b5280dbe05566432d2be6ef74edf4
parente78105c8c432368682fc13f18e164e89ad705910
drm/amd: Use `amdgpu_ucode_*` helpers for GFX9

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 will provide symmetry on unload.

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/gfx_v9_0.c