diff options
| author | Lijo Lazar <[email protected]> | 2024-05-16 08:19:11 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-17 21:40:39 +0000 |
| commit | 83b90b138bc291769d212008d7b6952225a1eba0 (patch) | |
| tree | 1465c97ac09cb88de9bf0f4a43d2b561ae99c222 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | drm/amd/pm: Add support to select pstate policy (diff) | |
| download | kernel-83b90b138bc291769d212008d7b6952225a1eba0.tar.gz kernel-83b90b138bc291769d212008d7b6952225a1eba0.zip | |
drm/amd/pm: Add xgmi plpd policy to pm_policy
Add support to set XGMI PLPD policy levels through 'pm_policy/xgmi_plpd'
sysfs node.
Signed-off-by: Lijo Lazar <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Asad Kamal <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 2aebe5a67b03..4bce339c5dc0 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -2373,9 +2373,11 @@ static ssize_t amdgpu_set_pm_policy_attr(struct device *dev, #define AMDGPU_PM_POLICY_ATTR_VAR(_name) pm_policy_attr_##_name.dev_attr.attr AMDGPU_PM_POLICY_ATTR(soc_pstate, SOC_PSTATE) +AMDGPU_PM_POLICY_ATTR(xgmi_plpd, XGMI_PLPD) static struct attribute *pm_policy_attrs[] = { &AMDGPU_PM_POLICY_ATTR_VAR(soc_pstate), + &AMDGPU_PM_POLICY_ATTR_VAR(xgmi_plpd), NULL }; |
