drm/amdgpu/display: make backlight setting failure messages debug
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/display: make backlight setting failure messages debug
Avoid spamming the log. The backlight controller on DCN chips gets powered down when the display is off, so if you attempt to set the backlight level when the display is off, you'll get this message. This isn't a problem as we cache the requested backlight level if it's adjusted when the display is off and set it again during modeset.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -2
@@ -3506,7 +3506,7 @@ static int amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm, rc =dc_link_set_backlight_level_nits (link[i], true, brightness[i],AUX_BL_DEFAULT_TRANSITION_TIME_MS );if (!rc) { -DRM_ERROR ("DM: Failed to update backlight via AUX on eDP[%d]\n" , i); +DRM_DEBUG ("DM: Failed to update backlight via AUX on eDP[%d]\n" , i);break ; } }
@@ -3514,7 +3514,7 @@ static int amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm,for (i =0 ; i < dm->num_of_edps; i++) { rc =dc_link_set_backlight_level (dm->backlight_link[i], brightness[i],0 );if (!rc) { -DRM_ERROR ("DM: Failed to update backlight on eDP[%d]\n" , i); +DRM_DEBUG ("DM: Failed to update backlight on eDP[%d]\n" , i);break ; } }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 10 lines · Alex Deucher
Avoid spamming the log. The backlight controller on DCN chips gets powered down when the display is off, so if you attempt to set the backlight level when the display is off, you'll get this message. This isn't a problem as we cache the requested backlight level if it's adjusted when the display is off and set it again during modeset.
Regards,
Nicholas Kazlauskas
Quoted 19 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -3506,7 +3506,7 @@ static int amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm, rc =dc_link_set_backlight_level_nits (link[i], true, brightness[i],AUX_BL_DEFAULT_TRANSITION_TIME_MS );if (!rc) { -DRM_ERROR ("DM: Failed to update backlight via AUX on eDP[%d]\n" , i); +DRM_DEBUG ("DM: Failed to update backlight via AUX on eDP[%d]\n" , i);break ; } }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm, · line 3520
Quoted 8 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -3514,7 +3514,7 @@ static int amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm,for (i =0 ; i < dm->num_of_edps; i++) { rc =dc_link_set_backlight_level (dm->backlight_link[i], brightness[i],0 );if (!rc) { -DRM_ERROR ("DM: Failed to update backlight on eDP[%d]\n" , i); +DRM_DEBUG ("DM: Failed to update backlight on eDP[%d]\n" , i);break ; } }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx