From patchwork Tue Jan 26 17:40:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Feceoru, Gabriel" X-Patchwork-Id: 8125461 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AFB969F859 for ; Tue, 26 Jan 2016 17:34:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F2401201E4 for ; Tue, 26 Jan 2016 17:34:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D642D20131 for ; Tue, 26 Jan 2016 17:34:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C29D46E26B; Tue, 26 Jan 2016 09:34:48 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id F21256E26B for ; Tue, 26 Jan 2016 09:34:46 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 26 Jan 2016 09:34:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,350,1449561600"; d="scan'208";a="641731048" Received: from gfeceoru-ms-7924.rb.intel.com ([10.237.105.52]) by FMSMGA003.fm.intel.com with ESMTP; 26 Jan 2016 09:34:45 -0800 From: Gabriel Feceoru To: intel-gfx@lists.freedesktop.org Date: Tue, 26 Jan 2016 19:40:58 +0200 Message-Id: <1453830058-2513-1-git-send-email-gabriel.feceoru@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [Intel-gfx] [PATCH i-g-t] igt/gem_ringfill: Allow listing subtests in gem_ringfill 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Moved gem_quiescent_gpu() call to the run path. Signed-off-by: Gabriel Feceoru --- tests/gem_ringfill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c index 407b747..2e8c7c1 100644 --- a/tests/gem_ringfill.c +++ b/tests/gem_ringfill.c @@ -99,6 +99,8 @@ static void run_test(int fd, unsigned ring, unsigned flags) igt_skip_on_f(gen == 6 && (ring & ~(3<<13)) == I915_EXEC_BSD, "MI_STORE_DATA broken on gen6 bsd\n"); + gem_quiescent_gpu(fd); + memset(&execbuf, 0, sizeof(execbuf)); execbuf.buffers_ptr = (uintptr_t)obj; execbuf.buffer_count = 2; @@ -228,7 +230,6 @@ igt_main for (mode = modes; mode->prefix; mode++) { for (ring = rings; ring->name; ring++) { - gem_quiescent_gpu(fd); igt_subtest_f("%s%s%s", ring->flags || mode->flags ? "" : mode->prefix, ring->name,