Skip to content

Commit d7b4a60

Browse files
Darren Powellalexdeucher
authored andcommitted
amdgpu/pm: set pp_dpm_dcefclk to readonly on NAVI10 and newer gpus
v2 : change condition to apply to all chips after NAVI10 Writing to dcefclk causes the gpu to become unresponsive, and requires a reboot. Patch prevents user from successfully writing to file pp_dpm_dcefclk on parts NAVI10 and newer, and gives better user feedback that this operation is not allowed. Signed-off-by: Darren Powell <darren.powell@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b117b39 commit d7b4a60

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,14 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
18911891
}
18921892
}
18931893

1894+
if (DEVICE_ATTR_IS(pp_dpm_dcefclk)) {
1895+
/* SMU MP1 does not support dcefclk level setting */
1896+
if (asic_type >= CHIP_NAVI10) {
1897+
dev_attr->attr.mode &= ~S_IWUGO;
1898+
dev_attr->store = NULL;
1899+
}
1900+
}
1901+
18941902
#undef DEVICE_ATTR_IS
18951903

18961904
return 0;

0 commit comments

Comments
 (0)