From: Katarzyna Dec <katarzyna.dec@intel.com>
To: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>,
"Lee, Simon B" <simon.b.lee@intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH v5 2/2] tests/core_hot_reload: Accept external workload
Date: Fri, 12 Apr 2019 10:23:22 +0200 [thread overview]
Message-ID: <20190412082322.GA8318@kdec5-desk.ger.corp.intel.com> (raw)
In-Reply-To: <4086297.aZ8hgu1fOM@jkrzyszt-desk.ger.corp.intel.com>
On Wed, Apr 10, 2019 at 11:14:46AM +0200, Janusz Krzysztofik wrote:
> On Tuesday, April 9, 2019 4:56:36 PM CEST Katarzyna Dec wrote:
> > On Tue, Apr 09, 2019 at 01:10:59PM +0200, Janusz Krzysztofik wrote:
> > > From: Janusz Krzysztofik <janusz.krzysztofik@intel.com>
> > >
> > > Run a user specified command, possibly one of existing tests, in
> > > background instead of the default dummy load to put some alternative
> > > workload on a device while trying to either remove (unplug) the device
> > > from its bus, or unbind the device's driver from it, depending on which
> > > subtest has been selected.
> > >
> > > The command selected as the alternative workload should make real use of
> > > the device as much as possible and its execution should take
> > > significantly more than 2 seconds in order to get reliable results from
> > > the test.
> > >
> > > Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@intel.com>
> > > ---
> > >
> > > tests/core_hot_reload.c | 51 +++++++++++++++++++++++++++++++++++++++--
> > > 1 file changed, 49 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/tests/core_hot_reload.c b/tests/core_hot_reload.c
> > > index d862c99c..0d0795dc 100644
> > > --- a/tests/core_hot_reload.c
> > > +++ b/tests/core_hot_reload.c
> > > @@ -33,6 +33,9 @@
> > >
> > > #include <unistd.h>
> > >
> > > +#define OPT_WORKLOAD_CMD 'c'
> > > +
> > > +
> > >
> > > typedef int (*action_t)(int dir);
> > > typedef void (*workload_wait_t)(void *priv);
> > > typedef void (*workload_t)(int device, const void *priv);
> > >
> > > @@ -108,6 +111,16 @@ static void spin_batch(int device, const void *priv)
> > >
> > > igt_spin_batch_free(device, spin);
> > >
> > > }
> > >
> > > +/* Workload using external command */
> >
> > Can you provide examples of such commands?
>
> One particular test I was able to get a kernel panic with while removing the
> device on the fly was:
>
> gem_exec_nop --run-subtest basic-range
>
> Run from my test, it looks like that:
>
> core_hot_reload --run-subtest unplug --workload-cmd "gem_exec_nop --run-
> subtest basic-range"
>
Now I see how it is supposed to work. This example or similar should be at least
a part of commit msg, ideally also reflected in binary. As you see it is not
obvious what kind of workloads we can use.
I saw that you already send v7, please fix that and hopefully we will be able to
have v8 final version.
btw - you can always answer review question or clarify sth on irc :)
Sorry for responding so late.
Kasia :)
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-04-12 8:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-09 11:10 [igt-dev] [PATCH v5 0/2] Add a new test for driver/device hot reload Janusz Krzysztofik
2019-04-09 11:10 ` [igt-dev] [PATCH v5 1/2] tests: " Janusz Krzysztofik
2019-04-09 14:50 ` Katarzyna Dec
2019-04-10 9:03 ` Janusz Krzysztofik
2019-04-09 11:10 ` [igt-dev] [PATCH v5 2/2] tests/core_hot_reload: Accept external workload Janusz Krzysztofik
2019-04-09 14:56 ` Katarzyna Dec
2019-04-10 9:14 ` Janusz Krzysztofik
2019-04-12 8:23 ` Katarzyna Dec [this message]
2019-04-09 11:46 ` [igt-dev] ✗ Fi.CI.BAT: failure for Add a new test for driver/device hot reload 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=20190412082322.GA8318@kdec5-desk.ger.corp.intel.com \
--to=katarzyna.dec@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=janusz.krzysztofik@linux.intel.com \
--cc=petri.latvala@intel.com \
--cc=simon.b.lee@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