All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: remove the i915_batchbuffer_info debugfs file
Date: Wed, 30 Nov 2011 04:04:23 +0000	[thread overview]
Message-ID: <20111130040423.GB7069@cloud01> (raw)
In-Reply-To: <1322608665-4216-1-git-send-email-daniel.vetter@ffwll.ch>

On Wed, Nov 30, 2011 at 12:17:45AM +0100, Daniel Vetter wrote:
> With the error_state facility in place, this has outlived it's
> usefulness. It also oopses with the lates llc-reloc patches because
> it directly access objects through the gtt without any checks.
> 
> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c |   40 -----------------------------------
>  1 files changed, 0 insertions(+), 40 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index 919f072..84c7295 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -562,45 +562,6 @@ static int i915_hws_info(struct seq_file *m, void *data)
>  	return 0;
>  }
>  
> -static void i915_dump_object(struct seq_file *m,
> -			     struct io_mapping *mapping,
> -			     struct drm_i915_gem_object *obj)
> -{
> -	int page, page_count, i;
> -
> -	page_count = obj->base.size / PAGE_SIZE;
> -	for (page = 0; page < page_count; page++) {
> -		u32 *mem = io_mapping_map_wc(mapping,
> -					     obj->gtt_offset + page * PAGE_SIZE);
> -		for (i = 0; i < PAGE_SIZE; i += 4)
> -			seq_printf(m, "%08x :  %08x\n", i, mem[i / 4]);
> -		io_mapping_unmap(mem);
> -	}
> -}

For some time I've wanted to turn this into a generic bo dumping debugfs entry.
I'd be sorry to see it go, but we can always resurrect it later.

The rest I don't care about.

> -
> -static int i915_batchbuffer_info(struct seq_file *m, void *data)
> -{
> -	struct drm_info_node *node = (struct drm_info_node *) m->private;
> -	struct drm_device *dev = node->minor->dev;
> -	drm_i915_private_t *dev_priv = dev->dev_private;
> -	struct drm_i915_gem_object *obj;
> -	int ret;
> -
> -	ret = mutex_lock_interruptible(&dev->struct_mutex);
> -	if (ret)
> -		return ret;
> -
> -	list_for_each_entry(obj, &dev_priv->mm.active_list, mm_list) {
> -		if (obj->base.read_domains & I915_GEM_DOMAIN_COMMAND) {
> -		    seq_printf(m, "--- gtt_offset = 0x%08x\n", obj->gtt_offset);
> -		    i915_dump_object(m, dev_priv->mm.gtt_mapping, obj);
> -		}
> -	}
> -
> -	mutex_unlock(&dev->struct_mutex);
> -	return 0;
> -}
> -
>  static int i915_ringbuffer_data(struct seq_file *m, void *data)
>  {
>  	struct drm_info_node *node = (struct drm_info_node *) m->private;
> @@ -1823,7 +1784,6 @@ static struct drm_info_list i915_debugfs_list[] = {
>  	{"i915_bsd_ringbuffer_info", i915_ringbuffer_info, 0, (void *)VCS},
>  	{"i915_blt_ringbuffer_data", i915_ringbuffer_data, 0, (void *)BCS},
>  	{"i915_blt_ringbuffer_info", i915_ringbuffer_info, 0, (void *)BCS},
> -	{"i915_batchbuffers", i915_batchbuffer_info, 0},
>  	{"i915_error_state", i915_error_state, 0},
>  	{"i915_rstdby_delays", i915_rstdby_delays, 0},
>  	{"i915_cur_delayinfo", i915_cur_delayinfo, 0},
> -- 
> 1.7.6.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2011-11-30  4:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-29 23:17 [PATCH] drm/i915: remove the i915_batchbuffer_info debugfs file Daniel Vetter
2011-11-29 23:58 ` Chris Wilson
2011-11-30  0:15 ` Eugeni Dodonov
2011-11-30  4:04 ` Ben Widawsky [this message]

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=20111130040423.GB7069@cloud01 \
    --to=ben@bwidawsk.net \
    --cc=daniel.vetter@ffwll.ch \
    --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.