]> www.infradead.org Git - users/hch/block.git/commitdiff
drm/amdgpu/pm: Print od status info
authorMa Jun <Jun.Ma2@amd.com>
Tue, 16 Apr 2024 07:35:25 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2024 16:08:30 +0000 (12:08 -0400)
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>
drivers/gpu/drm/amd/pm/amdgpu_pm.c

index 569bc6e61b77aef31a946960b4e0bd804d6d3cd9..c11952a4389bcbe6488caa5f59bd8103d5212f1c 100644 (file)
@@ -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;