[Intel-gfx] [PATCH v8 2/2] drm/i915/display: Support Multiple Transcoders' PSR status on debugfs
Gupta, Anshuman
anshuman.gupta at intel.com
Wed Dec 23 11:41:58 UTC 2020
> -----Original Message-----
> From: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> Sent: Wednesday, December 23, 2020 5:08 PM
> To: intel-gfx at lists.freedesktop.org
> Cc: Gupta, Anshuman <anshuman.gupta at intel.com>; Nikula, Jani
> <jani.nikula at intel.com>
> Subject: [PATCH v8 2/2] drm/i915/display: Support Multiple Transcoders'
> PSR status on debugfs
>
> 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'
> v5: Addressed JJani Nikula's review comments
> - Remove checking of Gen12 for i915_psr_status.
> - Add check of HAS_PSR()
> - Remove meaningless check routine.
>
> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> Cc: José Roberto de Souza <jose.souza at intel.com>
> Cc: Jani Nikula <jani.nikula at intel.com>
> Cc: Anshuman Gupta <anshuman.gupta at intel.com>
Looks good to me.
Reviewed-by: Anshuman Gupta <anshuman.gupta at intel.com>
> ---
> .../gpu/drm/i915/display/intel_display_debugfs.c | 16
> ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> index 041053167d7f..d2dd61c4ee0b 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> @@ -2224,6 +2224,16 @@ 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));
> +
> + 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"))
>
> @@ -2399,6 +2409,12 @@ int intel_connector_debugfs_add(struct
> drm_connector *connector)
> connector, &i915_psr_sink_status_fops);
> }
>
> + if (HAS_PSR(dev_priv) &&
> + 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) {
> --
> 2.25.0
More information about the Intel-gfx
mailing list