]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd: Use `amdgpu_ucode_*` helpers for MES
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 20:12:37 +0000 (14:12 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
commit11e0b0067ec0707e8e598a5f9a547ab618ae7982
tree5a86dddf3191f4b0c9bae93fe30e47989c2f077f
parentcc42e76e7de5190a7da5dac9d7b2bbb458e050bf
drm/amd: Use `amdgpu_ucode_*` helpers for MES

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 provides symmetry for releasing firmware.

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/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c