drm/amd: Move microcode init from sw_init to early_init for SDMA v5.0
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 25 Sep 2023 18:56:16 +0000 (13:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:37:34 +0000 (15:37 -0400)
commited1c1053cd00739eed2a96b5e19dd0b5e91477b9
tree9ae54fa9935355054de6c9eadc2ac4ce0c2094cd
parent0c3601a2fbfb265ce283651480e30c8e60459112
drm/amd: Move microcode init from sw_init to early_init for SDMA v5.0

As part of IP discovery early_init is run for all HW IP blocks.
During this phase all firmware is supposed to be identified that may
be missing so that the driver can avoid releasing resources used by
the EFI framebuffer or simpledrm until the last possible moment.

Move microcode loading from sw_init to early_init.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c