diff mbox series

drm/i915/dsc: Expose dsc sink max slice count via debugfs

Message ID 20241213093008.2149452-1-swati2.sharma@intel.com (mailing list archive)
State New
Headers show
Series drm/i915/dsc: Expose dsc sink max slice count via debugfs | expand

Commit Message

Swati Sharma Dec. 13, 2024, 9:30 a.m. UTC
Number of DSC slices can be shown in the DSC debugfs so that
test can take a call whether the configuration can support forcing
bigjoiner/ultrajoiner.

v2: used intel_dp_is_edp() as the parameter to
    drm_dp_dsc_sink_max_slice_count() (Jani N)

Reviewed-by: Nemesa Garg <nemesa.garg@intel.com> (v1)
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3387
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Hogander, Jouni Dec. 17, 2024, 9:23 a.m. UTC | #1
On Fri, 2024-12-13 at 15:00 +0530, Swati Sharma wrote:
> Number of DSC slices can be shown in the DSC debugfs so that
> test can take a call whether the configuration can support forcing
> bigjoiner/ultrajoiner.
> 

This is now pushed to drm-intel-next.

BR,

Jouni Högander

> v2: used intel_dp_is_edp() as the parameter to
>     drm_dp_dsc_sink_max_slice_count() (Jani N)
> 
> Reviewed-by: Nemesa Garg <nemesa.garg@intel.com> (v1)
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3387
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> index 3eb7565cd83c..a7c744654274 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> @@ -1013,6 +1013,8 @@ static int i915_dsc_fec_support_show(struct
> seq_file *m, void *data)
>                                                                      
> DP_DSC_YCbCr444)));
>                 seq_printf(m, "DSC_Sink_BPP_Precision: %d\n",
>                            drm_dp_dsc_sink_bpp_incr(connector-
> >dp.dsc_dpcd));
> +               seq_printf(m, "DSC_Sink_Max_Slice_Count: %d\n",
> +                         
> drm_dp_dsc_sink_max_slice_count((connector->dp.dsc_dpcd),
> intel_dp_is_edp(intel_dp)));
>                 seq_printf(m, "Force_DSC_Enable: %s\n",
>                            str_yes_no(intel_dp->force_dsc_en));
>                 if (!intel_dp_is_edp(intel_dp))
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index 3eb7565cd83c..a7c744654274 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -1013,6 +1013,8 @@  static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
 								      DP_DSC_YCbCr444)));
 		seq_printf(m, "DSC_Sink_BPP_Precision: %d\n",
 			   drm_dp_dsc_sink_bpp_incr(connector->dp.dsc_dpcd));
+		seq_printf(m, "DSC_Sink_Max_Slice_Count: %d\n",
+			   drm_dp_dsc_sink_max_slice_count((connector->dp.dsc_dpcd), intel_dp_is_edp(intel_dp)));
 		seq_printf(m, "Force_DSC_Enable: %s\n",
 			   str_yes_no(intel_dp->force_dsc_en));
 		if (!intel_dp_is_edp(intel_dp))