All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Ch Sai Gowtham <sai.gowtham.ch@intel.com>,
	Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 2/3] tests/gem_shrink: Add allocator support
Date: Thu, 19 Aug 2021 08:22:54 +0200	[thread overview]
Message-ID: <20210819062254.GA3207@zkempczy-mobl2> (raw)
In-Reply-To: <20210819044941.7699-3-zbigniew.kempczynski@intel.com>

On Thu, Aug 19, 2021 at 06:49:40AM +0200, Zbigniew Kempczyński wrote:
> From: Ch Sai Gowtham <sai.gowtham.ch@intel.com>
> 
> Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> ---
>  tests/i915/gem_shrink.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c
> index ae61d0759..729ddd7ec 100644
> --- a/tests/i915/gem_shrink.c
> +++ b/tests/i915/gem_shrink.c
> @@ -369,6 +369,7 @@ static void reclaim(unsigned engine, int timeout)
>  	int debugfs = igt_debugfs_dir(fd);
>  	igt_spin_t *spin;
>  	volatile uint32_t *shared;
> +	uint64_t ahnd = get_reloc_ahnd(fd, 0);
>  
>  	shared = mmap(0, 4096, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
>  	igt_assert(shared != MAP_FAILED);
> @@ -380,9 +381,9 @@ static void reclaim(unsigned engine, int timeout)
>  		} while (!*shared);
>  	}
>  
> -	spin = igt_spin_new(fd, .engine = engine);
> +	spin = igt_spin_new(fd, .ahnd = ahnd, .engine = engine);
>  	igt_until_timeout(timeout) {
> -		igt_spin_t *next = __igt_spin_new(fd, .engine = engine);
> +		igt_spin_t *next = __igt_spin_new(fd, .ahnd = ahnd, .engine = engine);
>  
>  		igt_spin_set_timeout(spin, timeout_100ms);
>  		gem_sync(fd, spin->handle);
> @@ -391,6 +392,7 @@ static void reclaim(unsigned engine, int timeout)
>  		spin = next;
>  	}
>  	igt_spin_free(fd, spin);
> +	put_ahnd(ahnd);
>  
>  	*shared = 1;
>  	igt_waitchildren();
> -- 
> 2.26.0
>

Looks ok,

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>

--
Zbigniew 

  reply	other threads:[~2021-08-19  6:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  4:49 [igt-dev] [PATCH i-g-t 0/3] Adopt to use allocator Zbigniew Kempczyński
2021-08-19  4:49 ` [igt-dev] [PATCH i-g-t 1/3] tests/gem_ctx_shared: " Zbigniew Kempczyński
2021-08-19 21:16   ` Dixit, Ashutosh
2021-08-20  4:46     ` Zbigniew Kempczyński
2021-08-20  5:37       ` Dixit, Ashutosh
2021-08-20  6:27         ` Zbigniew Kempczyński
2021-08-19  4:49 ` [igt-dev] [PATCH i-g-t 2/3] tests/gem_shrink: Add allocator support Zbigniew Kempczyński
2021-08-19  6:22   ` Zbigniew Kempczyński [this message]
2021-08-19  4:49 ` [igt-dev] [PATCH i-g-t 3/3] HAX: remove gttfill for tgl ci Zbigniew Kempczyński
2021-08-19  6:38 ` [igt-dev] ✓ Fi.CI.BAT: success for Adopt to use allocator (rev5) Patchwork
2021-08-19  8:12 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-08-19  8:35   ` Zbigniew Kempczyński
2021-08-19 16:42     ` Vudum, Lakshminarayana
2021-08-19 16:38 ` [igt-dev] ✓ 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=20210819062254.GA3207@zkempczy-mobl2 \
    --to=zbigniew.kempczynski@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sai.gowtham.ch@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.