drm/amd: Don't init MEC2 firmware when it fails to load
authorDavid McFarland <corngood@gmail.com>
Mon, 29 Jan 2024 22:18:22 +0000 (18:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jan 2024 22:34:14 +0000 (17:34 -0500)
commit8ef85a0ce24a6d9322dfa2a67477e473c3619b4f
treeab65640f9e9e78a52e641c79d539fb18d1de56c4
parentbb34bc2cd3ee284d7992df24a3f7d24f61a59268
drm/amd: Don't init MEC2 firmware when it fails to load

The same calls are made directly above, but conditional on the firmware
loading and validating successfully.

Cc: stable@vger.kernel.org
Fixes: 9931b67690cf ("drm/amd: Load GFX10 microcode during early_init")
Signed-off-by: David McFarland <corngood@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c