From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id E15CB6E3C6 for ; Thu, 30 Sep 2021 09:55:50 +0000 (UTC) From: "B, Jeevan" Date: Thu, 30 Sep 2021 09:55:42 +0000 Message-ID: References: <20210902151334.15818-1-vidya.srinivas@intel.com> <20210916135955.17270-1-vidya.srinivas@intel.com> In-Reply-To: <20210916135955.17270-1-vidya.srinivas@intel.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH i-g-t] 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: "Srinivas, Vidya" , "igt-dev@lists.freedesktop.org" Cc: "Modem, Bhanuprakash" , "markyacoub@google.com" , "Srinivas, Vidya" List-ID: Looks good to me.=20 >-----Original Message----- >From: igt-dev On Behalf Of Vidya >Srinivas >Sent: Thursday, September 16, 2021 7:30 PM >To: igt-dev@lists.freedesktop.org >Cc: Modem, Bhanuprakash ; >markyacoub@google.com; Srinivas, Vidya >Subject: [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Skip tests if selected= fetch is >not available > >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. > >v2: Incorportated Mark Yacoub's comments. >Changed igt_skip to igt_require_f > >Signed-off-by: Vidya Srinivas Reviewed-by: Jeevan B >--- > lib/igt_psr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 68240f9a33b4..0af503fb796= e 100644 >--- a/lib/igt_psr.c >+++ b/lib/igt_psr.c >@@ -167,7 +167,7 @@ static bool psr_set(int device, int debugfs_fd, int mo= de) > } > > ret =3D psr_write(debugfs_fd, debug_val); >- igt_assert(ret > 0); >+ igt_require_f(ret =3D=3D 0, "PSR2 SF feature not available\n"); > } > > /* Restore original value on exit */ >-- >2.33.0