From patchwork Thu Jan 13 23:51:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Harrison X-Patchwork-Id: 12713195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A82FEC433EF for ; Thu, 13 Jan 2022 23:51:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD25210E80B; Thu, 13 Jan 2022 23:51:20 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 920EB10E809; Thu, 13 Jan 2022 23:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642117879; x=1673653879; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rGrtj5Ie8nmMgKXhEReTAgEiCehMuTwWCf6kilBfYXU=; b=n+/E2h9G5yiwEmwr57PHlswR3I4CZcJ12uxrRMhB30pfIBjCWKIk+Lnf UK4l4ysUrGVKy260dH3esMx6bWHYzi1l5L/alielrr/u2GIDohui5w0tb 6Ey2QrnORnqZf2vA7fpMkjHA807Oydu6qnxtUf7cfp+1iZEX4uzXHC9tO IBY0N9C2zfENl/ZtKgPLdYrAY4MvR8xOUJnNma3cNHyVVJTCtz6R7ZANV heRzhwFKowXPEZjr6BRhprOz+1UYJe0sDqv4nSawg6aRh0zrPlzOCnGNx corfAbN6eJu96C8RzpYDBtmEBRF0yhe5uDISTKOizg8DditOFffGIWhh2 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10226"; a="244096531" X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="244096531" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 15:51:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="620782974" Received: from relo-linux-5.jf.intel.com ([10.165.21.134]) by fmsmga002.fm.intel.com with ESMTP; 13 Jan 2022 15:51:18 -0800 From: John.C.Harrison@Intel.com To: IGT-Dev@Lists.FreeDesktop.Org Date: Thu, 13 Jan 2022 15:51:03 -0800 Message-Id: <20220113235118.1575410-1-John.C.Harrison@Intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ Subject: [Intel-gfx] [PATCH v4 i-g-t 00/15] Fixes for i915_hangman and gem_exec_capture 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: Intel-GFX@Lists.FreeDesktop.Org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: John Harrison Fix a bunch of issues with i915_hangman and gem_exec_capture with the ultimate aim of making them pass on GuC enabled platforms. v2: Fixes to the store code. Add engine properties management. v3: Fix for platforms without pre-emption. v4: Simplify anti-ban code, support >32bit store offsets and fix memory mapping on discrete platforms. Signed-off-by: John Harrison John Harrison (15): tests/i915/i915_hangman: Add descriptions lib/hang: Fix igt_require_hang_ring to work with all engines tests/i915/i915_hangman: Update capture test to use engine structure tests/i915/i915_hangman: Explicitly test per engine reset vs full GPU reset tests/i915/i915_hangman: Add uevent test & fix detector tests/i915/i915_hangman: Use the correct context in hangcheck_unterminated lib/store: Refactor common store code into helper function tests/i915/i915_hangman: Add alive-ness test after error capture tests/i915/i915_hangman: Remove reliance on context persistance tests/i915/i915_hangman: Run background task on all engines tests/i915/i915_hangman: Don't let background contexts cause a ban tests/i915/gem_exec_fence: Configure correct context lib/i915: Add helper for non-destructive engine property updates tests/i915/i915_hangman: Configure engine properties for quicker hangs tests/i915/gem_exec_capture: Restore engines lib/i915/gem_engine_topology.c | 46 ++++++ lib/i915/gem_engine_topology.h | 9 ++ lib/igt_aux.c | 7 + lib/igt_gt.c | 6 +- lib/igt_gt.h | 2 +- lib/igt_store.c | 100 +++++++++++++ lib/igt_store.h | 12 ++ lib/meson.build | 1 + tests/i915/gem_exec_capture.c | 37 +++-- tests/i915/gem_exec_fence.c | 79 +---------- tests/i915/i915_hangman.c | 252 +++++++++++++++++++++++++++------ 11 files changed, 423 insertions(+), 128 deletions(-) create mode 100644 lib/igt_store.c create mode 100644 lib/igt_store.h