Igt-dev Archive on lore.kernel.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, Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [igt-dev] [PATCH igt] igt/gem_ppgtt: Flush the driver to idle before counting leaks
Date: Thu, 19 Apr 2018 15:57:58 +0100	[thread overview]
Message-ID: <b08889e5-ad4c-aa68-751b-41f9d14fe60a@linux.intel.com> (raw)
In-Reply-To: <20180419054850.15338-1-chris@chris-wilson.co.uk>


On 19/04/2018 06:48, Chris Wilson wrote:
> I have a cunning plan to make the vma open/close lazy to cache frequent
> reallocations (as buffers are passed between applications, e.g. DRI).
> However, this will mean that we will not be immediately closing vma and
> so need to tell the kernel to process the idle handlers before checking
> for leaks.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> ---
>   tests/gem_ppgtt.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/gem_ppgtt.c b/tests/gem_ppgtt.c
> index bed95db83..575b0e9d3 100644
> --- a/tests/gem_ppgtt.c
> +++ b/tests/gem_ppgtt.c
> @@ -236,7 +236,7 @@ static void flink_and_close(void)
>   	gem_sync(fd2, flinked_bo);
>   	gem_close(fd2, flinked_bo);
>   
> -	igt_drop_caches_set(fd, DROP_RETIRE);
> +	igt_drop_caches_set(fd, DROP_RETIRE | DROP_IDLE);
>   
>   	/* the flinked bo VMA should have been cleared now, so a new bo of the
>   	 * same size should get the same offset
> @@ -286,7 +286,7 @@ static void flink_and_exit(void)
>   	exec_and_get_offset(fd3, gem_create(fd3, 4096));
>   	close(fd3);
>   
> -	igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE);
> +	igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE | DROP_IDLE);
>   	igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match));
>   
>   	close(fd);
> 

It's not interfering with test intentions so:

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:[~2018-04-19 14:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19  5:48 [igt-dev] [PATCH igt] igt/gem_ppgtt: Flush the driver to idle before counting leaks Chris Wilson
2018-04-19 13:51 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-04-19 14:57 ` Tvrtko Ursulin [this message]
2018-04-19 19:20 ` [igt-dev] ✓ Fi.CI.IGT: " 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=b08889e5-ad4c-aa68-751b-41f9d14fe60a@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 \
    --cc=tvrtko.ursulin@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