OSDN Git Service

drm/amd: Use `amdgpu_ucode_request` helper for SDMA
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 19:20:52 +0000 (13:20 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:09 +0000 (17:02 -0500)
commite43229824d5bdd8dc0c2ea5b16f79b01ed2cd843
treef04df64fc3a7de268314c5a761f32739e390ee93
parent2210af50ae7f4104269dfde7bafbbfbacdbe1a2b
drm/amd: Use `amdgpu_ucode_request` helper for SDMA

The `amdgpu_ucode_request` helper will ensure that the return code for
missing firmware is -ENODEV so that early_init can fail.

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_sdma.c