public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel.vetter@ffwll.ch>,
	Chris Wilson <chris@chris-wilson.co.uk>,
	Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [PATCH] drm/i915: Add module param to test the load detect code
Date: Tue, 03 Mar 2015 16:27:47 -0800	[thread overview]
Message-ID: <54F65183.1040602@virtuousgeek.org> (raw)
In-Reply-To: <CAKMK7uG1HnXnnJtcT9n1-f_LuOnz+93DHaTc7_hGuFD7DTkg8A@mail.gmail.com>

On 03/03/2015 04:06 PM, Daniel Vetter wrote:
> On Tue, Mar 3, 2015 at 10:15 PM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>> On Tue, Mar 03, 2015 at 11:23:53AM -0800, Jesse Barnes wrote:
>>> On 03/03/2015 09:03 AM, Daniel Vetter wrote:
>>>> This is useful for writing igts to make sure we don't break this,
>>>> without being forced to own a one of these dinosaurs.
>>>>
>>>> Suggested-by: Jesse Barnes <jbarnes@virtuousgeek.org>
>>>> Cc: Matt Roper <matthew.d.roper@intel.com>
>>>> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
>>>> ---
>>>>  drivers/gpu/drm/i915/i915_drv.h    | 1 +
>>>>  drivers/gpu/drm/i915/i915_params.c | 8 +++++++-
>>>>  drivers/gpu/drm/i915/intel_crt.c   | 6 ++++--
>>>>  3 files changed, 12 insertions(+), 3 deletions(-)
>>>
>>> See below for comments.
>>>
>>> I think there's probably even more room for testing like this.  E.g. the
>>> tiled swapping test could be done this way rather than trying to force
>>> swapping.  Some of the races we try to induce could probably also be
>>> done this way with code in the kernel to trigger the case we're worried
>>> about...
>>
>> I am not wholly convinced. The primary purpose of the test suite is
>> prevent bugs of tomorrow, not to chase bugs of yesterday. If we focus too
>> much on bugs we have fixed, I worry we won't serendipitously detect bugs
>> early. Yes, bugs cluster and a mistake once made is likely to be made
>> again (so regression testing is vital) but I think we cross a line if
>> igt only exercises code written for conformance testing.
> 
> Also swapping tests are a solved problem really, we've had an "mlock
> most of mem" todo since years and Thomas Wood is implementing it. Well
> it's committed for gem_tiled_swapping already
> 
> commit 42b02c284ed24871528df8f1b3eaad7fe1554fd9
> Author: Thomas Wood <thomas.wood@intel.com>
> Date:   Mon Dec 8 11:12:51 2014 +0000
> 
>     lib: add a function to lock memory into RAM
> 
> what's missing is rolling this out for other tests.
> 
> Now I love igt bashing as much as the next person, but maybe check
> occasionally whether your rant-du-jour is still relevant ...

My "rant du jour" still is.  mlock() is a good solution for some things,
but for the simple task of testing kernel swap out code, just running
that code is the most straightforward thing to do, rather than trying to
contort into it from userspace.

Jesse

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-03-04  0:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 17:03 [PATCH] drm/i915: Add module param to test the load detect code Daniel Vetter
2015-03-03 19:23 ` Jesse Barnes
2015-03-03 21:15   ` Chris Wilson
2015-03-04  0:06     ` Daniel Vetter
2015-03-04  0:27       ` Jesse Barnes [this message]
2015-03-04  8:56         ` Chris Wilson
2015-03-04 16:09           ` Jesse Barnes
2015-03-04 16:09         ` Daniel Vetter
2015-03-04 14:29 ` shuang.he
2015-03-27  9:57 ` Ander Conselvan De Oliveira

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=54F65183.1040602@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox