diff mbox series

[2/2] drm/i915/dp_mst: Don't require DSC hblank quirk for a non-DSC compatible mode

Message ID 20241009110135.1216498-2-imre.deak@intel.com (mailing list archive)
State New, archived
Headers show
Series [1/2] drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation | expand

Commit Message

Imre Deak Oct. 9, 2024, 11:01 a.m. UTC
If an MST branch device doesn't support DSC for a given mode, but the
MST link has enough BW for the mode, assume that the branch device does
support the mode using an uncompressed stream.

Signed-off-by: Imre Deak <imre.deak@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp_mst.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Kandpal, Suraj Oct. 10, 2024, 3:48 a.m. UTC | #1
> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Imre
> Deak
> Sent: Wednesday, October 9, 2024 4:32 PM
> To: intel-gfx@lists.freedesktop.org
> Subject: [PATCH 2/2] drm/i915/dp_mst: Don't require DSC hblank quirk for a
> non-DSC compatible mode
> 
> If an MST branch device doesn't support DSC for a given mode, but the MST
> link has enough BW for the mode, assume that the branch device does
> support the mode using an uncompressed stream.
> 
> Signed-off-by: Imre Deak <imre.deak@intel.com>

LGTM,
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_dp_mst.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 2822ae1160034..1a2ff3e1cb68f 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -467,6 +467,9 @@ hblank_expansion_quirk_needs_dsc(const struct
> intel_connector *connector,
>  	if (mode_hblank_period_ns(adjusted_mode) > hblank_limit)
>  		return false;
> 
> +	if (!intel_dp_mst_dsc_get_slice_count(connector, crtc_state))
> +		return false;
> +
>  	return true;
>  }
> 
> --
> 2.44.2
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
index 2822ae1160034..1a2ff3e1cb68f 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
@@ -467,6 +467,9 @@  hblank_expansion_quirk_needs_dsc(const struct intel_connector *connector,
 	if (mode_hblank_period_ns(adjusted_mode) > hblank_limit)
 		return false;
 
+	if (!intel_dp_mst_dsc_get_slice_count(connector, crtc_state))
+		return false;
+
 	return true;
 }