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

If GFX11 microcode is required but not available during early init, the
firmware framebuffer will have already been released and the screen will
freeze.

Move the request for GFX11 microcode into the early_init phase
so that if it's not available, driver init will 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/gfx_v11_0.c