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 1D6BA6FCC7 for ; Fri, 7 Feb 2020 14:24:53 +0000 (UTC) Date: Fri, 7 Feb 2020 16:24:48 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Message-ID: <20200207142448.GC13686@intel.com> References: <20200128112549.172135-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200128112549.172135-1-daniel.vetter@ffwll.ch> Subject: Re: [igt-dev] [PATCH i-g-t 1/3] tests/kms_fbcon_fbt: Check for psr before keeling over List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Daniel Vetter Cc: IGT development , Daniel Vetter , Dhinakaran Pandiyan , Rodrigo Vivi List-ID: On Tue, Jan 28, 2020 at 12:25:47PM +0100, Daniel Vetter wrote: > Not exactly sure where this broke, or whether it ever worked, but the > psr_disable helper calls igt_skip if psr doesn't work. Which means we > neeed to check for that first. Makes sense. Reviewed-by: Ville Syrj=E4l=E4 > = > In general lib/igt_psr.c seems to be a library in dire need of some TLC. > = > Cc: Rodrigo Vivi > Cc: Dhinakaran Pandiyan > Cc: Maarten Lankhorst > Signed-off-by: Daniel Vetter > --- > tests/kms_fbcon_fbt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > = > diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c > index acbb6d303f62..506848cfcf47 100644 > --- a/tests/kms_fbcon_fbt.c > +++ b/tests/kms_fbcon_fbt.c > @@ -222,7 +222,8 @@ static bool psr_wait_until_update(int debugfs_fd) > static void disable_features(int debugfs_fd) > { > igt_set_module_param_int("enable_fbc", 0); > - psr_disable(debugfs_fd); > + if (psr_sink_support(debugfs_fd, PSR_MODE_1)) > + psr_disable(debugfs_fd); > } > = > static inline void fbc_modparam_enable(int debugfs_fd) > -- = > 2.24.1 > = > _______________________________________________ > igt-dev mailing list > igt-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/igt-dev -- = Ville Syrj=E4l=E4 Intel _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev