From patchwork Tue May 11 16:51:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthew Auld X-Patchwork-Id: 12251551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17EDAC43462 for ; Tue, 11 May 2021 16:52:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0C3F6134F for ; Tue, 11 May 2021 16:52:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0C3F6134F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AE3FD6EAA8; Tue, 11 May 2021 16:52:03 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 881FB6EA9F; Tue, 11 May 2021 16:51:59 +0000 (UTC) IronPort-SDR: IBlbF/VgdjU6xSdhQGhhSMef02KiXS5pBdG74D11Qu0dnt2W2VymWrKVyQwvGxA6zgd7gX5OmA +RlDQzOktShw== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="199544285" X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="199544285" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 09:51:59 -0700 IronPort-SDR: jOXngmyc/gCNjsp7UIGELDjm+IOTf3TsJflEZYSqDQ452ZfssR1aNZMY2F+9apto20jIk+Kb/4 3qh0Hn1QjAVg== X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="537104910" Received: from rdavies-mobl.ger.corp.intel.com (HELO mwauld-desk1.ger.corp.intel.com) ([10.252.2.133]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 09:51:56 -0700 From: Matthew Auld To: igt-dev@lists.freedesktop.org Date: Tue, 11 May 2021 17:51:17 +0100 Message-Id: <20210511165117.428062-13-matthew.auld@intel.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511165117.428062-1-matthew.auld@intel.com> References: <20210511165117.428062-1-matthew.auld@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 12/12] tests/i915/gem_exec_basic/dg1: Iterate over all memory regions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vanshidhar Konda , thomas.hellstrom@linux.intel.com, Dominik Grzegorzek , Janulgue Abdiel , intel-gfx@lists.freedesktop.org, "Kalamarz, Lukasz" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: "Kalamarz, Lukasz" As a part of local memory effort we need to make sure, that every available memory region is covered. This patch is an attempt for this problem. If it will be accepted it will be replicated on each test that can actually benefit from it. Signed-off-by: Dominik Grzegorzek Signed-off-by: Lukasz Kalamarz Signed-off-by: Vinay Belgaumkar Cc: Janulgue Abdiel Cc: Matthew Auld Cc: Katarzyna Dec Cc: Vanshidhar Konda Cc: Stuart Summers Cc: Zbigniew KempczyƄski --- tests/i915/gem_exec_basic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_basic.c b/tests/i915/gem_exec_basic.c index 8bc4dc52..872b1d3b 100644 --- a/tests/i915/gem_exec_basic.c +++ b/tests/i915/gem_exec_basic.c @@ -56,7 +56,8 @@ igt_main igt_assert(query_info); set = get_memory_region_set(query_info, - I915_SYSTEM_MEMORY); + I915_SYSTEM_MEMORY, + I915_DEVICE_MEMORY); } igt_subtest_with_dynamic("basic") {