Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85F6A6E5BB for ; Thu, 2 Sep 2021 15:25:05 +0000 (UTC) From: Vidya Srinivas Date: Thu, 2 Sep 2021 20:43:34 +0530 Message-Id: <20210902151334.15818-1-vidya.srinivas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH] tests/kms_psr2_sf: Skip tests if selected fetch is not available List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Vidya Srinivas List-ID: Currently the tests are failing on systems where selected fetch feature is not availble. Kernel returns -EINVAL when the test executes reporting "Invalid debug mask 4". Patch skips if selected fetch feature is not available in the kernel. Signed-off-by: Vidya Srinivas Change-Id: I031b4f58866a45f98b1c7e6c5181f8731f5ba4b2 --- lib/igt_psr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 68240f9a33b4..6f9fb8eea0ed 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -167,6 +167,8 @@ static bool psr_set(int device, int debugfs_fd, int mode) } ret = psr_write(debugfs_fd, debug_val); + if (ret == -EINVAL) + igt_skip("PSR2 SF not available\n"); igt_assert(ret > 0); } -- 2.26.2