[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAA8EJpp-sRDLWMYHO_m6J=iFQArqiRF143QEj-KzntQXgyc0ow@mail.gmail.com>
Date: Tue, 31 Dec 2024 16:04:22 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Jun Nie <jun.nie@...aro.org>
Cc: Rob Clark <robdclark@...il.com>, Abhinav Kumar <quic_abhinavk@...cinc.com>,
Sean Paul <sean@...rly.run>, Marijn Suijten <marijn.suijten@...ainline.org>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>, linux-arm-msm@...r.kernel.org,
dri-devel@...ts.freedesktop.org, freedreno@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 10/15] drm/msm/dpu: Add pipe as trace argument
On Tue, 31 Dec 2024 at 15:24, Jun Nie <jun.nie@...aro.org> wrote:
>
> Dmitry Baryshkov <dmitry.baryshkov@...aro.org> 于2024年12月20日周五 06:29写道:
>
>
> >
> > 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().
>
> It is converted in this patch. But this patch should be earlier than
> the patch to
> convert pipe into array actually. Will reverse the sequence in next version.
> Yes, I am adding it to a particular trace function. Do you mean I should mention
> the specific function in title?
Mentioning it in the commit message is enough.
>
> >
> > >
> > > Signed-off-by: Jun Nie <jun.nie@...aro.org>
> > > ---
> > > 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
--
With best wishes
Dmitry
Powered by blists - more mailing lists