From patchwork Mon Oct 2 23:00:17 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: 9981317 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 130F260375 for ; Mon, 2 Oct 2017 23:01:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06E4028A11 for ; Mon, 2 Oct 2017 23:01:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0557F28A12; Mon, 2 Oct 2017 23:01:00 +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 AA4A328A1D for ; Mon, 2 Oct 2017 23:00:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 051376E39F; Mon, 2 Oct 2017 23:00:59 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CDDC6E39F for ; Mon, 2 Oct 2017 23:00:56 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2017 16:00:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.42,471,1500966000"; d="scan'208"; a="1020845767" Received: from relo-linux-1.fm.intel.com ([10.1.27.112]) by orsmga003.jf.intel.com with ESMTP; 02 Oct 2017 16:00:55 -0700 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Mon, 2 Oct 2017 16:00:17 -0700 Message-Id: <1506985218-28880-6-git-send-email-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1506985218-28880-1-git-send-email-daniele.ceraolospurio@intel.com> References: <1506985218-28880-1-git-send-email-daniele.ceraolospurio@intel.com> Subject: [Intel-gfx] [RFC i-g-t 5/6] tests/gem_concurrent_all: drop stolen memory related 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 feature was never merged and there has been no progress in the last year. The tests are currently excluded from compilation with and ifdef. Cc: Chris Wilson Signed-off-by: Daniele Ceraolo Spurio --- tests/gem_concurrent_all.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index 201b491..87f2129 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -170,36 +170,6 @@ static void can_create_private(const struct create *create, unsigned count) } #endif -#if HAVE_CREATE_STOLEN -static drm_intel_bo * -create_stolen_bo(drm_intel_bufmgr *bufmgr, uint64_t size) -{ - drm_intel_bo *bo; - uint32_t handle; - - /* XXX gem_create_with_flags(fd, size, I915_CREATE_STOLEN); */ - - handle = gem_create(fd, size); - bo = gem_handle_to_libdrm_bo(bufmgr, fd, "stolen", handle); - gem_close(fd, handle); - - return bo; -} - -static void can_create_stolen(const struct create *create, unsigned count) -{ - /* XXX check num_buffers against available stolen */ - igt_require(0); -} -#endif - -static void create_cpu_require(const struct create *create, unsigned count) -{ -#if HAVE_CREATE_STOLEN - igt_require(create->create != create_stolen_bo); -#endif -} - static drm_intel_bo * unmapped_create_bo(const struct buffers *b) { @@ -208,7 +178,6 @@ unmapped_create_bo(const struct buffers *b) static void create_snoop_require(const struct create *create, unsigned count) { - create_cpu_require(create, count); igt_require(!gem_has_llc(fd)); } @@ -1727,7 +1696,6 @@ igt_main { .name = "cpu", .create_bo = unmapped_create_bo, - .require = create_cpu_require, .set_bo = cpu_set_bo, .cmp_bo = cpu_cmp_bo, .release_bo = nop_release_bo, @@ -1807,9 +1775,6 @@ igt_main #if HAVE_CREATE_PRIVATE { "private-", can_create_private, create_private_bo}, #endif -#if HAVE_CREATE_STOLEN - { "stolen-", can_create_stolen, create_stolen_bo}, -#endif { NULL, NULL } }; const struct size sizes[] = {