public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] i915/gem_exec_big: Only warn for the first sign of a pagefault
Date: Thu, 4 Apr 2019 12:14:19 +0100	[thread overview]
Message-ID: <1a0d17d4-1a8d-9740-e53c-5d72f2bfa57e@linux.intel.com> (raw)
In-Reply-To: <20190328114925.25204-1-chris@chris-wilson.co.uk>


On 28/03/2019 11:49, Chris Wilson wrote:
> We only need the warning once, not for the several thousand relocations
> we try. The current execbuf implementation will set all presumed_offset
> to -1 so this loop should quit on the first entry if we hit the
> pagefault, but for the sake of completeness check all.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110269
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>   tests/i915/gem_exec_big.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/gem_exec_big.c b/tests/i915/gem_exec_big.c
> index 440136ee8..9da90ead6 100644
> --- a/tests/i915/gem_exec_big.c
> +++ b/tests/i915/gem_exec_big.c
> @@ -169,8 +169,10 @@ static void execN(int fd, uint32_t handle, uint64_t batch_size, unsigned flags,
>   	igt_permute_array(gem_reloc, nreloc, xchg_reloc);
>   
>   	gem_execbuf(fd, &execbuf);
> -	for (n = 0; n < nreloc; n++)
> -		igt_warn_on(gem_reloc[n].presumed_offset == -1);
> +	for (n = 0; n < nreloc; n++) {
> +		if (igt_warn_on(gem_reloc[n].presumed_offset == -1))
> +			break;
> +	}
>   
>   	if (use_64bit_relocs) {
>   		for (n = 0; n < nreloc; n++) {
> 

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      parent reply	other threads:[~2019-04-04 11:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-28 11:49 [igt-dev] [PATCH i-g-t] i915/gem_exec_big: Only warn for the first sign of a pagefault Chris Wilson
2019-03-28 12:45 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2019-03-29 16:33 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2019-03-29 19:18 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-04-04 11:14 ` Tvrtko Ursulin [this message]

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=1a0d17d4-1a8d-9740-e53c-5d72f2bfa57e@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /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