From patchwork Thu Oct 12 22:30:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniele Ceraolo Spurio X-Patchwork-Id: 10003051 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 A69DA6028A for ; Thu, 12 Oct 2017 22:31:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9967B28F1B for ; Thu, 12 Oct 2017 22:31:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 981F928F1C; Thu, 12 Oct 2017 22:31:04 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 EE3A628F1E for ; Thu, 12 Oct 2017 22:31:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95ECB6E98E; Thu, 12 Oct 2017 22:31:03 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7EE56E9C8 for ; Thu, 12 Oct 2017 22:31:00 +0000 (UTC) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2017 15:31:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,368,1503385200"; d="scan'208";a="137946056" Received: from relo-linux-1.fm.intel.com ([10.1.27.112]) by orsmga004.jf.intel.com with ESMTP; 12 Oct 2017 15:31:00 -0700 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Thu, 12 Oct 2017 15:30:44 -0700 Message-Id: <1507847444-3593-5-git-send-email-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507847444-3593-1-git-send-email-daniele.ceraolospurio@intel.com> References: <1507847444-3593-1-git-send-email-daniele.ceraolospurio@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 4/4] tests/prime_vgem: drop basic-read/write subtests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP the same coverage is now in gem_pread and gem_pwrite Signed-off-by: Daniele Ceraolo Spurio Cc: Chris Wilson --- tests/prime_vgem.c | 56 ------------------------------------------------------ 1 file changed, 56 deletions(-) diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c index 489e9b6..5fb68fa 100644 --- a/tests/prime_vgem.c +++ b/tests/prime_vgem.c @@ -30,32 +30,6 @@ IGT_TEST_DESCRIPTION("Basic check of polling for prime/vgem fences."); -static void test_read(int vgem, int i915) -{ - struct vgem_bo scratch; - uint32_t handle; - uint32_t *ptr; - int i; - - scratch.width = 1024; - scratch.height = 1024; - scratch.bpp = 32; - handle = vgem_create_and_import(vgem, &scratch, i915, NULL); - - ptr = vgem_mmap(vgem, &scratch, PROT_WRITE); - for (i = 0; i < 1024; i++) - ptr[1024*i] = i; - munmap(ptr, scratch.size); - gem_close(vgem, scratch.handle); - - for (i = 0; i < 1024; i++) { - uint32_t tmp; - gem_read(i915, handle, 4096*i, &tmp, sizeof(tmp)); - igt_assert_eq(tmp, i); - } - gem_close(i915, handle); -} - static void test_fence_read(int i915, int vgem) { struct vgem_bo scratch; @@ -159,30 +133,6 @@ static void test_fence_mmap(int i915, int vgem) close(slave[1]); } -static void test_write(int vgem, int i915) -{ - struct vgem_bo scratch; - uint32_t handle; - uint32_t *ptr; - int i; - - scratch.width = 1024; - scratch.height = 1024; - scratch.bpp = 32; - handle = vgem_create_and_import(vgem, &scratch, i915, NULL); - - ptr = vgem_mmap(vgem, &scratch, PROT_READ); - gem_close(vgem, scratch.handle); - - for (i = 0; i < 1024; i++) - gem_write(i915, handle, 4096*i, &i, sizeof(i)); - gem_close(i915, handle); - - for (i = 0; i < 1024; i++) - igt_assert_eq(ptr[1024*i], i); - munmap(ptr, scratch.size); -} - static void test_gtt(int vgem, int i915) { struct vgem_bo scratch; @@ -742,12 +692,6 @@ igt_main gem_require_mmap_wc(i915); } - igt_subtest("basic-read") - test_read(vgem, i915); - - igt_subtest("basic-write") - test_write(vgem, i915); - igt_subtest("basic-gtt") test_gtt(vgem, i915);