linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Abhinav Kumar <abhinavk@codeaurora.org>
To: Sean Paul <sean@poorly.run>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Sean Paul <seanpaul@chromium.org>,
	freedreno@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/msm: dpu: Add extra_flush_bits to trigger_flush trace
Date: Wed, 19 Sep 2018 13:01:34 -0700	[thread overview]
Message-ID: <fcd620f7ae513b8083c7fc8bd68cabe0@codeaurora.org> (raw)
In-Reply-To: <20180919183426.200909-2-sean@poorly.run>

On 2018-09-19 11:33, Sean Paul wrote:
> From: Sean Paul <seanpaul@chromium.org>
> 
> It's useful to know which bits of the flush come from 
> "extra_flush_bits"
> 
> Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
> ---
>  drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c |  3 ++-
>  drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h   | 14 +++++++++-----
>  2 files changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
> index e56f29190121..8f6880db5c99 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
> @@ -1444,7 +1444,8 @@ static inline void
> _dpu_encoder_trigger_flush(struct drm_encoder *drm_enc,
>  		ret = ctl->ops.get_pending_flush(ctl);
> 
>  	trace_dpu_enc_trigger_flush(DRMID(drm_enc), phys->intf_idx,
> -				    pending_kickoff_cnt, ctl->idx, ret);
> +				    pending_kickoff_cnt, ctl->idx,
> +				    extra_flush_bits, ret);
>  }
> 
>  /**
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h
> index 0be51db02f2e..ae6b0c51ba52 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h
> @@ -468,14 +468,16 @@ TRACE_EVENT(dpu_enc_frame_done_cb,
> 
>  TRACE_EVENT(dpu_enc_trigger_flush,
>  	TP_PROTO(uint32_t drm_id, enum dpu_intf intf_idx,
> -		 int pending_kickoff_cnt, int ctl_idx, u32 pending_flush_ret),
> +		 int pending_kickoff_cnt, int ctl_idx, u32 extra_flush_bits,
> +		 u32 pending_flush_ret),
>  	TP_ARGS(drm_id, intf_idx, pending_kickoff_cnt, ctl_idx,
> -		pending_flush_ret),
> +		extra_flush_bits, pending_flush_ret),
>  	TP_STRUCT__entry(
>  		__field(	uint32_t,	drm_id			)
>  		__field(	enum dpu_intf,	intf_idx		)
>  		__field(	int,		pending_kickoff_cnt	)
>  		__field(	int,		ctl_idx			)
> +		__field(	u32,		extra_flush_bits	)
>  		__field(	u32,		pending_flush_ret	)
>  	),
>  	TP_fast_assign(
> @@ -483,12 +485,14 @@ TRACE_EVENT(dpu_enc_trigger_flush,
>  		__entry->intf_idx = intf_idx;
>  		__entry->pending_kickoff_cnt = pending_kickoff_cnt;
>  		__entry->ctl_idx = ctl_idx;
> +		__entry->extra_flush_bits = extra_flush_bits;
>  		__entry->pending_flush_ret = pending_flush_ret;
>  	),
>  	TP_printk("id=%u, intf_idx=%d, pending_kickoff_cnt=%d ctl_idx=%d "
> -		  "pending_flush_ret=%u", __entry->drm_id,
> -		  __entry->intf_idx, __entry->pending_kickoff_cnt,
> -		  __entry->ctl_idx, __entry->pending_flush_ret)
> +		  "extra_flush_bits=0x%x pending_flush_ret=0x%x",
> +		  __entry->drm_id, __entry->intf_idx,
> +		  __entry->pending_kickoff_cnt, __entry->ctl_idx,
> +		  __entry->extra_flush_bits, __entry->pending_flush_ret)
>  );
> 
>  DECLARE_EVENT_CLASS(dpu_enc_ktime_template,
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-09-19 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19 18:33 [PATCH 1/3] drm/msm: dpu: Clear frame_busy_mask bit after trace Sean Paul
     [not found] ` <20180919183426.200909-1-sean-p7yTbzM4H96eqtR555YLDQ@public.gmane.org>
2018-09-19 18:33   ` [PATCH 2/3] drm/msm: dpu: Add extra_flush_bits to trigger_flush trace Sean Paul
2018-09-19 20:01     ` Abhinav Kumar [this message]
2018-09-19 18:33   ` [PATCH 3/3] drm/msm: dpu: Don't store/deref pointers in trace ringbuffer Sean Paul
     [not found]     ` <20180919183426.200909-3-sean-p7yTbzM4H96eqtR555YLDQ@public.gmane.org>
2018-09-19 20:04       ` Abhinav Kumar
     [not found]         ` <84074f78534e74d92f1912846a4c570b-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2018-09-19 20:53           ` Sean Paul
2018-09-19 20:01 ` [PATCH 1/3] drm/msm: dpu: Clear frame_busy_mask bit after trace Abhinav Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fcd620f7ae513b8083c7fc8bd68cabe0@codeaurora.org \
    --to=abhinavk@codeaurora.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=sean@poorly.run \
    --cc=seanpaul@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).