Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Re-classify some log messages in commit path

ATOMIC and DRIVER log categories do not typically contain per-frame log
messages. This patch re-classifies some messages in amd to chattier
categories to keep ATOMIC/DRIVER quiet.

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sean Paul and committed by
Alex Deucher
9f07550b 8ecad8d6

+7 -6
+3 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
··· 118 118 spin_unlock_irqrestore(&crtc->dev->event_lock, flags); 119 119 120 120 121 - DRM_DEBUG_DRIVER("crtc:%d[%p], pflip_stat:AMDGPU_FLIP_SUBMITTED, work: %p,\n", 122 - amdgpu_crtc->crtc_id, amdgpu_crtc, work); 121 + drm_dbg_vbl(adev_to_drm(adev), 122 + "crtc:%d[%p], pflip_stat:AMDGPU_FLIP_SUBMITTED, work: %p,\n", 123 + amdgpu_crtc->crtc_id, amdgpu_crtc, work); 123 124 124 125 } 125 126
+4 -4
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 9248 9248 &bundle->flip_addrs[planes_count].address, 9249 9249 afb->tmz_surface, false); 9250 9250 9251 - DRM_DEBUG_ATOMIC("plane: id=%d dcc_en=%d\n", 9251 + drm_dbg_state(state->dev, "plane: id=%d dcc_en=%d\n", 9252 9252 new_plane_state->plane->index, 9253 9253 bundle->plane_infos[planes_count].dcc.enable); 9254 9254 ··· 9282 9282 dc_plane, 9283 9283 bundle->flip_addrs[planes_count].flip_timestamp_in_us); 9284 9284 9285 - DRM_DEBUG_ATOMIC("%s Flipping to hi: 0x%x, low: 0x%x\n", 9285 + drm_dbg_state(state->dev, "%s Flipping to hi: 0x%x, low: 0x%x\n", 9286 9286 __func__, 9287 9287 bundle->flip_addrs[planes_count].address.grph.addr.high_part, 9288 9288 bundle->flip_addrs[planes_count].address.grph.addr.low_part); ··· 9624 9624 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); 9625 9625 dm_old_crtc_state = to_dm_crtc_state(old_crtc_state); 9626 9626 9627 - DRM_DEBUG_ATOMIC( 9627 + drm_dbg_state(state->dev, 9628 9628 "amdgpu_crtc id:%d crtc_state_flags: enable:%d, active:%d, " 9629 9629 "planes_changed:%d, mode_changed:%d,active_changed:%d," 9630 9630 "connectors_changed:%d\n", ··· 10328 10328 if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) 10329 10329 goto skip_modeset; 10330 10330 10331 - DRM_DEBUG_ATOMIC( 10331 + drm_dbg_state(state->dev, 10332 10332 "amdgpu_crtc id:%d crtc_state_flags: enable:%d, active:%d, " 10333 10333 "planes_changed:%d, mode_changed:%d,active_changed:%d," 10334 10334 "connectors_changed:%d\n",