Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Deak, Imre" <imre.deak@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915/dp: Fix the PSR debugfs entries wrt. MST connectors
Date: Wed, 3 Jan 2024 14:10:05 +0000	[thread overview]
Message-ID: <050237d78f8863264e1478d00ee2d599ae0e0964.camel@intel.com> (raw)
In-Reply-To: <ZZVoekU4A/YJZXDw@ideak-desk.fi.intel.com>

On Wed, 2024-01-03 at 16:00 +0200, Imre Deak wrote:
> On Wed, Jan 03, 2024 at 01:37:08PM +0200, Hogander, Jouni wrote:
> > > > > [...]
> > > > > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> > > > > b/drivers/gpu/drm/i915/display/intel_psr.c
> > > > > index 494d08817d71e..b5b9340e505e3 100644
> > > > > --- a/drivers/gpu/drm/i915/display/intel_psr.c
> > > > > +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> > > > > @@ -3310,11 +3310,8 @@ void
> > > > > intel_psr_connector_debugfs_add(struct
> > > > > intel_connector *connector)
> > > > >         struct drm_i915_private *i915 = to_i915(connector-
> > > > > >base.dev);
> > > > >         struct dentry *root = connector->base.debugfs_entry;
> > > > > 
> > > > > -       if (connector->base.connector_type !=
> > > > > DRM_MODE_CONNECTOR_eDP)
> > > > > {
> > > > > -               if (!(HAS_DP20(i915) &&
> > > > > -                     connector->base.connector_type ==
> > > > > DRM_MODE_CONNECTOR_DisplayPort))
> > > > > -                       return;
> > > > > -       }
> > > > > +       if (connector->base.connector_type !=
> > > > > DRM_MODE_CONNECTOR_eDP)
> > > > > +               return;
> > > > 
> > > > Would it be possible to disable it only for MST connector? I
> > > > think
> > > > this is disabling it also for DP SST, no?
> > > 
> > > Yes, it keeps it enabled only for eDP. It could be enabled for
> > > SST as
> > > well yes, but I thought as a fix the above is better, adding
> > > support
> > > for other connector types as a follow up.
> > 
> > if (connector->mst_port || !(HAS_DP20(i915) &&
> > connectorbase.connector_type == DRM_MODE_CONNECTOR_DisplayPort))
> >     return;
> > 
> > Is it possible to use this instead?
> 
> Looking through it I don't see a problem on SST connectors either, so
> I'd rather leave the entries enabled for them on all platforms, that
> is
> 
>         if ((connector_type != DRM_MODE_CONNECTOR_eDP &&
>              connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
>             connector->mst_port)
>                 return;

Sounds good. That is anyways same what is done for PSR as well. 

BR,

Jouni Högander

> 
> > BR,
> > 
> > Jouni Högander
> > 
> > > 
> > > > BR,
> > > > 
> > > > Jouni Högander
> > > > > 
> > > > >         debugfs_create_file("i915_psr_sink_status", 0444,
> > > > > root,
> > > > >                             connector,
> > > > > &i915_psr_sink_status_fops);
> > > > 
> > 


  reply	other threads:[~2024-01-03 14:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-03 11:00 [PATCH] drm/i915/dp: Fix the PSR debugfs entries wrt. MST connectors Imre Deak
2024-01-03 11:08 ` Hogander, Jouni
2024-01-03 11:20   ` Imre Deak
2024-01-03 11:37     ` Hogander, Jouni
2024-01-03 14:00       ` Imre Deak
2024-01-03 14:10         ` Hogander, Jouni [this message]
2024-01-03 13:50 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-01-03 15:26 ` [PATCH v2] " Imre Deak
2024-01-04  7:15   ` Hogander, Jouni
2024-01-03 16:05 ` ✓ Fi.CI.BAT: success for drm/i915/dp: Fix the PSR debugfs entries wrt. MST connectors (rev2) Patchwork
2024-01-03 17:22 ` ✗ Fi.CI.IGT: failure " 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=050237d78f8863264e1478d00ee2d599ae0e0964.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox