summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMa Jun <Jun.Ma2@amd.com>2024-04-16 15:35:25 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-04-23 12:08:30 -0400
commite6f1a1946c4d46220b11fce0006264e478cdcbee (patch)
treee3346f6f24e3361d7a78d62418978ae95ed0007a
parent939c4751819b37eb5f2734223db1a00de42c65f4 (diff)
downloadlinux-stable-e6f1a1946c4d46220b11fce0006264e478cdcbee.tar.gz
linux-stable-e6f1a1946c4d46220b11fce0006264e478cdcbee.tar.bz2
linux-stable-e6f1a1946c4d46220b11fce0006264e478cdcbee.zip
drm/amdgpu/pm: Print od status info
Print the od status info if it's not supported. Signed-off-by: Ma Jun <Jun.Ma2@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/pm/amdgpu_pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 569bc6e61b77..c11952a4389b 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -4406,6 +4406,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)
ret = amdgpu_od_set_init(adev);
if (ret)
goto err_out1;
+ } else if (adev->pm.pp_feature & PP_OVERDRIVE_MASK) {
+ dev_info(adev->dev, "overdrive feature is not supported\n");
}
adev->pm.sysfs_initialized = true;