drm/amd/pm: move bootup values retrieving to ->sw_init
authorEvan Quan <evan.quan@amd.com>
Thu, 31 Mar 2022 22:10:35 +0000 (18:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:57:45 +0000 (09:57 -0400)
commita1c30111de1c973751c654a64f6a99fb70ec03ca
tree7ad420913bca000ca332f2cdb19b35adf0d6d2c9
parent6f3c9dbb65be3d90eee1b90e270c4e62b15a91b3
drm/amd/pm: move bootup values retrieving to ->sw_init

Firsrt of all, the operations involved is to interact with
VBIOS. They are fully supported at ->sw_init phase.

Secondly, the new mechanism to upload pptable to SMU is
introduced. With the new mechanism, the pptable transferring
has to be via PSP. That requires the pptable ucode(and necessary
bootupp values retrieving) must be ready before ->hw_init phase of PSP.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c