Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Govindapillai, Vinod" <vinod.govindapillai@intel.com>
To: "Hajda, Andrzej" <andrzej.hajda@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Nikula, Jani" <jani.nikula@intel.com>
Subject: Re: [Intel-gfx] [PATCH v2 1/2] drm/i915/display: ignore long HPDs based on a flag
Date: Mon, 10 Oct 2022 12:11:27 +0000	[thread overview]
Message-ID: <5144d7810a4cf11dcd8dfb5ef194511ac81940a6.camel@intel.com> (raw)
In-Reply-To: <18be1fa7-4d91-f04b-f19e-15c360691586@intel.com>

On Mon, 2022-10-10 at 14:08 +0200, Andrzej Hajda wrote:
> On 10.10.2022 10:34, Vinod Govindapillai wrote:
> > Some panels generate long HPD events even while connected to
> > the port. This cause some unexpected CI execution issues. A
> > new flag is added to track if such spurious long HPDs can be
> > ignored and are not processed further if the flag is set.
> > 
> > v2: Address patch styling comments (Jani Nikula)
> > 
> > Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> 
> Yeah, especially bat-rpls-2 is quite buggy[1] (500 long HPDs per log).
> Do you plan to integrate it to CI? I guess i915 should be immune to such 
> misbehavior anyway.
> 
> [1]: 
> https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12228/bat-rpls-2/dmesg0.txt
> 
> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
> 
> Regards
> Andrzej

Thanks. Yes. IGT patch is floated to take this into use in CI
https://patchwork.freedesktop.org/series/109531/

> 
> 
> > ---
> >   drivers/gpu/drm/i915/display/intel_display_core.h | 11 +++++++++++
> >   drivers/gpu/drm/i915/display/intel_dp.c           |  7 +++++++
> >   2 files changed, 18 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h
> > b/drivers/gpu/drm/i915/display/intel_display_core.h
> > index 96cf994b0ad1..f84a2e760ef4 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display_core.h
> > +++ b/drivers/gpu/drm/i915/display/intel_display_core.h
> > @@ -170,6 +170,17 @@ struct intel_hotplug {
> >          * blocked behind the non-DP one.
> >          */
> >         struct workqueue_struct *dp_wq;
> > +
> > +       /*
> > +        * Flag to track if long HPDs need not to be processed
> > +        *
> > +        * Some panels generate long HPDs while keep connected to the port.
> > +        * This can cause issues with CI tests results. In CI systems we
> > +        * don't expect to disconnect the panels and could ignore the long
> > +        * HPDs generated from the faulty panels. This flag can be used as
> > +        * cue to ignore the long HPDs and can be set / unset using debugfs.
> > +        */
> > +       bool ignore_long_hpd;
> >   };
> >   
> >   struct intel_vbt_data {
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> > index 70b06806ec0d..87a0d01d8003 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > @@ -5092,6 +5092,13 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd)
> >                 return IRQ_HANDLED;
> >         }
> >   
> > +       if (i915->display.hotplug.ignore_long_hpd && long_hpd) {
> > +               drm_dbg_kms(&i915->drm, "[ENCODER:%d:%s] ignoring long hpd\n",
> > +                           dig_port->base.base.base.id,
> > +                           dig_port->base.base.name);
> > +               return IRQ_HANDLED;
> > +       }
> > +
> >         drm_dbg_kms(&i915->drm, "got hpd irq on [ENCODER:%d:%s] - %s\n",
> >                     dig_port->base.base.base.id,
> >                     dig_port->base.base.name,
> 


  reply	other threads:[~2022-10-10 12:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10  8:34 [Intel-gfx] [PATCH v2 0/2] Provision to ignore long HPDs in CI systems Vinod Govindapillai
2022-10-10  8:34 ` [Intel-gfx] [PATCH v2 1/2] drm/i915/display: ignore long HPDs based on a flag Vinod Govindapillai
2022-10-10 12:08   ` Andrzej Hajda
2022-10-10 12:11     ` Govindapillai, Vinod [this message]
2022-10-10  8:34 ` [Intel-gfx] [PATCH v2 2/2] drm/i915/display: debugfs entry to control ignore long hpd flag Vinod Govindapillai
2022-10-10 12:10   ` Andrzej Hajda
2022-10-10  8:52 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Provision to ignore long HPDs in CI systems (rev2) Patchwork
2022-10-10  9:01   ` Govindapillai, Vinod
2022-10-10  9:14 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-10-10 12:13 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2022-10-11  9:25 [Intel-gfx] [PATCH v2 0/2] Provision to ignore long HPDs in CI systems Vinod Govindapillai
2022-10-11  9:25 ` [Intel-gfx] [PATCH v2 1/2] drm/i915/display: ignore long HPDs based on a flag Vinod Govindapillai

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=5144d7810a4cf11dcd8dfb5ef194511ac81940a6.camel@intel.com \
    --to=vinod.govindapillai@intel.com \
    --cc=andrzej.hajda@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@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