From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 45/48] drm/i915: Dump all ppgtt Date: Wed, 18 Dec 2013 16:26:47 +0100 Message-ID: <20131218152647.GO26371@phenom.ffwll.local> References: <20131206215521.GA6922@bwidawsk.net> <1386367941-7131-1-git-send-email-benjamin.widawsky@intel.com> <1386367941-7131-45-git-send-email-benjamin.widawsky@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 71D9CFD26A for ; Wed, 18 Dec 2013 07:25:54 -0800 (PST) Received: by mail-ea0-f177.google.com with SMTP id n15so3604169ead.22 for ; Wed, 18 Dec 2013 07:25:53 -0800 (PST) Content-Disposition: inline In-Reply-To: <1386367941-7131-45-git-send-email-benjamin.widawsky@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Ben Widawsky Cc: Intel GFX , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Fri, Dec 06, 2013 at 02:11:30PM -0800, Ben Widawsky wrote: > From: Ben Widawsky > > Signed-off-by: Ben Widawsky > > Conflicts: > drivers/gpu/drm/i915/i915_debugfs.c Please take these conflict markers out next time around ... -Daniel > --- > drivers/gpu/drm/i915/i915_debugfs.c | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c > index 6a98b64..7273af0a 100644 > --- a/drivers/gpu/drm/i915/i915_debugfs.c > +++ b/drivers/gpu/drm/i915/i915_debugfs.c > @@ -1657,6 +1657,17 @@ static int i915_swizzle_info(struct seq_file *m, void *data) > return 0; > } > > +static int per_file_ctx(int id, void *ptr, void *data) > +{ > + struct i915_hw_context *ctx = ptr; > + struct seq_file *m = data; > + struct i915_hw_ppgtt *ppgtt = ctx_to_ppgtt(ctx); > + > + ppgtt->debug_dump(ppgtt, m); > + > + return 0; > +} > + > static void gen8_ppgtt_info(struct seq_file *m, struct drm_device *dev) > { > struct drm_i915_private *dev_priv = dev->dev_private; > @@ -1686,6 +1697,7 @@ static void gen6_ppgtt_info(struct seq_file *m, struct drm_device *dev) > { > struct drm_i915_private *dev_priv = dev->dev_private; > struct intel_ring_buffer *ring; > + struct drm_file *file; > int i; > > if (INTEL_INFO(dev)->gen == 6) > @@ -1704,7 +1716,20 @@ static void gen6_ppgtt_info(struct seq_file *m, struct drm_device *dev) > > seq_puts(m, "aliasing PPGTT:\n"); > seq_printf(m, "pd gtt offset: 0x%08x\n", ppgtt->pd_offset); > + > ppgtt->debug_dump(ppgtt, m); > + } else > + return; > + > + list_for_each_entry_reverse(file, &dev->filelist, lhead) { > + struct drm_i915_file_private *file_priv = file->driver_priv; > + struct i915_hw_ppgtt *pvt_ppgtt; > + > + pvt_ppgtt = ctx_to_ppgtt(file_priv->private_default_ctx); > + seq_printf(m, "proc: %s\n", > + get_pid_task(file->pid, PIDTYPE_PID)->comm); > + seq_puts(m, " default context:\n"); > + idr_for_each(&file_priv->context_idr, per_file_ctx, m); > } > seq_printf(m, "ECOCHK: 0x%08x\n", I915_READ(GAM_ECOCHK)); > } > -- > 1.8.4.2 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch