From patchwork Thu Jun 25 12:04:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonas Lahtinen X-Patchwork-Id: 6674961 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 73749C05AC for ; Thu, 25 Jun 2015 12:05:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 39A07206E5 for ; Thu, 25 Jun 2015 12:05:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5E8D220698 for ; Thu, 25 Jun 2015 12:05:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E60DC6EB50; Thu, 25 Jun 2015 05:05:41 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 1514B6EB50 for ; Thu, 25 Jun 2015 05:05:41 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 25 Jun 2015 05:04:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,675,1427785200"; d="scan'208";a="594556097" Received: from jlahtine-mobl1.ger.corp.intel.com (HELO [10.252.16.67]) ([10.252.16.67]) by orsmga003.jf.intel.com with ESMTP; 25 Jun 2015 05:04:45 -0700 Message-ID: <1435233884.3368.0.camel@jlahtine-mobl1> From: Joonas Lahtinen To: intel-gfx Date: Thu, 25 Jun 2015 15:04:44 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t v2] tests/gem_ringfill: Add {render, blitter}-forked 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.6 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 Add forking subtests to gem_ringfill. Tests cause consistent GPU hangs on SKL. Cc: Mika Kuoppala Signed-off-by: Joonas Lahtinen Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89959 --- tests/gem_ringfill.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c index 85b01ea..1b93a03 100644 --- a/tests/gem_ringfill.c +++ b/tests/gem_ringfill.c @@ -241,6 +241,28 @@ igt_main } igt_stop_signal_helper(); + igt_subtest("blitter-forked") { + igt_fork(child, 1) { + check_ring(bufmgr, batch, "blt", blt_copy); + } + igt_waitchildren(); + } + + /* Strictly only required on architectures with a separate BLT ring, + * but lets stress everybody. + */ + igt_subtest("render-forked") { + igt_render_copyfunc_t copy; + + copy = igt_get_render_copyfunc(batch->devid); + igt_require(copy); + + igt_fork(child, 1) { + check_ring(bufmgr, batch, "render", copy); + } + igt_waitchildren(); + } + igt_fixture { intel_batchbuffer_free(batch); drm_intel_bufmgr_destroy(bufmgr);