From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] igt/gen3_*_blits: Add memory requirement checks
Date: Fri, 14 Sep 2018 16:45:21 +0300 [thread overview]
Message-ID: <20180914134521.GE5565@intel.com> (raw)
In-Reply-To: <20180914133538.21428-1-chris@chris-wilson.co.uk>
On Fri, Sep 14, 2018 at 02:35:38PM +0100, Chris Wilson wrote:
> Check we have sufficient memory to run the tests before getting trapped
> in the swap of despair.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107935
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Looks consistent with the igt_info().
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> tests/gen3_mixed_blits.c | 1 +
> tests/gen3_render_linear_blits.c | 1 +
> tests/gen3_render_mixed_blits.c | 1 +
> tests/gen3_render_tiledx_blits.c | 1 +
> tests/gen3_render_tiledy_blits.c | 1 +
> 5 files changed, 5 insertions(+)
>
> diff --git a/tests/gen3_mixed_blits.c b/tests/gen3_mixed_blits.c
> index fa64598a6..948f4e6a7 100644
> --- a/tests/gen3_mixed_blits.c
> +++ b/tests/gen3_mixed_blits.c
> @@ -458,6 +458,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*3);
> tiling = handle + count;
> diff --git a/tests/gen3_render_linear_blits.c b/tests/gen3_render_linear_blits.c
> index a03d7fc06..9d1499a59 100644
> --- a/tests/gen3_render_linear_blits.c
> +++ b/tests/gen3_render_linear_blits.c
> @@ -333,6 +333,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> diff --git a/tests/gen3_render_mixed_blits.c b/tests/gen3_render_mixed_blits.c
> index 2f127d993..afb53a598 100644
> --- a/tests/gen3_render_mixed_blits.c
> +++ b/tests/gen3_render_mixed_blits.c
> @@ -352,6 +352,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*3);
> tiling = handle + count;
> diff --git a/tests/gen3_render_tiledx_blits.c b/tests/gen3_render_tiledx_blits.c
> index 06cdda382..e6246f2b0 100644
> --- a/tests/gen3_render_tiledx_blits.c
> +++ b/tests/gen3_render_tiledx_blits.c
> @@ -339,6 +339,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c
> index 9e4f4b77b..17502ccb7 100644
> --- a/tests/gen3_render_tiledy_blits.c
> +++ b/tests/gen3_render_tiledy_blits.c
> @@ -339,6 +339,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> --
> 2.19.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] igt/gen3_*_blits: Add memory requirement checks
Date: Fri, 14 Sep 2018 16:45:21 +0300 [thread overview]
Message-ID: <20180914134521.GE5565@intel.com> (raw)
In-Reply-To: <20180914133538.21428-1-chris@chris-wilson.co.uk>
On Fri, Sep 14, 2018 at 02:35:38PM +0100, Chris Wilson wrote:
> Check we have sufficient memory to run the tests before getting trapped
> in the swap of despair.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107935
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Looks consistent with the igt_info().
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> tests/gen3_mixed_blits.c | 1 +
> tests/gen3_render_linear_blits.c | 1 +
> tests/gen3_render_mixed_blits.c | 1 +
> tests/gen3_render_tiledx_blits.c | 1 +
> tests/gen3_render_tiledy_blits.c | 1 +
> 5 files changed, 5 insertions(+)
>
> diff --git a/tests/gen3_mixed_blits.c b/tests/gen3_mixed_blits.c
> index fa64598a6..948f4e6a7 100644
> --- a/tests/gen3_mixed_blits.c
> +++ b/tests/gen3_mixed_blits.c
> @@ -458,6 +458,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*3);
> tiling = handle + count;
> diff --git a/tests/gen3_render_linear_blits.c b/tests/gen3_render_linear_blits.c
> index a03d7fc06..9d1499a59 100644
> --- a/tests/gen3_render_linear_blits.c
> +++ b/tests/gen3_render_linear_blits.c
> @@ -333,6 +333,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> diff --git a/tests/gen3_render_mixed_blits.c b/tests/gen3_render_mixed_blits.c
> index 2f127d993..afb53a598 100644
> --- a/tests/gen3_render_mixed_blits.c
> +++ b/tests/gen3_render_mixed_blits.c
> @@ -352,6 +352,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*3);
> tiling = handle + count;
> diff --git a/tests/gen3_render_tiledx_blits.c b/tests/gen3_render_tiledx_blits.c
> index 06cdda382..e6246f2b0 100644
> --- a/tests/gen3_render_tiledx_blits.c
> +++ b/tests/gen3_render_tiledx_blits.c
> @@ -339,6 +339,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c
> index 9e4f4b77b..17502ccb7 100644
> --- a/tests/gen3_render_tiledy_blits.c
> +++ b/tests/gen3_render_tiledy_blits.c
> @@ -339,6 +339,7 @@ int main(int argc, char **argv)
> if (count == 0)
> count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
> igt_info("Using %d 1MiB buffers\n", count);
> + intel_require_memory(count, 1024*1024, CHECK_RAM);
>
> handle = malloc(sizeof(uint32_t)*count*2);
> start_val = handle + count;
> --
> 2.19.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-09-14 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-14 13:35 [igt-dev] [PATCH i-g-t] igt/gen3_*_blits: Add memory requirement checks Chris Wilson
2018-09-14 13:35 ` Chris Wilson
2018-09-14 13:45 ` Ville Syrjälä [this message]
2018-09-14 13:45 ` [igt-dev] " Ville Syrjälä
2018-09-14 15:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-09-14 20:14 ` [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=20180914134521.GE5565@intel.com \
--to=ville.syrjala@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 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.