Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id B397A10E4AF for ; Thu, 23 Feb 2023 08:11:23 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Thu, 23 Feb 2023 09:11:19 +0100 Message-Id: <20230223081119.21616-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] i915/gem_softpin: Ensure gpu is idle when we use manual placement List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: For separate execution there is no risk we may reserve offset which is still in use by some job. But for running bunch of allocator tests which may be still on gpu such risk exists. To avoid failures on grouped execution ensure for 'nopin' subtests gpu is idle first. Signed-off-by: Zbigniew KempczyƄski --- tests/i915/gem_softpin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c index ad6d3f531c..c29bfd43d9 100644 --- a/tests/i915/gem_softpin.c +++ b/tests/i915/gem_softpin.c @@ -1449,13 +1449,17 @@ igt_main igt_describe("Check that we can combine manual placement with automatic" " GTT placement."); - igt_subtest("allocator-nopin") + igt_subtest("allocator-nopin") { + gem_quiescent_gpu(fd); test_allocator_nopin(fd, false); + } igt_describe("Check that we can combine manual placement with automatic" " GTT placement and reserves/unreserves space for objects."); - igt_subtest("allocator-nopin-reserve") + igt_subtest("allocator-nopin-reserve") { + gem_quiescent_gpu(fd); test_allocator_nopin(fd, true); + } igt_describe("Check if multiple processes can use alloctor."); igt_subtest("allocator-fork") -- 2.34.1