]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: adjust the visibility of pp_table sysfs node
authorYang Wang <kevinyang.wang@amd.com>
Thu, 30 Oct 2025 01:06:22 +0000 (09:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Nov 2025 17:36:12 +0000 (12:36 -0500)
commit5de8ce0f3709ad93ca5a579aa45cf1b52d72bc90
tree35e8b80de02a515c220724b978df1fcd656634b3
parent66a50fa49db53cf2b1894d4cd7c1b5b522276706
drm/amd/pm: adjust the visibility of pp_table sysfs node

v1:
- make pp_table invisible on VF mode (only valid on BM)
- make pp_table invisible on Mi* chips (Not supported)
- make pp_table invisible if scpm feature is enabled.

v2:
move pp_table invisible code logic into amdgpu_dpm_get_pp_table() function.

v3:
add table buffer pointer check both on powerplay & swsmu.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c