From patchwork Thu Mar 21 17:38:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yokoyama, Caz" X-Patchwork-Id: 10864157 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF8E1139A for ; Thu, 21 Mar 2019 17:38:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F7452A370 for ; Thu, 21 Mar 2019 17:38:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 910C22A372; Thu, 21 Mar 2019 17:38:22 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 4F32D2A370 for ; Thu, 21 Mar 2019 17:38:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B44296E15E; Thu, 21 Mar 2019 17:38:20 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5D906E15E for ; Thu, 21 Mar 2019 17:38:19 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 10:38:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,253,1549958400"; d="scan'208";a="284695095" Received: from diana2.ra.intel.com ([10.23.184.226]) by orsmga004.jf.intel.com with ESMTP; 21 Mar 2019 10:38:19 -0700 From: "Yokoyama, Caz" To: intel-gfx@lists.freedesktop.org Date: Thu, 21 Mar 2019 10:38:21 -0700 Message-Id: X-Mailer: git-send-email 2.17.1 Subject: [Intel-gfx] [PATCH v1 1/1] drm/i915/sleftests: live_execlists subtest faster 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: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP It took 35-120sec because some of engines hang up and reset. I guess too many requests are accumulated for all prime numbers up to 32 and detected as hangup. By adding wait, requests are processed on each prime number and not accumulated. The test runs for 8.5sec. Change-Id: I0d3732a202fef90d192fb84baf8275eeadb59c02 Signed-off-by: Yokoyama, Caz --- drivers/gpu/drm/i915/selftests/intel_lrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/selftests/intel_lrc.c b/drivers/gpu/drm/i915/selftests/intel_lrc.c index d61520ea03c1..16befd2a74c6 100644 --- a/drivers/gpu/drm/i915/selftests/intel_lrc.c +++ b/drivers/gpu/drm/i915/selftests/intel_lrc.c @@ -621,7 +621,7 @@ static int live_chain_preempt(void *arg) continue; for_each_prime_number_from(count, 1, 32) { /* must fit ring! */ - struct i915_request *rq; + struct i915_request *rq, *last_rq; rq = igt_spinner_create_request(&hi.spin, hi.ctx, engine, @@ -645,6 +645,7 @@ static int live_chain_preempt(void *arg) goto err_wedged; i915_request_add(rq); } + last_rq = rq; rq = i915_request_alloc(engine, hi.ctx); if (IS_ERR(rq)) @@ -664,6 +665,7 @@ static int live_chain_preempt(void *arg) goto err_wedged; } igt_spinner_end(&lo.spin); + i915_request_wait(last_rq, I915_WAIT_ALL, 5*HZ); } }