From: Daniel Vetter <daniel@ffwll.ch>
To: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Cc: intel-gfx@lists.freedesktop.org,
linux-renesas-soc@vger.kernel.org,
laurent.pinchart@ideasonboard.com
Subject: Re: [Intel-gfx] [PATCH igt 7/8] tests/kms_addfb_basic: size_tests(): reduce test buffer size
Date: Fri, 16 Mar 2018 09:53:57 +0100 [thread overview]
Message-ID: <20180316085357.GF14155@phenom.ffwll.local> (raw)
In-Reply-To: <1521125144-28614-8-git-send-email-ulrich.hecht+renesas@gmail.com>
On Thu, Mar 15, 2018 at 03:45:43PM +0100, Ulrich Hecht wrote:
> Fixes fails on low-memory devices.
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
That's really low memory ... how low are we talking about here? Even 15
year old intel integrated gpus can do 4M buffers (just barely).
Just want to make sure we're not missing anything here, patch itself looks
ok.
-Daniel
> ---
> tests/kms_addfb_basic.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c
> index cf9ba37..d1da718 100644
> --- a/tests/kms_addfb_basic.c
> +++ b/tests/kms_addfb_basic.c
> @@ -238,26 +238,26 @@ static void size_tests(int fd)
> struct drm_mode_fb_cmd2 f_16 = {};
> struct drm_mode_fb_cmd2 f_8 = {};
>
> - f.width = 1024;
> - f.height = 1024;
> + f.width = 512;
> + f.height = 512;
> f.pixel_format = DRM_FORMAT_XRGB8888;
> - f.pitches[0] = 1024*4;
> + f.pitches[0] = 512*4;
>
> - f_16.width = 1024;
> - f_16.height = 1024*2;
> + f_16.width = 512;
> + f_16.height = 512*2;
> f_16.pixel_format = DRM_FORMAT_RGB565;
> - f_16.pitches[0] = 1024*2;
> + f_16.pitches[0] = 512*2;
>
> - f_8.width = 1024*2;
> - f_8.height = 1024*2;
> + f_8.width = 512*2;
> + f_8.height = 512*2;
> f_8.pixel_format = DRM_FORMAT_C8;
> - f_8.pitches[0] = 1024*2;
> + f_8.pitches[0] = 512*2;
>
> igt_fixture {
> - gem_bo = igt_create_bo_with_dimensions(fd, 1024, 1024,
> + gem_bo = igt_create_bo_with_dimensions(fd, 512, 512,
> DRM_FORMAT_XRGB8888, 0, 0, NULL, NULL, NULL);
> igt_assert(gem_bo);
> - gem_bo_small = igt_create_bo_with_dimensions(fd, 1024, 1023,
> + gem_bo_small = igt_create_bo_with_dimensions(fd, 512, 511,
> DRM_FORMAT_XRGB8888, 0, 0, NULL, NULL, NULL);
> igt_assert(gem_bo_small);
> }
> @@ -311,7 +311,7 @@ static void size_tests(int fd)
> }
>
> /* Just to check that the parameters would work. */
> - f.height = 1020;
> + f.height = 510;
> igt_subtest("small-bo") {
> igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == 0);
> igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id) == 0);
> @@ -320,7 +320,7 @@ static void size_tests(int fd)
>
> igt_subtest("bo-too-small-due-to-tiling") {
> igt_require(is_i915_device(fd));
> - gem_set_tiling(fd, gem_bo_small, I915_TILING_X, 1024*4);
> + gem_set_tiling(fd, gem_bo_small, I915_TILING_X, 512*4);
> igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == -1 &&
> errno == EINVAL);
> }
> --
> 2.7.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
next prev parent reply other threads:[~2018-03-16 8:54 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 14:45 [PATCH igt 0/8] Non-Intel test suite fixes Ulrich Hecht
2018-03-15 14:45 ` [PATCH igt 1/8] tests/kms_addfb_basic: skip i915-specific tests on other platforms Ulrich Hecht
2018-03-16 8:51 ` [Intel-gfx] " Daniel Vetter
2018-03-20 11:24 ` Laurent Pinchart
2018-03-15 14:45 ` [PATCH igt 2/8] tests/kms_panel_fitting: check for i915 before checking version Ulrich Hecht
2018-03-16 8:51 ` [Intel-gfx] " Daniel Vetter
2018-03-20 11:24 ` Laurent Pinchart
2018-03-21 8:34 ` [Intel-gfx] " Daniel Vetter
2018-03-21 8:52 ` Laurent Pinchart
2018-03-27 6:41 ` Daniel Vetter
2018-03-15 14:45 ` [PATCH igt 3/8] lib/igt_gt: has_gpu_reset(): fix failed assertion on non-i915 platforms Ulrich Hecht
2018-03-15 17:28 ` [Intel-gfx] " Ville Syrjälä
2018-03-16 8:46 ` Daniel Vetter
2018-03-15 14:45 ` [PATCH igt 4/8] lib/igt_gt: check for presence of GPU reset before using it Ulrich Hecht
2018-03-15 14:45 ` [PATCH igt 5/8] tests/kms_plane_lowres: skip i915-specific tests on other platforms Ulrich Hecht
2018-03-15 17:33 ` [Intel-gfx] " Ville Syrjälä
2018-03-15 14:45 ` [PATCH igt 6/8] lib/igt_pm: turn absence of autosuspend_delay_ms from fail to skip Ulrich Hecht
2018-03-15 17:43 ` [Intel-gfx] " Ville Syrjälä
2018-03-15 14:45 ` [PATCH igt 7/8] tests/kms_addfb_basic: size_tests(): reduce test buffer size Ulrich Hecht
2018-03-16 8:53 ` Daniel Vetter [this message]
2018-03-15 14:45 ` [PATCH igt 8/8] test/kms_addfb_basic: tolerate absence of 8-bit format Ulrich Hecht
2018-03-16 8:49 ` [Intel-gfx] " Daniel Vetter
2018-03-16 8:55 ` [Intel-gfx] [PATCH igt 0/8] Non-Intel test suite fixes Daniel Vetter
2018-03-19 16:41 ` Ulrich Hecht
2018-03-20 11:32 ` Laurent Pinchart
2018-03-21 8:37 ` Daniel Vetter
2018-04-27 16:03 ` Laurent Pinchart
2018-05-08 16:03 ` Ulrich Hecht
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=20180316085357.GF14155@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=ulrich.hecht+renesas@gmail.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