Skip to contentSkip to conversation

drm/amdgpu/pm: Print od status info

PATCH In review Ma Jun 2 participants 2 messages Apr 17, 2024

Subsystems (3)
lore
Share & tools
lore

Ma Jun

author
#0 lore raw

PATCH 1/1 drm/amdgpu/pm: Print od status info

Print the od status info if it's not supported.

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -0
index 5bc1cd4993e8..a20e03e69d38 100644
@@ -4399,6 +4399,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) {
+		DRM_INFO("overdrive feature is not supported\n");
 	}
 
 	adev->pm.sysfs_initialized = true;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Ma Jun

Print the od status info if it's not supported.

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -0
index 5bc1cd4993e8..a20e03e69d38 100644

drivers/gpu/drm/amd/pm/amdgpu_pm.c int amdgpu_pm_sysfs_init(struct amdgpu_device *adev) · line 4403

Quoted 5 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -0
@@ -4399,6 +4399,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) {
+		DRM_INFO("overdrive feature is not supported\n");

Use dev_info. With that change,

Thanks,
Lijo

Quoted 3 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -0
 	}
 
 	adev->pm.sysfs_initialized = true;