On Thu, Dec 19, 2024 at 03:49:28PM +0800, Jun Nie wrote: > Add pipe as trace argument to ease converting pipe into > pipe array later. Isn't it already converted in on of the previous patches? Also you are adding it to a particular trace function, trace_dpu_crtc_setup_mixer(). > > Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 10 +++++----- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > index 72ed8749cd716..6841d0504d450 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > @@ -411,7 +411,7 @@ static void _dpu_crtc_blend_setup_pipe(struct drm_crtc *crtc, > > trace_dpu_crtc_setup_mixer(DRMID(crtc), DRMID(plane), > state, to_dpu_plane_state(state), stage_idx, > - format->pixel_format, > + format->pixel_format, pipe, > modifier); > > DRM_DEBUG_ATOMIC("crtc %d stage:%d - plane %d sspp %d fb %d multirect_idx %d\n", > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > index 5307cbc2007c5..cb24ad2a6d8d3 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > @@ -651,9 +651,9 @@ TRACE_EVENT(dpu_crtc_setup_mixer, > TP_PROTO(uint32_t crtc_id, uint32_t plane_id, > struct drm_plane_state *state, struct dpu_plane_state *pstate, > uint32_t stage_idx, uint32_t pixel_format, > - uint64_t modifier), > + struct dpu_sw_pipe *pipe, uint64_t modifier), > TP_ARGS(crtc_id, plane_id, state, pstate, stage_idx, > - pixel_format, modifier), > + pixel_format, pipe, modifier), > TP_STRUCT__entry( > __field( uint32_t, crtc_id ) > __field( uint32_t, plane_id ) > @@ -676,9 +676,9 @@ TRACE_EVENT(dpu_crtc_setup_mixer, > __entry->dst_rect = drm_plane_state_dest(state); > __entry->stage_idx = stage_idx; > __entry->stage = pstate->stage; > - __entry->sspp = pstate->pipe.sspp->idx; > - __entry->multirect_idx = pstate->pipe.multirect_index; > - __entry->multirect_mode = pstate->pipe.multirect_mode; > + __entry->sspp = pipe->sspp->idx; > + __entry->multirect_idx = pipe->multirect_index; > + __entry->multirect_mode = pipe->multirect_mode; > __entry->pixel_format = pixel_format; > __entry->modifier = modifier; > ), > > -- > 2.34.1 > -- With best wishes Dmitry