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_ppgtt: Remove defunct test
Date: Mon, 3 Jun 2019 13:51:46 +0100	[thread overview]
Message-ID: <78736c5f-b949-0c53-c191-687297569bce@linux.intel.com> (raw)
In-Reply-To: <20190602085318.25048-1-chris@chris-wilson.co.uk>


On 02/06/2019 09:53, Chris Wilson wrote:
> i915_gem_gtt_info has been removed and so flink-and-exit-vma-leak is
> defunct.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Cc: Matt since he would know he reviewed the corresponding i915 patch.

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

Regards,

Tvrtko

> ---
>   tests/i915/gem_ppgtt.c | 43 ------------------------------------------
>   1 file changed, 43 deletions(-)
> 
> diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
> index b905ea559..0d40a7b78 100644
> --- a/tests/i915/gem_ppgtt.c
> +++ b/tests/i915/gem_ppgtt.c
> @@ -289,46 +289,6 @@ static void flink_and_close(void)
>   	close(fd2);
>   }
>   
> -static void flink_and_exit(void)
> -{
> -	uint32_t fd, fd2, fd3;
> -	uint32_t bo, flinked_bo, name;
> -	char match[20];
> -
> -	fd = drm_open_driver(DRIVER_INTEL);
> -	igt_require(gem_uses_full_ppgtt(fd));
> -
> -	bo = gem_create(fd, 4096);
> -	name = gem_flink(fd, bo);
> -	snprintf(match, sizeof(match), "(name: %u)", name);
> -
> -	fd2 = drm_open_driver(DRIVER_INTEL);
> -	flinked_bo = gem_open(fd2, name);
> -
> -	/* Verify VMA is not there yet. */
> -	igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match));
> -
> -	exec_and_get_offset(fd2, flinked_bo);
> -
> -	/* Verify VMA has been created. */
> -	igt_assert(igt_debugfs_search(fd, "i915_gem_gtt", match));
> -
> -	/* Close the context. */
> -	close(fd2);
> -
> -	/* Execute a different and unrelated (wrt object sharing) context to
> -	 * ensure engine drops its last context reference.
> -	 */
> -	fd3 = drm_open_driver(DRIVER_INTEL);
> -	exec_and_get_offset(fd3, gem_create(fd3, 4096));
> -	close(fd3);
> -
> -	igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE | DROP_IDLE);
> -	igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match));
> -
> -	close(fd);
> -}
> -
>   #define N_CHILD 8
>   igt_main
>   {
> @@ -364,7 +324,4 @@ igt_main
>   
>   	igt_subtest("flink-and-close-vma-leak")
>   		flink_and_close();
> -
> -	igt_subtest("flink-and-exit-vma-leak")
> -		flink_and_exit();
>   }
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2019-06-03 12:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-02  8:53 [igt-dev] [PATCH i-g-t] i915/gem_ppgtt: Remove defunct test Chris Wilson
2019-06-03 10:28 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-06-03 12:51 ` Tvrtko Ursulin [this message]
2019-06-03 13:32 ` [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=78736c5f-b949-0c53-c191-687297569bce@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