From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org, Nirmoy Das <nirmoy.das@intel.com>
Subject: Re: [PATCH i-g-t] tests/intel/xe_exec_atomic: fix basic-inc-all
Date: Tue, 30 Jan 2024 10:05:13 +0100 [thread overview]
Message-ID: <20240130100513.2d41e922@maurocar-mobl2> (raw)
In-Reply-To: <20240130085738.madss3unpksy2oed@kamilkon-desk.igk.intel.com>
On Tue, 30 Jan 2024 09:57:38 +0100
Kamil Konieczny <kamil.konieczny@linux.intel.com> wrote:
> Hi,
> On 2024-01-29 at 19:54:12 +0100, Kamil Konieczny wrote:
> > Previous test removed skips on unsupported system memory on dGPU
> - ^^^^^^^^^^^^^
> This should be:
>
> Commit af750f5e7 ("tests/intel/xe_exec_atomic: don't test unsupported config")
> removed skip on unsupported system memory on dGPU but did it
> only for basic-dec-all. Fix it for second test basic-inc-all.
> Also while at this, use drm_open_driver and drm_close_driver
> which takes care of xe device get/put.
>
> +cc Mauro
LGTM after change previous test -> commit af750f5e7.
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> >
> > Cc: Nirmoy Das <nirmoy.das@intel.com>
> > Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> > ---
> > tests/intel/xe_exec_atomic.c | 14 +++++---------
> > 1 file changed, 5 insertions(+), 9 deletions(-)
> >
> > diff --git a/tests/intel/xe_exec_atomic.c b/tests/intel/xe_exec_atomic.c
> > index 48c70ec72..d9790da78 100644
> > --- a/tests/intel/xe_exec_atomic.c
> > +++ b/tests/intel/xe_exec_atomic.c
> > @@ -124,10 +124,8 @@ igt_main
> > struct drm_xe_engine_class_instance *hwe;
> > int fd;
> >
> > - igt_fixture {
> > + igt_fixture
> > fd = drm_open_driver(DRIVER_XE);
> > - xe_device_get(fd);
> > - }
> >
> > igt_subtest_with_dynamic("basic-dec-all") {
> > xe_for_each_engine(fd, hwe) {
> > @@ -152,8 +150,8 @@ igt_main
> > uint64_t memreg = all_memory_regions(fd), region;
> >
> > xe_for_each_mem_region(fd, memreg, region) {
> > -
> > - igt_skip_on(!has_atomics(fd, region));
> > + if (!has_atomics(fd, region))
> > + continue;
> >
> > igt_dynamic_f("Engine-%s-Instance-%d-Tile-%d-%s-memory",
> > xe_engine_class_string(hwe->engine_class),
> > @@ -165,8 +163,6 @@ igt_main
> > }
> > }
> >
> > - igt_fixture {
> > - xe_device_put(fd);
> > - close(fd);
> > - }
> > + igt_fixture
> > + drm_close_driver(fd);
> > }
> > --
> > 2.42.0
> >
next prev parent reply other threads:[~2024-01-30 9:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 18:54 [PATCH i-g-t] tests/intel/xe_exec_atomic: fix basic-inc-all Kamil Konieczny
2024-01-29 19:26 ` ✓ CI.xeBAT: success for " Patchwork
2024-01-29 19:40 ` ✓ Fi.CI.BAT: " Patchwork
2024-01-30 2:28 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-01-30 9:01 ` Kamil Konieczny
2024-01-30 8:57 ` [PATCH i-g-t] " Kamil Konieczny
2024-01-30 9:05 ` Mauro Carvalho Chehab [this message]
2024-01-30 9:33 ` Nirmoy Das
2024-02-01 5:31 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-02-01 12:23 ` Kamil Konieczny
2024-02-02 8:37 ` Illipilli, TejasreeX
2024-02-02 8:16 ` ✓ Fi.CI.IGT: success " 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=20240130100513.2d41e922@maurocar-mobl2 \
--to=mauro.chehab@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=nirmoy.das@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