All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mun, Gwan-gyeong" <gwan-gyeong.mun@intel.com>
To: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>
Subject: Re: [Intel-gfx] [PATCH v4 2/2] drm/i915/display: Support Multiple Transcoders' PSR status on debugfs
Date: Fri, 11 Dec 2020 10:45:40 +0000	[thread overview]
Message-ID: <a3ed2ff26f0a8e6eed6d59c80783a117633c4a9b.camel@intel.com> (raw)
In-Reply-To: <878sayq5qb.fsf@intel.com>

On Wed, 2020-11-18 at 13:11 +0200, Jani Nikula wrote:
> On Fri, 06 Nov 2020, Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
> wrote:
> > In order to support the PSR state of each transcoder, it adds
> > i915_psr_status to sub-directory of each transcoder.
> > 
> > v2: Change using of Symbolic permissions 'S_IRUGO' to using of
> > octal
> >     permissions '0444'
> > 
> > Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
> > Cc: José Roberto de Souza <jose.souza@intel.com>
> > ---
> >  .../drm/i915/display/intel_display_debugfs.c  | 23
> > +++++++++++++++++++
> >  1 file changed, 23 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> > b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> > index 8402e6ac9f76..37805615a221 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> > +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> > @@ -2093,6 +2093,23 @@ static int
> > i915_hdcp_sink_capability_show(struct seq_file *m, void *data)
> >  }
> >  DEFINE_SHOW_ATTRIBUTE(i915_hdcp_sink_capability);
> >  
> > +static int i915_psr_status_show(struct seq_file *m, void *data)
> > +{
> > +	struct drm_connector *connector = m->private;
> > +	struct intel_dp *intel_dp =
> > +		intel_attached_dp(to_intel_connector(connector));
> > +	struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
> > +
> > +	if (connector->status != connector_status_connected)
> > +		return -ENODEV;
> > +
> > +	if (!HAS_PSR(dev_priv))
> > +		return -ENODEV;
> > +
> > +	return intel_psr_status(m, intel_dp);
> > +}
> > +DEFINE_SHOW_ATTRIBUTE(i915_psr_status);
> > +
> >  #define LPSP_CAPABLE(COND) (COND ? seq_puts(m, "LPSP: capable\n")
> > : \
> >  				seq_puts(m, "LPSP: incapable\n"))
> >  
> > @@ -2268,6 +2285,12 @@ int intel_connector_debugfs_add(struct
> > drm_connector *connector)
> >  				    connector,
> > &i915_psr_sink_status_fops);
> >  	}
> >  
> > +	if (INTEL_GEN(dev_priv) >= 12 &&
> 
> I'd add this for all generations to unify the debugfs, and eventually
> phase out the non connector specific debugfs file.
> 
> And I'd add HAS_PSR() check here to not create the file if it's not
> possible instead of having the check in i915_psr_status_show().
> 
Hi Jani,
Thank you for checking the patch.
I'll update the code as per your recommendations.
> BR,
> Jani.
> 
> > +	    connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
> > +		debugfs_create_file("i915_psr_status", 0444, root,
> > +				    connector, &i915_psr_status_fops);
> > +	}
> > +
> >  	if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort
> > ||
> >  	    connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
> >  	    connector->connector_type == DRM_MODE_CONNECTOR_HDMIB) {
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06 10:14 [Intel-gfx] [PATCH v4 1/2] drm/i915/display: Support PSR Multiple Transcoders Gwan-gyeong Mun
2020-11-06 10:14 ` [Intel-gfx] [PATCH v4 2/2] drm/i915/display: Support Multiple Transcoders' PSR status on debugfs Gwan-gyeong Mun
2020-11-18 11:11   ` Jani Nikula
2020-12-11 10:45     ` Mun, Gwan-gyeong [this message]
2020-11-18 11:12   ` Jani Nikula
2020-12-04 16:06     ` Anshuman Gupta
2020-12-11 10:50       ` Mun, Gwan-gyeong
2020-11-06 12:12 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v4,1/2] drm/i915/display: Support PSR Multiple Transcoders Patchwork
2020-11-06 12:14 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-11-06 12:40 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-11-06 15:13 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2020-11-10 19:52 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v4,1/2] drm/i915/display: Support PSR Multiple Transcoders (rev2) Patchwork
2020-11-10 19:53 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-11-10 20:22 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-11-10 23:22 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2020-12-04 16:38 ` [Intel-gfx] [PATCH v4 1/2] drm/i915/display: Support PSR Multiple Transcoders Anshuman Gupta
2020-12-11 10:22   ` Mun, Gwan-gyeong

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=a3ed2ff26f0a8e6eed6d59c80783a117633c4a9b.camel@intel.com \
    --to=gwan-gyeong.mun@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.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 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.