From: Imre Deak <imre.deak@intel.com>
To: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: [PATCH 3/4] drm/i915/dp_mst: Track min link BPP as x16 fixed-point during mode validation
Date: Mon, 16 Feb 2026 09:04:20 +0200 [thread overview]
Message-ID: <20260216070421.714884-4-imre.deak@intel.com> (raw)
In-Reply-To: <20260216070421.714884-1-imre.deak@intel.com>
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>
---
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;
}
--
2.49.1
next prev parent reply other threads:[~2026-02-16 7:05 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 ` Imre Deak [this message]
2026-02-17 4:24 ` [PATCH 3/4] drm/i915/dp_mst: Track min link BPP as x16 fixed-point during mode validation Nautiyal, Ankit K
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=20260216070421.714884-4-imre.deak@intel.com \
--to=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