]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3563e99681d7d39277517d5bfa785e271e9c7f7
tree7ad420913bca000ca332f2cdb19b35adf0d6d2c9
parentafe7c93be00415940f3bb7fee88a9a76366a53b6
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