]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: Stop using the DRIVER debugging flag for vblank debugging messages
authorLyude Paul <lyude@redhat.com>
Fri, 24 Jan 2020 01:07:42 +0000 (20:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:35 +0000 (11:52 -0400)
These are some very loud debug statements that get printed on every
vblank when driver level debug printing is enabled in DRM, and doesn't
really tell us anything that isn't related to vblanks. So let's move
this over to the proper debug flag to be a little less spammy with our
debug output.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 4ce3f6140c12e17f3c8bb43018fe4e19ce53b0ab..40f9da1f3e327da45438ce6bfa8a35279e393d3a 100644 (file)
@@ -410,8 +410,9 @@ static void dm_vupdate_high_irq(void *interrupt_params)
        if (acrtc) {
                acrtc_state = to_dm_crtc_state(acrtc->base.state);
 
-               DRM_DEBUG_DRIVER("crtc:%d, vupdate-vrr:%d\n", acrtc->crtc_id,
-                                amdgpu_dm_vrr_active(acrtc_state));
+               DRM_DEBUG_VBL("crtc:%d, vupdate-vrr:%d\n",
+                             acrtc->crtc_id,
+                             amdgpu_dm_vrr_active(acrtc_state));
 
                /* Core vblank handling is done here after end of front-porch in
                 * vrr mode, as vblank timestamping will give valid results
@@ -461,8 +462,9 @@ static void dm_crtc_high_irq(void *interrupt_params)
        if (acrtc) {
                acrtc_state = to_dm_crtc_state(acrtc->base.state);
 
-               DRM_DEBUG_DRIVER("crtc:%d, vupdate-vrr:%d\n", acrtc->crtc_id,
-                                amdgpu_dm_vrr_active(acrtc_state));
+               DRM_DEBUG_VBL("crtc:%d, vupdate-vrr:%d\n",
+                             acrtc->crtc_id,
+                             amdgpu_dm_vrr_active(acrtc_state));
 
                /* Core vblank handling at start of front-porch is only possible
                 * in non-vrr mode, as only there vblank timestamping will give
@@ -525,8 +527,8 @@ static void dm_dcn_crtc_high_irq(void *interrupt_params)
 
        acrtc_state = to_dm_crtc_state(acrtc->base.state);
 
-       DRM_DEBUG_DRIVER("crtc:%d, vupdate-vrr:%d\n", acrtc->crtc_id,
-                               amdgpu_dm_vrr_active(acrtc_state));
+       DRM_DEBUG_VBL("crtc:%d, vupdate-vrr:%d\n", acrtc->crtc_id,
+                     amdgpu_dm_vrr_active(acrtc_state));
 
        amdgpu_dm_crtc_handle_crc_irq(&acrtc->base);
        drm_crtc_handle_vblank(&acrtc->base);