drm/amd: Move microcode init from sw_init to early_init for CIK SDMA
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 25 Sep 2023 19:02:22 +0000 (14:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:38:17 +0000 (15:38 -0400)
commit93499bd6cdcbb89008f6e04c5b5691e49968e3bd
treec34504780a01e1b51c70113479e2b2363ab7a634
parent751e293f2c998eda03004f9b351b0b6bdc335bd9
drm/amd: Move microcode init from sw_init to early_init for CIK SDMA

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