]> 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)
commit63a362fa41f470548c3ea2fe45de14a1f90ac7a3
tree7ad420913bca000ca332f2cdb19b35adf0d6d2c9
parenta02bd6b8dcd6f4116da52f50edf307731555e44b
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