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

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 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_v10_0.c