From: Imre Deak <imre.deak@intel.com>
To: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Cc: Vinod Govindapillai <vinod.govindapillai@intel.com>
Subject: [PATCH 1/4] drm/i915/dp: Add missing slice count check during mode validation
Date: Mon, 16 Feb 2026 09:04:18 +0200 [thread overview]
Message-ID: <20260216070421.714884-2-imre.deak@intel.com> (raw)
In-Reply-To: <20260216070421.714884-1-imre.deak@intel.com>
Add the missing check for a valid slice count during
mode validation when DSC is enabled.
Cc: Vinod Govindapillai <vinod.govindapillai@intel.com>
Fixes: 745395b51c26 ("drm/i915/dp: Add intel_dp_mode_valid_with_dsc()")
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index b5fe7d8ba5864..d1caa20370123 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2595,6 +2595,9 @@ bool intel_dp_mode_valid_with_dsc(struct intel_connector *connector,
if (min_bpp_x16 <= 0 || min_bpp_x16 > max_bpp_x16)
return false;
+ if (dsc_slice_count == 0)
+ return false;
+
return is_bw_sufficient_for_dsc_config(intel_dp,
link_clock, lane_count,
mode_clock, mode_hdisplay,
--
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 ` Imre Deak [this message]
2026-02-17 4:22 ` [PATCH 1/4] drm/i915/dp: Add missing slice count check during mode validation 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
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-2-imre.deak@intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=vinod.govindapillai@intel.com \
/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