From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Mika Kuoppala <mika.kuoppala@linux.intel.com>,
intel-gfx@lists.freedesktop.org,
Ian Romanick <idr@freedesktop.org>,
Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH 7/7] drm/i915: add i915_get_reset_stats_ioctl
Date: Wed, 3 Jul 2013 14:23:23 -0700 [thread overview]
Message-ID: <20130703212323.GC5488@bwidawsk.net> (raw)
In-Reply-To: <20130703151431.GB19383@cantiga.alporthouse.com>
On Wed, Jul 03, 2013 at 04:14:31PM +0100, Chris Wilson wrote:
> On Wed, Jul 03, 2013 at 05:22:12PM +0300, Mika Kuoppala wrote:
> > int i915_max_ioctl = DRM_ARRAY_SIZE(i915_ioctls);
> > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> > index 33cb973..0d4e3a8 100644
> > --- a/drivers/gpu/drm/i915/i915_drv.c
> > +++ b/drivers/gpu/drm/i915/i915_drv.c
> > @@ -1350,3 +1350,37 @@ int i915_reg_read_ioctl(struct drm_device *dev,
> >
> > return 0;
> > }
> > +
> > +int i915_get_reset_stats_ioctl(struct drm_device *dev,
> > + void *data, struct drm_file *file)
> > +{
> > + struct drm_i915_private *dev_priv = dev->dev_private;
> > + struct drm_i915_reset_stats *args = data;
> > + struct i915_ctx_hang_stats *hs;
> > + int ret;
> > +
> > + if (args->ctx_id == 0 && !capable(CAP_SYS_ADMIN))
> > + return -EPERM;
>
> When per-file default contexts land, there will not be any global
> information leak and so we can drop the capability check here.
>
> Ben, will we be informing userspace about the ABI change?
> -Chris
Hmm. I'm not convinced we ever want to reset the default context stats.
>
> --
> Chris Wilson, Intel Open Source Technology Centre
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ben Widawsky, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-07-03 21:23 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 14:22 [PATCH 0/7] Hangcheck and arb robustness Mika Kuoppala
2013-07-03 14:22 ` [PATCH 1/7] drm/i915: Fix retrieval of hangcheck stats Mika Kuoppala
2013-07-03 14:22 ` [PATCH 2/7] drm/i915: Replace open-coding of DEFAULT_CONTEXT_ID Mika Kuoppala
2013-07-03 14:22 ` [PATCH 3/7] drm/i915: introduce i915_queue_hangcheck Mika Kuoppala
2013-07-03 14:22 ` [PATCH 4/7] drm/i915: no hangcheck when reset is in progress Mika Kuoppala
2013-07-16 8:45 ` Daniel Vetter
2013-07-03 14:22 ` [PATCH 5/7] drm/i915: queue hangcheck on reset Mika Kuoppala
2013-07-16 8:49 ` Daniel Vetter
2013-07-16 9:16 ` Chris Wilson
2013-07-03 14:22 ` [PATCH 6/7] drm/i915: add i915_reset_count Mika Kuoppala
2013-07-03 14:22 ` [PATCH 7/7] drm/i915: add i915_get_reset_stats_ioctl Mika Kuoppala
2013-07-03 15:14 ` Chris Wilson
2013-07-03 21:23 ` Ben Widawsky [this message]
2013-07-03 21:41 ` Chris Wilson
2013-07-03 21:44 ` Ben Widawsky
2013-07-03 21:58 ` Daniel Vetter
2013-07-03 22:00 ` Ben Widawsky
2013-07-04 7:54 ` Ville Syrjälä
2013-07-04 16:39 ` Ben Widawsky
2013-10-26 1:42 ` Ian Romanick
2013-10-27 12:30 ` Daniel Vetter
2013-10-29 22:29 ` Ian Romanick
2013-10-30 8:21 ` Daniel Vetter
2013-11-08 5:48 ` Dave Airlie
2013-11-08 6:32 ` Daniel Vetter
2013-11-08 17:21 ` Ian Romanick
2013-11-08 19:00 ` Dave Airlie
2013-11-08 21:20 ` Ian Romanick
2013-11-08 19:22 ` Jesse Barnes
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=20130703212323.GC5488@bwidawsk.net \
--to=ben@bwidawsk.net \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=idr@freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mika.kuoppala@linux.intel.com \
/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