From patchwork Thu Aug 20 14:51:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 11726379 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A731739 for ; Thu, 20 Aug 2020 14:52:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 632CB2075E for ; Thu, 20 Aug 2020 14:52:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 632CB2075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 280FA6E0D5; Thu, 20 Aug 2020 14:52:43 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id A34D86E0D5; Thu, 20 Aug 2020 14:52:41 +0000 (UTC) IronPort-SDR: E7PxdTk8NBDE1WnMryLJ77qaUX4wy619aszJ2GW1/0vGuGMHya1fR0dheO60+t97dZGIJzmsVP VrB5b8Mt+dtg== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="240136028" X-IronPort-AV: E=Sophos;i="5.76,333,1592895600"; d="scan'208";a="240136028" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 07:52:39 -0700 IronPort-SDR: xlSoDIijhUvDGNAtJsBnD/teYCQpQZ2tnYtZYqaRy06LWzevXFxj9aGqtk20qCA3UcpFCR0tRG Hr1EJCJL2r6Q== X-IronPort-AV: E=Sophos;i="5.76,333,1592895600"; d="scan'208";a="472679553" Received: from jkrzyszt-desk.igk.intel.com ([172.22.244.18]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 07:52:37 -0700 From: Janusz Krzysztofik To: igt-dev@lists.freedesktop.org Date: Thu, 20 Aug 2020 16:51:56 +0200 Message-Id: <20200820145215.13238-1-janusz.krzysztofik@linux.intel.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t v3 00/19] tests/core_hotunplug: Fixes and enhancements 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: =?utf-8?q?Micha=C5=82_Winiarski?= , intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Clean up the test code, add some new basic subtests, then unblock unbind test variants. One patch has been renamed, three new patches added to the series, and one more patch form a formerly submitted series with new subtests included. @MichaƂ: Since most v2/v3 updates are trivial, I've preserved your v1/v2 Reviewd-by: except for a few patches with non-trivial changes, where I marked your R-b as v1/v2 applicable. Please have a look and confirm if you are still OK with them. @Tvrtko: Please support my attempt to remove the unbind test variants from the blocklist. @Petri, @Martin: Please give me your green lite for merging this series if you have no objections. Thanks, Janusz Janusz Krzysztofik (19): tests/core_hotunplug: Use igt_assert_fd() tests/core_hotunplug: Constify dev_bus_addr string tests/core_hotunplug: Clean up device open error handling tests/core_hotunplug: Consolidate duplicated debug messages # new tests/core_hotunplug: Assert successful device filter application tests/core_hotunplug: Maintain a single data structure instance tests/core_hotunplug: Pass errors via a data structure field tests/core_hotunplug: Handle device close errors tests/core_hotunplug: Prepare invariant data once per test run tests/core_hotunplug: Skip selectively on sysfs close errors tests/core_hotunplug: Recover from subtest failures # renamed tests/core_hotunplug: Fail subtests on device close errors tests/core_hotunplug: Let the driver time out essential sysfs operations # new tests/core_hotunplug: Process return values of sysfs operations tests/core_hotunplug: Assert expected device presence/absence tests/core_hotunplug: Explicitly ignore unused return values tests/core_hotunplug: More thorough i915 healthcheck and recovery # new tests/core_hotunplug: Add 'lateclose before restore' variants # included tests/core_hotunplug: Un-blocklist *bind* subtests tests/core_hotunplug.c | 525 ++++++++++++++++++++++++++--------- tests/intel-ci/blacklist.txt | 2 +- 2 files changed, 396 insertions(+), 131 deletions(-)