All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/display: make backlight setting failure messages debug
@ 2021-05-21  4:08 Alex Deucher
  2021-05-21 15:42 ` Kazlauskas, Nicholas
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2021-05-21  4:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, harry.wentland, nicholas.choi

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.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: nicholas.choi@amd.com
Cc: harry.wentland@amd.com
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index b8026c1baf36..c1f7456aeaa0 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -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;
 			}
 		}
-- 
2.31.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu/display: make backlight setting failure messages debug
  2021-05-21  4:08 [PATCH] drm/amdgpu/display: make backlight setting failure messages debug Alex Deucher
@ 2021-05-21 15:42 ` Kazlauskas, Nicholas
  0 siblings, 0 replies; 2+ messages in thread
From: Kazlauskas, Nicholas @ 2021-05-21 15:42 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx; +Cc: nicholas.choi, harry.wentland

On 2021-05-21 12:08 a.m., Alex Deucher wrote:
> 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.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> Cc: nicholas.choi@amd.com
> Cc: harry.wentland@amd.com

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>

Regards,
Nicholas Kazlauskas

> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index b8026c1baf36..c1f7456aeaa0 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -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;
>   			}
>   		}
> 

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-21 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21  4:08 [PATCH] drm/amdgpu/display: make backlight setting failure messages debug Alex Deucher
2021-05-21 15:42 ` Kazlauskas, Nicholas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.