public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Shankar, Uma" <uma.shankar@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH v2] tests/kms_flip: Retry test in case of a DP/HDMI link reset
Date: Tue, 12 May 2020 20:16:54 +0300	[thread overview]
Message-ID: <20200512171654.GZ6112@intel.com> (raw)
In-Reply-To: <E7C9878FBA1C6D42A1CA3F62AEB6945F824AAAB3@BGSMSX104.gar.corp.intel.com>

On Tue, May 12, 2020 at 05:07:09PM +0000, Shankar, Uma wrote:
> 
> 
> > -----Original Message-----
> > From: Imre Deak <imre.deak@intel.com>
> > Sent: Tuesday, May 12, 2020 10:21 PM
> > To: Shankar, Uma <uma.shankar@intel.com>
> > Cc: igt-dev@lists.freedesktop.org
> > Subject: Re: [igt-dev] [PATCH v2] tests/kms_flip: Retry test in case of a DP/HDMI
> > link reset
> > 
> > On Tue, May 12, 2020 at 06:11:08PM +0300, Shankar, Uma wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of
> > > > Imre Deak
> > > > Sent: Tuesday, May 12, 2020 12:39 AM
> > > > To: igt-dev@lists.freedesktop.org
> > > > Subject: [igt-dev] [PATCH v2] tests/kms_flip: Retry test in case of
> > > > a DP/HDMI link reset
> > > >
> > > > At least an IIyama and LG monitor have a strange behaviour when
> > > > waking from a power saving state and getting enabled with an otherwise
> > successful modeset:
> > > > after the modeset in ~2 sec they signal a bad link state, either due
> > > > to a lost CR/EQ in case of DP or a lost scrambling/TMDS clock setting in case
> > of HDMI link.
> > > > In response the driver resets the link with either a link-retraining
> > > > or a modeset, which in turn makes the test miss vblank/flip events and fail.
> > > >
> > > > Work around the above issue, by retrying the test once if the test
> > > > detects after a failure that a link reset happened during the test
> > > > and a corresponding hotplug uevent was sent by the driver.
> > > >
> > > > v2: Suspend the signal helper while waiting for a hotplug event, so the
> > > >     wait will not get inerrupted/restarted in an endless loop.
> > > >
> > >
> > > Though not sure that this is behavior which should be allowed from a
> > > compliant monitor, I feel this is the right way to handle/WA this.  We
> > > may have to extend this to some other tests as well which will also
> > > get impacted due to these spurious hotplug events.
> > 
> > Yes, one more place would be the connector probing at test startup, which
> > should be retried if a hotplug uevent is detected (waiting for both uevents that a
> > long pulse can generate).
> 
> Yes, there is also a similar failure in alpha test we have seen:
> igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb - fail - Failed assertion: !mismatch || igt_skip_crc_compare
> 
> This also occurred due to the spurious interrupt only. Not sure if there is any other test which is affected.

In theory this sort of stuff should not cause a crc mismatch.
IIRC somebody (Maarten maybe?) made the crc interface supposedly
provide consistent crcs across modeset. So if we are seeing crc
change across a pure ->off->on modeset there is potentially a
bug in the driver.

-- 
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-05-12 17:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11 18:25 [igt-dev] [PATCH i-g-t] tests/kms_flip: Retry test in case of a DP/HDMI link reset Imre Deak
2020-05-11 19:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-05-11 19:08 ` [igt-dev] [PATCH v2] " Imre Deak
2020-05-12 15:11   ` Shankar, Uma
2020-05-12 16:50     ` Imre Deak
2020-05-12 17:07       ` Shankar, Uma
2020-05-12 17:16         ` Ville Syrjälä [this message]
2020-05-13 10:23           ` Shankar, Uma
2020-05-11 20:27 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_flip: Retry test in case of a DP/HDMI link reset (rev2) Patchwork
2020-05-11 21:32   ` Imre Deak
2020-05-11 23:46     ` Vudum, Lakshminarayana
2020-05-11 23:28 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_flip: Retry test in case of a DP/HDMI link reset Patchwork
2020-05-11 23:45 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_flip: Retry test in case of a DP/HDMI link reset (rev2) Patchwork
2020-05-12  4:40 ` [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=20200512171654.GZ6112@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=uma.shankar@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox