From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: John Harrison <john.c.harrison@intel.com>
Cc: igt-dev@lists.freedesktop.org,
Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] lib/i915: Fix gem_has_execlists to match description
Date: Fri, 15 Oct 2021 16:39:59 -0700 [thread overview]
Message-ID: <877deddfhs.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <7fee0739-2ef5-f6c7-84fd-e73c9a8085f2@intel.com>
On Fri, 15 Oct 2021 16:42:12 -0700, John Harrison wrote:
>
> On 10/15/2021 16:38, Ashutosh Dixit wrote:
> > Driver is using execlists if it is not using GuC submission.
> > GEM_SUBMISSION_EXECLISTS flag indicates if execlist submission is
> > available, not if it is being used by the driver.
> >
> > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > ---
> > lib/i915/gem_submission.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/lib/i915/gem_submission.c b/lib/i915/gem_submission.c
> > index 2627b802cfb..4312a73bd85 100644
> > --- a/lib/i915/gem_submission.c
> > +++ b/lib/i915/gem_submission.c
> > @@ -153,7 +153,7 @@ bool gem_has_semaphores(int fd)
> > */
> > bool gem_has_execlists(int fd)
> > {
> > - return gem_submission_method(fd) & GEM_SUBMISSION_EXECLISTS;
> > + return !gem_has_guc_submission(fd);
>
> Don't we use ring submission on older platforms?
Hmm, I wasn't aware that there was yet another submission method :/
So execlist submission is only available for gen >= 8 as the code says, in
case anyone knows?
> Isn't the better fix to just not set the EXECLIST flag when GuC
> submission is detected?
Yes, let me post this patch too. Thanks!
next prev parent reply other threads:[~2021-10-15 23:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 23:38 [igt-dev] [PATCH i-g-t] lib/i915: Fix gem_has_execlists to match description Ashutosh Dixit
2021-10-15 23:33 ` Dixit, Ashutosh
2021-10-15 23:42 ` John Harrison
2021-10-15 23:39 ` Dixit, Ashutosh [this message]
2021-10-15 23:57 ` John Harrison
2021-10-18 7:43 ` Tvrtko Ursulin
2021-10-18 22:11 ` Dixit, Ashutosh
2021-10-18 23:40 ` John Harrison
2021-10-19 8:53 ` Tvrtko Ursulin
2021-10-19 18:08 ` John Harrison
2021-10-16 0:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-10-16 5:00 ` [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=877deddfhs.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=tvrtko.ursulin@linux.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