drm/amd: Load GFX10 microcode during early_init
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 28 Dec 2022 07:34:35 +0000 (01:34 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
commit9931b67690cf37ff539e4e7cafa9539179ee519f
tree7a384d4351239fc313b3f975576ceba4163bef3e
parent3da9b71563cbb7281875adab1d7c4132679da987
drm/amd: Load GFX10 microcode during early_init

Simplifies the code so that GFX10 will get the firmware
name from `amdgpu_ucode_ip_version_decode` and then use this filename
to load microcode as part of the early_init process.

Any failures will cause the driver to fail to probe before the firmware
framebuffer has been removed.

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/gfx_v10_0.c