All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Surendrakumar Upadhyay, TejaskumarX" <tejaskumarx.surendrakumar.upadhyay@intel.com>
To: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
	"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t] tests/kms_setmode: Handle unsupported modes for invalid crtc test
Date: Fri, 20 Aug 2021 11:19:42 +0000	[thread overview]
Message-ID: <SN6PR11MB3421BC01E5992222624BC749DFC19@SN6PR11MB3421.namprd11.prod.outlook.com> (raw)
In-Reply-To: <DM8PR11MB5719A53693C75E3921CB84C18DC19@DM8PR11MB5719.namprd11.prod.outlook.com>

Ok I will do corrective change and send V2. I will remove check itself, that also works.

Thanks,
Tejas

> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> Sent: 20 August 2021 16:48
> To: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>; Surendrakumar
> Upadhyay, TejaskumarX
> <tejaskumarx.surendrakumar.upadhyay@intel.com>; igt-
> dev@lists.freedesktop.org
> Subject: RE: [igt-dev] [i-g-t] tests/kms_setmode: Handle unsupported modes
> for invalid crtc test
> 
> > From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of
> > Nautiyal, Ankit K
> > Sent: Friday, August 20, 2021 4:26 PM
> > To: Surendrakumar Upadhyay, TejaskumarX
> > <tejaskumarx.surendrakumar.upadhyay@intel.com>;
> > igt-dev@lists.freedesktop.org
> > Subject: Re: [igt-dev] [i-g-t] tests/kms_setmode: Handle unsupported
> > modes for invalid crtc test
> >
> > Thanks for the patch. This indeed was missing for the invalid tests
> > with multi-displays.
> >
> > Patch looks good to me.
> >
> > Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> >
> >
> > On 8/19/2021 1:12 PM, Tejas Upadhyay wrote:
> > > Unsupported modes in crtc need to return proper error in order to
> > > report back that applied config was failed or not. Thus added ENOENT
> > > error.
> > >
> > > Test affected (fail -> pass after change) :
> > > igt@kms_setmode@invalid-clone-single-[crtc|crtc-stealing]
> > >
> > > Signed-off-by: Tejas Upadhyay
> > > <tejaskumarx.surendrakumar.upadhyay@intel.com>
> > > ---
> > >   tests/kms_setmode.c | 7 ++++++-
> > >   1 file changed, 6 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index
> > > 89220b83..f322a373 100644
> > > --- a/tests/kms_setmode.c
> > > +++ b/tests/kms_setmode.c
> > > @@ -569,8 +569,10 @@ int __test_crtc_config(struct crtc_config
> > > *crtcs, int
> > crtc_count,
> > >   	for (int i = 0; i < crtc->cconfs->connector->count_modes; i++) {
> > >   		uint32_t *ids;
> > >
> > > -		if (!crtc_supports_mode(crtc, &crtc->cconfs->connector-
> >modes[i]))
> > > +		if (!crtc_supports_mode(crtc,
> > > +&crtc->cconfs->connector->modes[i]))
> > {
> > > +			ret = -ENOENT;
> 
> I guess, we can drop this crtc_supports_mode() check, since our intension is
> to catch EINVAL only as there are N #of possibilities to fail.
> 
> > >   			continue;
> > > +		}
> > >
> > >   		crtc->mode = crtc->cconfs->connector->modes[i];
> > >
> > > @@ -622,6 +624,9 @@ int __test_crtc_config(struct crtc_config
> > > *crtcs, int
> > crtc_count,
> > >   		return ret;
> > >   	}
> > >
> > > +	if (ret < 0)
> > > +		*config_failed = true;
> 
> Please consider above comment.
> 
> - Bhanu
> 
> > > +
> > >   	/* When all crtcs[base].modes are tried & failed to fit into link BW. */
> > >   	return ret;
> > >   }

  reply	other threads:[~2021-08-20 11:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  7:42 [igt-dev] [i-g-t] tests/kms_setmode: Handle unsupported modes for invalid crtc test Tejas Upadhyay
2021-08-19  8:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-08-19 10:50 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-08-20 10:55 ` [igt-dev] [i-g-t] " Nautiyal, Ankit K
2021-08-20 11:18   ` Modem, Bhanuprakash
2021-08-20 11:19     ` Surendrakumar Upadhyay, TejaskumarX [this message]
2021-08-23  8:18     ` Surendrakumar Upadhyay, TejaskumarX
2021-08-24 12:13 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_setmode: Handle unsupported modes for invalid crtc test (rev2) Patchwork
2021-08-24 14:48 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR11MB3421BC01E5992222624BC749DFC19@SN6PR11MB3421.namprd11.prod.outlook.com \
    --to=tejaskumarx.surendrakumar.upadhyay@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.