Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Imre Deak <imre.deak@intel.com>,
	<intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 3/4] drm/i915/dp_mst: Track min link BPP as x16 fixed-point during mode validation
Date: Tue, 17 Feb 2026 09:54:15 +0530	[thread overview]
Message-ID: <29d194b5-743f-45eb-8a67-0f15614554ea@intel.com> (raw)
In-Reply-To: <20260216070421.714884-4-imre.deak@intel.com>


On 2/16/2026 12:34 PM, Imre Deak wrote:
> Track the minimum link BPP as an x16 fixed-point value and, for
> clarity, rename the variable storing it to min_link_bpp_x16.
>
> Signed-off-by: Imre Deak <imre.deak@intel.com>

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


> ---
>   drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 29713075e4135..7ca2e2245fc70 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -1463,10 +1463,10 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>   	struct intel_dp *intel_dp = connector->mst.dp;
>   	struct drm_dp_mst_topology_mgr *mgr = &intel_dp->mst.mgr;
>   	struct drm_dp_mst_port *port = connector->mst.port;
> -	const int min_bpp = 18;
>   	int max_rate, mode_rate, max_lanes, max_link_clock;
>   	unsigned long bw_overhead_flags =
>   		DRM_DP_BW_OVERHEAD_MST | DRM_DP_BW_OVERHEAD_SSC_REF_CLK;
> +	int min_link_bpp_x16 = fxp_q4_from_int(18);
>   	int ret;
>   	bool dsc = false;
>   	int target_clock = mode->clock;
> @@ -1498,7 +1498,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>   					       max_link_clock, max_lanes);
>   	mode_rate = intel_dp_link_required(max_link_clock, max_lanes,
>   					   mode->clock, mode->hdisplay,
> -					   fxp_q4_from_int(min_bpp),
> +					   min_link_bpp_x16,
>   					   bw_overhead_flags);
>   
>   	/*
> @@ -1518,7 +1518,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>   		return ret;
>   
>   	if (mode_rate > max_rate ||
> -	    drm_dp_calc_pbn_mode(mode->clock, min_bpp << 4) > port->full_pbn) {
> +	    drm_dp_calc_pbn_mode(mode->clock, min_link_bpp_x16) > port->full_pbn) {
>   		*status = MODE_CLOCK_HIGH;
>   		return 0;
>   	}

  reply	other threads:[~2026-02-17  4:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-16  7:04 [PATCH 0/4] drm/i915/dp_mst: Allow DSC passthrough modes during validation Imre Deak
2026-02-16  7:04 ` [PATCH 1/4] drm/i915/dp: Add missing slice count check during mode validation Imre Deak
2026-02-17  4:22   ` Nautiyal, Ankit K
2026-02-16  7:04 ` [PATCH 2/4] drm/i915/dp: Export intel_dp_compute_min_compressed_bpp_x16() Imre Deak
2026-02-17  4:23   ` Nautiyal, Ankit K
2026-02-16  7:04 ` [PATCH 3/4] drm/i915/dp_mst: Track min link BPP as x16 fixed-point during mode validation Imre Deak
2026-02-17  4:24   ` Nautiyal, Ankit K [this message]
2026-02-16  7:04 ` [PATCH 4/4] drm/i915/dp_mst: Allow modes requiring compression for DSC passthrough Imre Deak
2026-02-17  4:53   ` Nautiyal, Ankit K
2026-02-17  8:59     ` Imre Deak
2026-02-17 12:27       ` Nautiyal, Ankit K
2026-02-16  7:11 ` ✓ CI.KUnit: success for drm/i915/dp_mst: Allow DSC passthrough modes during validation Patchwork
2026-02-16  7:27 ` ✗ CI.checksparse: warning " Patchwork
2026-02-16  7:47 ` ✓ Xe.CI.BAT: success " Patchwork
2026-02-16  8:59 ` ✗ Xe.CI.FULL: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29d194b5-743f-45eb-8a67-0f15614554ea@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox