Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [CI] drm/i915/dp: Dump the LTTPR PHY descriptors
@ 2024-09-09 12:16 Imre Deak
  2024-09-09 13:20 ` Jani Nikula
  0 siblings, 1 reply; 3+ messages in thread
From: Imre Deak @ 2024-09-09 12:16 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ville Syrjälä, Ankit Nautiyal

Dump the descriptor of the detected LTTPRs in non-transparent mode to
help the debugging related to LTTPRs easier.

v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
    equivalent.
v3: Add empty line between license and header section. (Ankit)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> # v1
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
---

Resending [1] now, after the corresponding DRM core helper is merged to
drm-intel-next.

[1] https://lore.kernel.org/all/20240708190029.271247-7-imre.deak@intel.com

 drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
index f45797c1a2051..b7bd8135c1138 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#include <drm/display/drm_dp_helper.h>
+
 #include <linux/debugfs.h>
 
 #include <drm/display/drm_dp_helper.h>
@@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
 
 	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
 
-	for (i = 0; i < lttpr_count; i++)
+	for (i = 0; i < lttpr_count; i++) {
 		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
+		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
+	}
 
 	return lttpr_count;
 }
-- 
2.44.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [CI] drm/i915/dp: Dump the LTTPR PHY descriptors
  2024-09-09 12:16 [CI] drm/i915/dp: Dump the LTTPR PHY descriptors Imre Deak
@ 2024-09-09 13:20 ` Jani Nikula
  2024-09-09 13:35   ` Imre Deak
  0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2024-09-09 13:20 UTC (permalink / raw)
  To: Imre Deak, intel-gfx; +Cc: Ville Syrjälä, Ankit Nautiyal

On Mon, 09 Sep 2024, Imre Deak <imre.deak@intel.com> wrote:
> Dump the descriptor of the detected LTTPRs in non-transparent mode to
> help the debugging related to LTTPRs easier.
>
> v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
>     equivalent.
> v3: Add empty line between license and header section. (Ankit)
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> # v1
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
> ---
>
> Resending [1] now, after the corresponding DRM core helper is merged to
> drm-intel-next.
>
> [1] https://lore.kernel.org/all/20240708190029.271247-7-imre.deak@intel.com
>
>  drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> index f45797c1a2051..b7bd8135c1138 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> @@ -21,6 +21,8 @@
>   * IN THE SOFTWARE.
>   */
>  
> +#include <drm/display/drm_dp_helper.h>
> +
>  #include <linux/debugfs.h>
>  
>  #include <drm/display/drm_dp_helper.h>

It's already here now.

BR,
Jani.

> @@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
>  
>  	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
>  
> -	for (i = 0; i < lttpr_count; i++)
> +	for (i = 0; i < lttpr_count; i++) {
>  		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
> +		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
> +	}
>  
>  	return lttpr_count;
>  }

-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [CI] drm/i915/dp: Dump the LTTPR PHY descriptors
  2024-09-09 13:20 ` Jani Nikula
@ 2024-09-09 13:35   ` Imre Deak
  0 siblings, 0 replies; 3+ messages in thread
From: Imre Deak @ 2024-09-09 13:35 UTC (permalink / raw)
  To: Jani Nikula; +Cc: intel-gfx, Ville Syrjälä, Ankit Nautiyal

On Mon, Sep 09, 2024 at 04:20:15PM +0300, Jani Nikula wrote:
> On Mon, 09 Sep 2024, Imre Deak <imre.deak@intel.com> wrote:
> > Dump the descriptor of the detected LTTPRs in non-transparent mode to
> > help the debugging related to LTTPRs easier.
> >
> > v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
> >     equivalent.
> > v3: Add empty line between license and header section. (Ankit)
> >
> > Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> # v1
> > Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> >
> > Resending [1] now, after the corresponding DRM core helper is merged to
> > drm-intel-next.
> >
> > [1] https://lore.kernel.org/all/20240708190029.271247-7-imre.deak@intel.com
> >
> >  drivers/gpu/drm/i915/display/intel_dp_link_training.c | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> > index f45797c1a2051..b7bd8135c1138 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
> > @@ -21,6 +21,8 @@
> >   * IN THE SOFTWARE.
> >   */
> >  
> > +#include <drm/display/drm_dp_helper.h>
> > +
> >  #include <linux/debugfs.h>
> >  
> >  #include <drm/display/drm_dp_helper.h>
> 
> It's already here now.

Yep, thanks for spotting it.

> BR,
> Jani.
> 
> > @@ -210,8 +212,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
> >  
> >  	lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
> >  
> > -	for (i = 0; i < lttpr_count; i++)
> > +	for (i = 0; i < lttpr_count; i++) {
> >  		intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
> > +		drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
> > +	}
> >  
> >  	return lttpr_count;
> >  }
> 
> -- 
> Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-09 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 12:16 [CI] drm/i915/dp: Dump the LTTPR PHY descriptors Imre Deak
2024-09-09 13:20 ` Jani Nikula
2024-09-09 13:35   ` Imre Deak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox