drm/amdgpu/pm: Don't show pp_power_profile_mode for unsupported devices
For ASICs not supporting power profile mode, don't show the attribute. Verify that the function has been implemented by the subsystem. Suggested-by:Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Mario Limonciello <mario.limonciello@amd.com> Reviewed-by:
Lijo Lazar <lijo.lazar@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/pm/amdgpu_pm.c 4 additions, 0 deletionsdrivers/gpu/drm/amd/pm/amdgpu_pm.c
- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c 2 additions, 12 deletionsdrivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c 7 additions, 4 deletionsdrivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
Loading
Please register or sign in to comment