public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/1] tests/i915/gem_exec_parallel: Set engine map to default context
Date: Fri, 17 Jan 2020 00:15:55 -0800	[thread overview]
Message-ID: <877e1qxzus.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20200117143936.5726-2-sreedhar.telukuntla@intel.com>

On Fri, 17 Jan 2020 06:39:36 -0800, Sreedhar Telukuntla wrote:
>
> All the *-fds tests are using default kernel context for submitting
> the workload to gpu. As CCS0 is not supported in legacy exec flow,
> CCS0-fds is failing with error -22. Set the supported engine map to
> default context to allow the workload submission to CCS engine.
>
> Signed-off-by: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
> ---
>  tests/i915/gem_exec_parallel.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
> index 56b26cf4..31cd33b0 100644
> --- a/tests/i915/gem_exec_parallel.c
> +++ b/tests/i915/gem_exec_parallel.c
> @@ -130,6 +130,8 @@ static void *thread(void *data)
>		execbuf.rsvd1 = gem_context_create(fd);
>		gem_context_set_all_engines(fd, execbuf.rsvd1);
>	}
> +	if (t->gen & FDS)
> +		gem_context_set_all_engines(fd, 0);

Shouldn't this patch be (i.e. also handle the case where FDS is not set):

diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index 56b26cf4d..0c08aefc5 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -83,10 +83,12 @@ static void *thread(void *data)
                pthread_cond_wait(t->cond, t->mutex);
        pthread_mutex_unlock(t->mutex);

-       if (t->flags & FDS)
+       if (t->flags & FDS) {
                fd = drm_open_driver(DRIVER_INTEL);
-       else
+               gem_context_set_all_engines(fd, 0);
+       } else {
                fd = t->fd;
+       }

        i = 0;
        batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0);
@@ -246,6 +248,8 @@ igt_main

        igt_fixture {
                fd = drm_open_driver_master(DRIVER_INTEL);
+               gem_context_set_all_engines(fd, 0);
+
                igt_require_gem(fd);

                igt_fork_hang_detector(fd);
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-01-17  8:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17 14:39 [igt-dev] [PATCH i-g-t 0/1] tests/i915/gem_exec_parallel: Set engine map to default context Sreedhar Telukuntla
2020-01-17  7:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-01-17 14:39 ` [igt-dev] [PATCH i-g-t 1/1] " Sreedhar Telukuntla
2020-01-17  8:15   ` Dixit, Ashutosh [this message]
2020-01-20 11:00 ` [igt-dev] ✗ Fi.CI.IGT: failure for " 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=877e1qxzus.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sreedhar.telukuntla@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