Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
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
Date: Wed,  9 Oct 2024 14:01:35 +0300	[thread overview]
Message-ID: <20241009110135.1216498-2-imre.deak@intel.com> (raw)
In-Reply-To: <20241009110135.1216498-1-imre.deak@intel.com>

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(+)

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


  reply	other threads:[~2024-10-09 11:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-09 11:01 [PATCH 1/2] drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation Imre Deak
2024-10-09 11:01 ` Imre Deak [this message]
2024-10-10  3:48   ` [PATCH 2/2] drm/i915/dp_mst: Don't require DSC hblank quirk for a non-DSC compatible mode Kandpal, Suraj
2024-10-09 13:45 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation Patchwork
2024-10-10  3:54 ` [PATCH 1/2] " Kandpal, Suraj
2024-10-14 14:29   ` Imre Deak
2024-10-10 17:37 ` ✗ Fi.CI.IGT: failure for series starting with [1/2] " Patchwork
2024-10-14 14:31   ` Imre Deak

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=20241009110135.1216498-2-imre.deak@intel.com \
    --to=imre.deak@intel.com \
    --cc=intel-gfx@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