]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: make pp_features read-only when scpm is enabled
authorYang Wang <kevinyang.wang@amd.com>
Fri, 12 Jun 2026 02:55:09 +0000 (10:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 16:58:13 +0000 (12:58 -0400)
commit53c78ab388bfc1a4d72e756815d0db0a842c812e
treeb7efb013fcc5cf2af53980444b8cfd7b7a29c392
parent767648c18d7872bbf54481ba846e055f7e1c0213
drm/amd/pm: make pp_features read-only when scpm is enabled

SCPM owns power feature control when enabled.

Make pp_features read-only during sysfs setup by clearing its write bits
and store callback.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 6a5786e191fdce36c5db170e5209cf609e8f0087)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/amdgpu_pm.c