]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:59:07 +0000 (13:59 +0200)
commit4f96fe92635e70718760522d07bd6e8dbe4f1fa5
tree0633f120bc7dbfe4db18af758432193592e33582
parent9b36abb95639833c26712bbb729b42b7af8a09c0
drm/amd: Use `amdgpu_ucode_*` helpers for MES

commit 11e0b0067ec0707e8e598a5f9a547ab618ae7982 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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