From: Daniel Vetter <daniel@ffwll.ch>
To: Tomas Elf <tomas.elf@intel.com>
Cc: Intel-GFX@Lists.FreeDesktop.Org
Subject: Re: [RFC 03/11] drm/i915: Add reset stats entry point for per-engine reset.
Date: Wed, 17 Jun 2015 13:51:14 +0200 [thread overview]
Message-ID: <20150617115114.GO23637@phenom.ffwll.local> (raw)
In-Reply-To: <558046A6.4030203@intel.com>
On Tue, Jun 16, 2015 at 04:54:14PM +0100, Tomas Elf wrote:
> On 16/06/2015 14:49, Daniel Vetter wrote:
> >On Mon, Jun 08, 2015 at 06:03:21PM +0100, Tomas Elf wrote:
> >>In preparation for per-engine reset add way for setting context reset stats.
> >>
> >>OPEN QUESTIONS:
> >>1. How do we deal with get_reset_stats and the GL robustness interface when
> >>introducing per-engine resets?
> >>
> >> a. Do we set context that cause per-engine resets as guilty? If so, how
> >> does this affect context banning?
> >>
> >> b. Do we extend the publically available reset stats to also contain
> >> per-engine reset statistics? If so, would this break the ABI?
> >>
> >>Signed-off-by: Tomas Elf <tomas.elf@intel.com>
> >>---
> >> drivers/gpu/drm/i915/i915_drv.h | 2 ++
> >> drivers/gpu/drm/i915/i915_gem.c | 14 ++++++++++++++
> >> 2 files changed, 16 insertions(+)
> >>
> >>diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> >>index 47be4a5..ab5dfdc 100644
> >>--- a/drivers/gpu/drm/i915/i915_drv.h
> >>+++ b/drivers/gpu/drm/i915/i915_drv.h
> >>@@ -2781,6 +2781,8 @@ static inline bool i915_stop_ring_allow_warn(struct drm_i915_private *dev_priv)
> >> }
> >>
> >> void i915_gem_reset(struct drm_device *dev);
> >>+void i915_gem_reset_engine(struct drm_i915_private *dev_priv,
> >>+ struct intel_engine_cs *engine);
> >> bool i915_gem_clflush_object(struct drm_i915_gem_object *obj, bool force);
> >> int __must_check i915_gem_object_finish_gpu(struct drm_i915_gem_object *obj);
> >> int __must_check i915_gem_init(struct drm_device *dev);
> >>diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> >>index 8ce363a..4c88e5c 100644
> >>--- a/drivers/gpu/drm/i915/i915_gem.c
> >>+++ b/drivers/gpu/drm/i915/i915_gem.c
> >>@@ -2676,6 +2676,20 @@ void i915_gem_reset(struct drm_device *dev)
> >> i915_gem_restore_fences(dev);
> >> }
> >>
> >>+void i915_gem_reset_engine(struct drm_i915_private *dev_priv,
> >>+ struct intel_engine_cs *engine)
> >>+{
> >>+ u32 completed_seqno;
> >>+ struct drm_i915_gem_request *req;
> >>+
> >>+ completed_seqno = engine->get_seqno(engine, false);
> >>+
> >>+ /* Find pending batch buffers and mark them as such */
> >>+ list_for_each_entry(req, &engine->request_list, list)
> >>+ if (req && (req->seqno > completed_seqno))
> >>+ i915_set_reset_status(dev_priv, req->ctx, false);
> >>+}
> >
> >Please don't add dead code since it makes it impossible to review the
> >patch without peeking ahead. And that makes the split-up useless - the
> >point of splitting patches it to make review easier by presenting
> >logically self-contained small changes, not to evenly spread out changes
> >across a lot of mails.
> >-Daniel
>
> I did actually split this out from the main TDR patch (drm/i915: Adding TDR
> / per-engine reset support for gen8) by mistake. But since this is a RFC
> series, which I thought had the purpose of acting as material for a design
> discussion rather than serving as an actual code submission, I didn't spend
> too much time thinking about splitting the patch series into sensible
> chunks. If that is a problem I would expect people to take issue with the
> fact that e.g. the main TDR patch is a huge, monolithic chunk of code
> spanning more than 2000 lines. Obviously, that will be subdivided sensibly
> at a later stage and the code in this patch mail will be properly associated
> with the calling code.
>
> Is it ok if we leave the patch subdivision discussion to after the initial
> RFC stage or how do these things typically work at this point in the
> process?
No need to resend, was just boilerplate comment from your maintainer.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-17 11:48 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 17:03 [RFC 00/11] TDR/watchdog timeout support for gen8 Tomas Elf
2015-06-08 17:03 ` [RFC 01/11] drm/i915: Early exit from semaphore_waits_for for execlist mode Tomas Elf
2015-06-08 17:36 ` Chris Wilson
2015-06-09 11:02 ` Tomas Elf
2015-06-16 13:44 ` Daniel Vetter
2015-06-16 15:46 ` Tomas Elf
2015-06-16 16:50 ` Chris Wilson
2015-06-16 17:07 ` Tomas Elf
2015-06-17 11:43 ` Daniel Vetter
2015-06-08 17:03 ` [RFC 02/11] drm/i915: Introduce uevent for full GPU reset Tomas Elf
2015-06-16 13:43 ` Daniel Vetter
2015-06-16 15:43 ` Tomas Elf
2015-06-16 16:55 ` Chris Wilson
2015-06-16 17:32 ` Tomas Elf
2015-06-16 19:33 ` Chris Wilson
2015-06-17 11:49 ` Daniel Vetter
2015-06-17 12:51 ` Chris Wilson
2015-06-08 17:03 ` [RFC 03/11] drm/i915: Add reset stats entry point for per-engine reset Tomas Elf
2015-06-08 17:33 ` Chris Wilson
2015-06-09 11:06 ` Tomas Elf
2015-06-16 13:48 ` Daniel Vetter
2015-06-16 13:54 ` Chris Wilson
2015-06-16 15:55 ` Daniel Vetter
2015-06-18 11:12 ` Dave Gordon
2015-06-11 9:14 ` Dave Gordon
2015-06-16 13:49 ` Daniel Vetter
2015-06-16 15:54 ` Tomas Elf
2015-06-17 11:51 ` Daniel Vetter [this message]
2015-06-08 17:03 ` [RFC 04/11] drm/i915: Adding TDR / per-engine reset support for gen8 Tomas Elf
2015-06-08 17:03 ` [RFC 05/11] drm/i915: Extending i915_gem_check_wedge to check engine reset in progress Tomas Elf
2015-06-08 17:24 ` Chris Wilson
2015-06-09 11:08 ` Tomas Elf
2015-06-09 11:11 ` Chris Wilson
2015-06-08 17:03 ` [RFC 06/11] drm/i915: Disable warnings for TDR interruptions in the display driver Tomas Elf
2015-06-08 17:53 ` Chris Wilson
2015-06-08 17:03 ` [RFC 07/11] drm/i915: Reinstate hang recovery work queue Tomas Elf
2015-06-08 17:03 ` [RFC 08/11] drm/i915: Watchdog timeout support for gen8 Tomas Elf
2015-06-08 17:03 ` [RFC 09/11] drm/i915: Fake lost context interrupts through forced CSB check Tomas Elf
2015-06-08 17:03 ` [RFC 10/11] drm/i915: Debugfs interface for per-engine hang recovery Tomas Elf
2015-06-08 17:45 ` Chris Wilson
2015-06-09 11:18 ` Tomas Elf
2015-06-09 12:27 ` Chris Wilson
2015-06-09 17:28 ` Tomas Elf
2015-06-11 9:32 ` Dave Gordon
2015-06-08 17:03 ` [RFC 11/11] drm/i915: TDR/watchdog trace points Tomas Elf
2015-06-23 10:05 ` [RFC 00/11] TDR/watchdog timeout support for gen8 Daniel Vetter
2015-06-23 10:47 ` Tomas Elf
2015-06-23 11:38 ` Daniel Vetter
2015-06-23 14:06 ` Tomas Elf
2015-06-23 15:20 ` Daniel Vetter
2015-06-23 15:35 ` Daniel Vetter
2015-06-25 10:38 ` Tomas Elf
2015-07-03 11:15 ` Mika Kuoppala
2015-07-03 17:41 ` Tomas Elf
2015-07-09 18:47 ` Chris Wilson
2015-07-10 15:24 ` Tomas Elf
2015-07-10 15:48 ` Tomas Elf
2015-07-11 18:15 ` Chris Wilson
2015-07-11 18:22 ` 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=20150617115114.GO23637@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=Intel-GFX@Lists.FreeDesktop.Org \
--cc=tomas.elf@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