drm/amd/pm: init plpd_mode properly for different asics
authorLe Ma <le.ma@amd.com>
Wed, 20 Sep 2023 03:16:39 +0000 (11:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:36:10 +0000 (15:36 -0400)
commit6ec2f5cd45fc6bb45cd8fd6c9f5f8143e774e1e2
tree7d98d769c87d55d3f5e080afdcf21f96e1d9d2af
parent3a41a3982b1e27a6cf7d820aa18a29eabc7daec0
drm/amd/pm: init plpd_mode properly for different asics

Assign DEFAULT mode if it supports plpd, otherwise keeps NONE

v2: reduce ip version checks

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c