All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Srinivas, Vidya" <vidya.srinivas@intel.com>
To: Mark Yacoub <markyacoub@chromium.org>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>,
	Development mailing list for IGT GPU Tools
	<igt-dev@lists.freedesktop.org>,
	"Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
	Mark Yacoub <markyacoub@google.com>,
	Nicholas Choi <nicholas.choi@amd.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_concurrent: Fix regression in test_resolution_with_output
Date: Mon, 20 Sep 2021 16:59:22 +0000	[thread overview]
Message-ID: <BY5PR11MB43729293AE0025986DD677F989A09@BY5PR11MB4372.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAJUqKUr_6DjfU4aZPNxyt-86C+L0cS-Z2jQjiZLVpunzHowssw@mail.gmail.com>



> -----Original Message-----
> From: Mark Yacoub <markyacoub@chromium.org>
> Sent: Monday, September 20, 2021 8:57 PM
> To: Srinivas, Vidya <vidya.srinivas@intel.com>
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>; Development mailing list
> for IGT GPU Tools <igt-dev@lists.freedesktop.org>; Modem, Bhanuprakash
> <bhanuprakash.modem@intel.com>; Mark Yacoub
> <markyacoub@google.com>; Nicholas Choi <nicholas.choi@amd.com>
> Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_concurrent: Fix regression in
> test_resolution_with_output
> 
> On Mon, Sep 20, 2021 at 4:30 AM Srinivas, Vidya <vidya.srinivas@intel.com>
> wrote:
> >
> >
> >
> > > -----Original Message-----
> > > From: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
> > > Sent: Friday, September 17, 2021 8:34 PM
> > > To: Mark Yacoub <markyacoub@chromium.org>
> > > Cc: Development mailing list for IGT GPU Tools <igt-
> > > dev@lists.freedesktop.org>; Modem, Bhanuprakash
> > > <bhanuprakash.modem@intel.com>; Mark Yacoub
> <markyacoub@google.com>;
> > > Srinivas, Vidya <vidya.srinivas@intel.com>; Nicholas Choi
> > > <nicholas.choi@amd.com>
> > > Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_concurrent: Fix
> > > regression in test_resolution_with_output
> > >
> > > Hi Mark,
> > >
> > > Yes, this patch cause a regression in AMD.
> > >
> > > I applied the original patch after the CI reported a complete pass.
> > > I also tested it in a VC4 and VKMS; just for curiosity, why did we
> > > not get this regression in the CI?
> >
> > Hello Mark/Siqueira,
> > I am not very sure. One possible reason could be the CI does not run
> > all the subtests sequentially? With this line, it triggers the
> > condition [ 7577.454215] [drm:drm_atomic_check_only] atomic driver
> > check for 00000000bcb190f7 failed: -22
> Do we know why is this the case? I'm curious to know which check is failing
> and why it is failing. Is it failing at the following atomic commit? Cause it
> could be a kernel bug maybe?

Hello Mark,

The condition which it fails for is DRM_DEBUG_ATOMIC("[CRTC:%d:%s] enabled/connectors mismatch\n")
Under new_crtc_state->enable != has_connectors
This loop is meant for CRTC changed its mode but has same set of connectors. But here,
Mismatch is getting triggered saying there is a mismatch between the CRTC that is being enabled and the number of connectors.
Function drm_atomic_helper_check_modeset

Regards
Vidya

> > I observed the same message even with upstream kernel.
> >
> > I have resubmitted the patch with is amd
> > https://patchwork.freedesktop.org/patch/454571/?series=94762&rev=2
> > Kindly have a check. Thank you.
> >
> > Regards
> > Vidya
> > >
> > > Thanks
> > >
> > > On 09/16, Mark Yacoub wrote:
> > > > @Siquiera, I remember this also caused a regression on Qualcomm
> > > > devices as well.
> > > > Will removing this regress AMD? Any work around?
> > > >
> > > > On Thu, Sep 16, 2021 at 10:30 AM Vidya Srinivas
> > > > <vidya.srinivas@intel.com> wrote:
> > > > >
> > > > > Staring commit fea0e38e690c30c6 "Making the test more generic"
> > > > > test_resolution_with_output introduced setting
> > > > > igt_output_set_pipe to PIPE_NONE. This is triggering atomic
> > > > > check failure resulting in "enabled/connectors mismatch" under
> > > drm_atomic_helper_check_modeset.
> > > > > Patch fixes this issue.
> > > > >
> > > > > Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
> > > > > ---
> > > > >  tests/kms_concurrent.c | 1 -
> > > > >  1 file changed, 1 deletion(-)
> > > > >
> > > > > diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
> > > > > index
> > > > > 25c67eb469d1..40096ea1c457 100644
> > > > > --- a/tests/kms_concurrent.c
> > > > > +++ b/tests/kms_concurrent.c
> > > > > @@ -268,7 +268,6 @@ test_resolution_with_output(data_t *data,
> > > > > enum pipe pipe, int max_planes, igt_ou
> > > > >
> > > > >                 /* switch to lower resolution */
> > > > >                 igt_output_override_mode(output, mode_lo);
> > > > > -               igt_output_set_pipe(output, PIPE_NONE);
> > > > >                 igt_display_commit2(&data->display,
> > > > > COMMIT_ATOMIC);
> > > > >
> > > > >                 /* switch back to higher resolution */
> > > > > --
> > > > > 2.33.0
> > > > >
> > >
> > > --
> > > Rodrigo Siqueira
> > > https://siqueira.tech

  reply	other threads:[~2021-09-20 17:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 14:18 [igt-dev] [PATCH i-g-t] tests/kms_concurrent: Fix regression in test_resolution_with_output Vidya Srinivas
2021-09-16 15:36 ` Mark Yacoub
2021-09-17 15:03   ` Rodrigo Siqueira
2021-09-17 16:35     ` Mark Yacoub
2021-09-20  8:29     ` Srinivas, Vidya
2021-09-20 15:27       ` Mark Yacoub
2021-09-20 16:59         ` Srinivas, Vidya [this message]
2021-09-16 17:43 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2021-09-20  8:17 ` [igt-dev] [PATCH i-g-t] " Vidya Srinivas
2021-09-23 17:55   ` Rodrigo Siqueira
2021-09-24  4:06     ` Srinivas, Vidya
2021-09-20 10:40 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_concurrent: Fix regression in test_resolution_with_output (rev2) Patchwork
2021-09-20 12:51 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-24  4:59 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
2022-05-31  5:14 [igt-dev] [PATCH i-g-t] tests/kms_concurrent: Fix regression in test_resolution_with_output Nidhi Gupta
2022-06-13  9:11 ` Karthik B S
2022-06-24  5:00 Nidhi Gupta
2022-06-24  8:11 ` Karthik B S

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=BY5PR11MB43729293AE0025986DD677F989A09@BY5PR11MB4372.namprd11.prod.outlook.com \
    --to=vidya.srinivas@intel.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=markyacoub@chromium.org \
    --cc=markyacoub@google.com \
    --cc=nicholas.choi@amd.com \
    /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.