public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_sseu: Skip gtt tests if mappable aperture unavailable
Date: Thu, 30 Jan 2020 21:18:37 -0800	[thread overview]
Message-ID: <87k1585hle.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20200131003915.2563-1-antonio.argenziano@intel.com>

On Thu, 30 Jan 2020 16:39:15 -0800, Antonio Argenziano wrote:
>
> The gtt tests try to verify that a gtt mapped area can be used as an
> sseu pointer so it wouldn't make sense to run those when gtt mapping is
> not available.
>
> Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
> ---
>  tests/i915/gem_ctx_sseu.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/i915/gem_ctx_sseu.c b/tests/i915/gem_ctx_sseu.c
> index 38dc584b..8b014b30 100644
> --- a/tests/i915/gem_ctx_sseu.c
> +++ b/tests/i915/gem_ctx_sseu.c
> @@ -374,6 +374,8 @@ test_ggtt_args(int fd)
>	};
>	uint32_t bo;
>
> +	gem_require_mappable_ggtt(fd);
> +
>	bo = gem_create(fd, 4096);
>	arg.value = to_user_pointer(gem_mmap__gtt(fd, bo, 4096,
>						  PROT_READ | PROT_WRITE));
> --
> 2.21.0

Assuming no issues of memory leaks here:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

Otherwise this is better?

diff --git a/tests/i915/gem_ctx_sseu.c b/tests/i915/gem_ctx_sseu.c
index 38dc584bc..2add20c97 100644
--- a/tests/i915/gem_ctx_sseu.c
+++ b/tests/i915/gem_ctx_sseu.c
@@ -528,8 +528,10 @@ igt_main
                igt_subtest("invalid-sseu")
                        test_invalid_sseu(fd);

-               igt_subtest("ggtt-args")
+               igt_subtest("ggtt-args") {
+                       gem_require_mappable_ggtt(fd);
                        test_ggtt_args(fd);
+               }

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

  parent reply	other threads:[~2020-01-31  5:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-31  0:39 [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_sseu: Skip gtt tests if mappable aperture unavailable Antonio Argenziano
2020-01-31  1:20 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2020-01-31  5:18 ` Dixit, Ashutosh [this message]
2020-01-31 17:07   ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano

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=87k1585hle.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=antonio.argenziano@intel.com \
    --cc=igt-dev@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