drm/amd: Use `amdgpu_ucode_*` helpers for GFX11
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 20:30:53 +0000 (14:30 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
commitc88135c089e4d126ad1b2d9494a32d3d9160df4e
tree9ef9c7bd27baffbd74f2ccfaaa4fb4d8da3508b6
parent9931b67690cf37ff539e4e7cafa9539179ee519f
drm/amd: Use `amdgpu_ucode_*` helpers for GFX11

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 symmetery 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_v11_0.c
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c