From patchwork Fri Feb 8 14:44:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 10803229 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 471C813B5 for ; Fri, 8 Feb 2019 14:45:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32BD92E6A1 for ; Fri, 8 Feb 2019 14:45:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2145A2E6AB; Fri, 8 Feb 2019 14:45:09 +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 C2B2D2E6A1 for ; Fri, 8 Feb 2019 14:45:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0878D6E321; Fri, 8 Feb 2019 14:45:08 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from fireflyinternet.com (mail.fireflyinternet.com [109.228.58.192]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6FCE89F77; Fri, 8 Feb 2019 14:45:05 +0000 (UTC) X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from haswell.alporthouse.com (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 15511170-1500050 for multiple; Fri, 08 Feb 2019 14:44:59 +0000 From: Chris Wilson To: igt-dev@lists.freedesktop.org Date: Fri, 8 Feb 2019 14:44:57 +0000 Message-Id: <20190208144458.26093-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 1/2] kms_fence_pin_leak: Ask for the GPU before use 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: , Cc: intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Check that the GPU even exists before submitting a batch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109589 Signed-off-by: Chris Wilson --- tests/kms_fence_pin_leak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kms_fence_pin_leak.c b/tests/kms_fence_pin_leak.c index 62c52b627..e6c8b33c3 100644 --- a/tests/kms_fence_pin_leak.c +++ b/tests/kms_fence_pin_leak.c @@ -201,6 +201,7 @@ igt_simple_main igt_skip_on_simulation(); data.drm_fd = drm_open_driver_master(DRIVER_INTEL); + igt_require_gem(data.drm_fd); data.devid = intel_get_drm_devid(data.drm_fd); From patchwork Fri Feb 8 14:44:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 10803231 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 7D041746 for ; Fri, 8 Feb 2019 14:45:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D6DA2E6AB for ; Fri, 8 Feb 2019 14:45:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61AF92E6B5; Fri, 8 Feb 2019 14:45:15 +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 116B82E6AB for ; Fri, 8 Feb 2019 14:45:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96F856E3A5; Fri, 8 Feb 2019 14:45:14 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from fireflyinternet.com (mail.fireflyinternet.com [109.228.58.192]) by gabe.freedesktop.org (Postfix) with ESMTPS id A1F136E326; Fri, 8 Feb 2019 14:45:13 +0000 (UTC) X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from haswell.alporthouse.com (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 15511171-1500050 for multiple; Fri, 08 Feb 2019 14:44:59 +0000 From: Chris Wilson To: igt-dev@lists.freedesktop.org Date: Fri, 8 Feb 2019 14:44:58 +0000 Message-Id: <20190208144458.26093-2-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208144458.26093-1-chris@chris-wilson.co.uk> References: <20190208144458.26093-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 2/2] kms_fence_pin_leak: Move beneath i915/ 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: , Cc: intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP kms_fence_pin_leak tests smooth sharp edges that are i915 specific (and requires using GEM to do so). It doesn't belong in the general paddock of all driver tests, so move it into the i915/ stable. Signed-off-by: Chris Wilson Cc: Arkadiusz Hiler Cc: Petri Latvala Acked-by: Petri Latvala --- tests/Makefile.sources | 5 ++++- tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/meson.build | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) diff --git a/tests/Makefile.sources b/tests/Makefile.sources index a234fa5dd..8565f100a 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -40,7 +40,6 @@ TESTS_progs = \ kms_dp_dsc \ kms_draw_crc \ kms_fbcon_fbt \ - kms_fence_pin_leak \ kms_flip \ kms_flip_event_leak \ kms_flip_tiling \ @@ -98,6 +97,10 @@ TESTS_progs = \ vgem_slow \ $(NULL) +TESTS_progs += \ + i915/kms_fence_pin_leak \ + $(NULL) + TESTS_progs += gem_bad_reloc gem_bad_reloc_SOURCES = i915/gem_bad_reloc.c diff --git a/tests/kms_fence_pin_leak.c b/tests/i915/kms_fence_pin_leak.c similarity index 100% rename from tests/kms_fence_pin_leak.c rename to tests/i915/kms_fence_pin_leak.c diff --git a/tests/meson.build b/tests/meson.build index 0f12df26d..1c4f9ec36 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -27,7 +27,6 @@ test_progs = [ 'kms_dp_dsc', 'kms_draw_crc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', 'kms_flip_tiling', @@ -99,6 +98,7 @@ i915_progs = [ 'fb_tiling', 'getparams_basic', 'hangman', + 'kms_fence_pin_leak', 'missed_irq', 'module_load', 'query',