OSDN Git Service

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

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