]> git.baikalelectronics.ru Git - kernel.git/commit
amdgpu/pm: set pp_dpm_dcefclk to readonly on NAVI10 and newer gpus
authorDarren Powell <darren.powell@amd.com>
Wed, 7 Apr 2021 22:40:34 +0000 (18:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:56:14 +0000 (23:56 -0400)
commit6cf6fc85da03cc95bb479f48d72fc48a2fff9551
treecd725119089ea112aa7a7c4f8f614c00d86d41e7
parent50d9a08ad7c76e13619cc9e50d8997d347761e24
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>
drivers/gpu/drm/amd/pm/amdgpu_pm.c