OSDN Git Service

drm/amd: Use `amdgpu_ucode_*` helpers for GFX8
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Jan 2023 14:35:19 +0000 (08:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:57 +0000 (14:32 -0500)
commit0aaafb7359d25a5c9038bda4ea3a759839f8b2bb
treef2ff990f1720490e4b99976f1bcf00f9d95c0ad3
parent469f199e472e5df76be75ee76fdc174ca856ee76
drm/amd: Use `amdgpu_ucode_*` helpers for GFX8

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