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 18:53:06 +0000 (13:53 -0500)
commitc3ec8c4f9a470c026066ac7b2e4bac898bc7ff02
treecdf6be909b86381e8ce579d7a79f1b31d0d7e435
parent9749c868434596315231c8ab0c818d87b31641df
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