drm/amd/pm: restore user customized OD settings properly for NV1x
authorEvan Quan <evan.quan@amd.com>
Wed, 21 Jul 2021 10:19:38 +0000 (18:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Jul 2021 20:37:18 +0000 (16:37 -0400)
commit92cf050868c962bc712b5682b8a0ed04d3dfec3d
treef93c26bcea5b6d19dfff0ae4186f9d9676209987
parentb928ecfbe369d0e41d9f38df794f3b8615e6f13b
drm/amd/pm: restore user customized OD settings properly for NV1x

The customized OD settings can be divided into two parts: those
committed ones and non-committed ones.
  - For those changes which had been fed to SMU before S3/S4/Runpm
    suspend kicked, they are committed changes. They should be properly
    restored and fed to SMU on S3/S4/Runpm resume.
  - For those non-committed changes, they are restored only without feeding
    to SMU.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c