public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Don't ban default context when stop_rings!=0
Date: Wed, 5 Mar 2014 14:03:21 +0100	[thread overview]
Message-ID: <20140305130321.GF17001@phenom.ffwll.local> (raw)
In-Reply-To: <87eh2wigu8.fsf@gaia.fi.intel.com>

On Fri, Feb 21, 2014 at 06:13:51PM +0200, Mika Kuoppala wrote:
> Mika Kuoppala <mika.kuoppala@linux.intel.com> writes:
> 
> > ville.syrjala@linux.intel.com writes:
> >
> >> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >>
> >> If we've explicitly stopped the rings for testing purposes, don't ban
> >> the default context. Fixes kms_flip hang tests.
> >>
> >
> > To keep logs clean from 'unnecessary' hang messages we set stop_rings also on
> > all the gem_reset_stats hanging tests. I think this breaks all the ban
> > tests on gem_reset_stats.
> >
> > So we have dig this nice hole, for avoiding dmesg output on cases
> > where dmesg output should be valid and justificed.
> 
> I think the correct solution is to have white lists for dmesg output
> in piglit test runner, so that we can remove this overloading of
> stop_rings.
> 
> Injecting proper hang should output a proper log message and this
> should be testable.

The important part is that tests dont hit a DRM_ERROR, since that will
both upset piglit and also QA's testing infrastructure. Ville's patch
seems to dtrt by using DRM_DEBUG for non-default context banning.

Also with hw contexts and the reset stats stuff we expect some userspace
apps to hang the gpu often (malicious webgl shaders with inifite loops),
so debug level is the right thing anyway - usespace should not be allowed
to spam dmesg.

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

  reply	other threads:[~2014-03-05 13:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 14:26 [PATCH] drm/i915: Don't ban default context when stop_rings!=0 ville.syrjala
2014-02-21 15:52 ` Mika Kuoppala
2014-02-21 16:13   ` Mika Kuoppala
2014-03-05 13:03     ` Daniel Vetter [this message]
2014-02-21 16:30 ` Mika Kuoppala

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=20140305130321.GF17001@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --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