All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: IGT development <igt-dev@lists.freedesktop.org>,
	Petri Latvala <petri.latvala@intel.com>,
	Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [igt-dev] [PATCH v8 1/1 i-g-t] tests: Add a new test for driver/device hot reload
Date: Mon, 13 May 2019 10:30:55 +0200	[thread overview]
Message-ID: <20190513083055.GN17751@phenom.ffwll.local> (raw)
In-Reply-To: <4274261.hrWvC1JWiC@jkrzyszt-desk.ger.corp.intel.com>

On Mon, May 13, 2019 at 08:45:57AM +0200, Janusz Krzysztofik wrote:
> Hi Daniel,
> 
> On Tuesday, May 7, 2019 3:32:10 PM CEST Daniel Vetter wrote:
> > ...
> > Another option would be to first have a more minimal hotunplug test
> > without any busy batches pending, and make sure that works reliable
> > (i.e. no buffer, no context, no nothing, no open fd, absolutely
> > nothing really allocated from userspace). Then extend from there
> > step-by-step, e.g. first just open a drm device fd, then allocate a
> > buffer, then mmap, then maybe try to write to that buffer after
> > unplug, try to do an ioctl after unplug (go through all of them).
> > 
> > Only once you've gone through all the more basic things go to the much
> > more evil stuff like having a batch in-flight, or a kms request
> > in-flight. That way it should be easier to make forward progress on
> > these bugs without risking the world. Plus you can start merging the
> > igt side already, to make sure no one regresses anymore.
> 
> It looks like I might have misunderstood your idea.  Did you mean I should 
> start with a patch that adds only the minimal hotunplug test and nothing more? 
> Then extend it with more advanced subtests one by one consecutively but only 
> when driver issues revealed by those subtests already in place are resolved?

Yes that's the idea, we can't merge testcase that break the driver badly
(because that will result in other tests not being run, which isn't good).

> If that's the case, I should probably submit v10 limited to the minimal test 
> since v9 I submitted last week was not going to be taken under consideration.

I'll look at v9 still for some feedback on all the subtests, but yes need
to split it up and merge as we fix up the kernel side. So always submit
kernel and igt patches, pre-merge test them together (with the Test-with:
tag). Then first merge kernel fixes, then igt, and move on to the next set
of subtests.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-05-13  8:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-30 11:29 [igt-dev] [PATCH v8 0/1 i-g-t] tests: Add a new test for driver/device hot reload Janusz Krzysztofik
2019-04-30 11:29 ` [igt-dev] [PATCH v8 1/1 " Janusz Krzysztofik
2019-04-30 15:05   ` Daniel Vetter
2019-05-06  8:44     ` Janusz Krzysztofik
2019-05-06  9:21       ` Daniel Vetter
2019-05-07  6:24         ` Janusz Krzysztofik
2019-05-07  9:14           ` Daniel Vetter
2019-05-07 10:44             ` Janusz Krzysztofik
2019-05-07 13:32               ` Daniel Vetter
2019-05-13  6:45                 ` Janusz Krzysztofik
2019-05-13  8:30                   ` Daniel Vetter [this message]
2019-04-30 12:19 ` [igt-dev] ✓ Fi.CI.BAT: success for tests: Add a new test for driver/device hot reload (rev2) Patchwork
2019-05-01  0:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

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=20190513083055.GN17751@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=janusz.krzysztofik@linux.intel.com \
    --cc=petri.latvala@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 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.