From patchwork Thu Mar 15 14:45:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10284639 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69CA26061F for ; Thu, 15 Mar 2018 14:46:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D23B28AED for ; Thu, 15 Mar 2018 14:46:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5135328AF0; Thu, 15 Mar 2018 14:46:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EF9D828AED for ; Thu, 15 Mar 2018 14:46:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A0986E8D8; Thu, 15 Mar 2018 14:46:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id D50FC6E8C4 for ; Thu, 15 Mar 2018 14:46:16 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id h21so10938836wmd.1 for ; Thu, 15 Mar 2018 07:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=J5vemnJs6y/xT5BtAnzAt5PT9xnvPOx+iA5wo1B+9Bs=; b=TrRWZXdzvEl340eOHcNHRf1jxY/ejhY5SkyV9OS6BWvkNAaM3YIj1d0YVXyhIKqlv8 fABElD11M0F6otT3FvGNNRMkXWCKJh4sOtkfbI2l3j4r2yXRP1plK+mdDWYdDzEFvmKc +bQUSR5fJgptqfmzIGAGMOJDpvwSpREfL8rWnL1n9SId7hap/ZXUxnscvGGZduNhpGhh 9MH+JkMAgzQ3jloY6B+MADi+P3ygImVUFLKe/dFTN07S/0qBUY/3c44/q4wgOiNUOzJc tavIUxaLspy41TobK2p0RjKJnNNTaypyOoDT0810p1+ABMhLFwP/C3FtP9Sba4zDa+nP Au1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=J5vemnJs6y/xT5BtAnzAt5PT9xnvPOx+iA5wo1B+9Bs=; b=iNdzzhaU9C+TYgC2GCO9ZJfK9Rs44MmvGS2FlW5DZtKEBfpkbTOu3bMyklgrZMYScA tnxE1Av8QlvCYuuGfLqJguOah6aMcrz4NyzXZNeoAxnSftkhkl4O3gWNvRqmXicHsKBg ftTyzvtO0oNE2Lb3jQGyf+gDsJ/qGuGGGub5l+JUJJP749PfiP1bIjrtdkvlP1cxQ+H2 eByFJz5kYZJsybcTezj32n0ZUU4sUwhZCHXRx7ak09d0QbUWMj25mgdIV34sTuuVYgTz WUpEDgyoMgRfT28Zl7gDY1sZPDd3iBuAqMC8I32AaUe9W91biDDyXpLUOTn2Gl4U/K8k xrAw== X-Gm-Message-State: AElRT7Fjl//xj3giHqEI/e0qrfH1+20pg6flqwXxGWIH9/ht1WJy5YGh Dv+8k/Zx9qx3MJ8OxYDFb9j4MvY= X-Google-Smtp-Source: AG47ELuG4qH04csF66Nbzz42l9OFpFcIyZxpSvefom7iDCaUakts6Zz3orcffOtLVYHP/kHUoYuvug== X-Received: by 10.28.101.85 with SMTP id z82mr5029759wmb.65.1521125174895; Thu, 15 Mar 2018 07:46:14 -0700 (PDT) Received: from groucho.site (ipbcc0ce2f.dynamic.kabel-deutschland.de. [188.192.206.47]) by smtp.gmail.com with ESMTPSA id m71sm4340486wmd.6.2018.03.15.07.46.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 07:46:14 -0700 (PDT) From: Ulrich Hecht To: intel-gfx@lists.freedesktop.org Date: Thu, 15 Mar 2018 15:45:43 +0100 Message-Id: <1521125144-28614-8-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521125144-28614-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1521125144-28614-1-git-send-email-ulrich.hecht+renesas@gmail.com> Subject: [Intel-gfx] [PATCH igt 7/8] tests/kms_addfb_basic: size_tests(): reduce test buffer size X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-renesas-soc@vger.kernel.org, Ulrich Hecht , laurent.pinchart@ideasonboard.com MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Fixes fails on low-memory devices. Signed-off-by: Ulrich Hecht --- 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); }