All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Zanoni <paulo.r.zanoni@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Show FBC worker status in debugfs
Date: Thu, 21 Dec 2017 15:20:50 -0200	[thread overview]
Message-ID: <1513876850.2635.44.camel@intel.com> (raw)
In-Reply-To: <20171220205848.8510-1-chris@chris-wilson.co.uk>

Em Qua, 2017-12-20 às 20:58 +0000, Chris Wilson escreveu:
> Include the pending update from the FBC worker in i915_fbc_status.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> b/drivers/gpu/drm/i915/i915_debugfs.c
> index c4780f085428..931037a458be 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -1581,18 +1581,23 @@ static int i915_frontbuffer_tracking(struct
> seq_file *m, void *unused)
>  static int i915_fbc_status(struct seq_file *m, void *unused)
>  {
>  	struct drm_i915_private *dev_priv = node_to_i915(m-
> >private);
> +	struct intel_fbc *fbc = &dev_priv->fbc;
>  
>  	if (!HAS_FBC(dev_priv))
>  		return -ENODEV;
>  
>  	intel_runtime_pm_get(dev_priv);
> -	mutex_lock(&dev_priv->fbc.lock);
> +	mutex_lock(&fbc->lock);
>  
>  	if (intel_fbc_is_active(dev_priv))
>  		seq_puts(m, "FBC enabled\n");
>  	else
> -		seq_printf(m, "FBC disabled: %s\n",
> -			   dev_priv->fbc.no_fbc_reason);
> +		seq_printf(m, "FBC disabled: %s\n", fbc-
> >no_fbc_reason);
> +
> +	if (fbc->work.scheduled)
> +		seq_printf(m, "FBC worker scheduled on vblank %d, 

vblank %u since this is u32?

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

> now %llu\n",
> +			   fbc->work.scheduled_vblank,
> +			   drm_crtc_vblank_count(&fbc->crtc->base));
>  
>  	if (intel_fbc_is_active(dev_priv)) {
>  		u32 mask;
> @@ -1612,7 +1617,7 @@ static int i915_fbc_status(struct seq_file *m,
> void *unused)
>  		seq_printf(m, "Compressing: %s\n", yesno(mask));
>  	}
>  
> -	mutex_unlock(&dev_priv->fbc.lock);
> +	mutex_unlock(&fbc->lock);
>  	intel_runtime_pm_put(dev_priv);
>  
>  	return 0;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2017-12-21 17:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 20:58 [PATCH] drm/i915: Show FBC worker status in debugfs Chris Wilson
2017-12-20 21:31 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-12-20 22:52 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-12-21 17:20 ` Paulo Zanoni [this message]
2017-12-21 17:36   ` [PATCH] " Chris Wilson

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=1513876850.2635.44.camel@intel.com \
    --to=paulo.r.zanoni@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.