diff mbox series

[3/4] drm/i914/xe3lpd: Increase bigjoiner limitations

Message ID 20241024035552.94363-4-suraj.kandpal@intel.com (mailing list archive)
State New, archived
Headers show
Series Add 6k resolution support for a single CRTC | expand

Commit Message

Kandpal, Suraj Oct. 24, 2024, 3:55 a.m. UTC
With 6k resolution support for a single crtc being added
bigjoiner will only come into picture when hdisplay > 6144

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Nautiyal, Ankit K Oct. 24, 2024, 11:51 a.m. UTC | #1
On 10/24/2024 9:25 AM, Suraj Kandpal wrote:
> With 6k resolution support for a single crtc being added
> bigjoiner will only come into picture when hdisplay > 6144
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>


> ---
>   drivers/gpu/drm/i915/display/intel_dp.c | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index fbb096be02ad..e0baad468d76 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1313,14 +1313,17 @@ bool intel_dp_needs_joiner(struct intel_dp *intel_dp,
>   			   int num_joined_pipes)
>   {
>   	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
> +	int hdisplay_limit;
>   
>   	if (!intel_dp_has_joiner(intel_dp))
>   		return false;
>   
>   	num_joined_pipes /= 2;
>   
> +	hdisplay_limit = DISPLAY_VER(i915) >= 30 ? 6144 : 5120;
> +
>   	return clock > num_joined_pipes * i915->display.cdclk.max_dotclk_freq ||
> -	       hdisplay > num_joined_pipes * 5120;
> +	       hdisplay > num_joined_pipes * hdisplay_limit;
>   }
>   
>   int intel_dp_num_joined_pipes(struct intel_dp *intel_dp,
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index fbb096be02ad..e0baad468d76 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1313,14 +1313,17 @@  bool intel_dp_needs_joiner(struct intel_dp *intel_dp,
 			   int num_joined_pipes)
 {
 	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
+	int hdisplay_limit;
 
 	if (!intel_dp_has_joiner(intel_dp))
 		return false;
 
 	num_joined_pipes /= 2;
 
+	hdisplay_limit = DISPLAY_VER(i915) >= 30 ? 6144 : 5120;
+
 	return clock > num_joined_pipes * i915->display.cdclk.max_dotclk_freq ||
-	       hdisplay > num_joined_pipes * 5120;
+	       hdisplay > num_joined_pipes * hdisplay_limit;
 }
 
 int intel_dp_num_joined_pipes(struct intel_dp *intel_dp,