From: Charlton Lin <charlton.lin@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: "Charlton Lin" <charlton.lin@intel.com>,
"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Khaled Almahallawy" <khaled.almahallawy@intel.com>,
"Sean Paul" <seanpaul@chromium.org>
Subject: [RFC] drm/i915/dp: Log message when limiting SST link rate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
Date: Thu, 29 Feb 2024 23:49:23 -0800 [thread overview]
Message-ID: <20240301074923.485807-1-charlton.lin@intel.com> (raw)
Driver currently limits link rate up to HBR3 in SST mode. Log a
message with monitor vendor, product id, and MSTM_CAP to
help understand what monitors are being downgraded by this limit.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Khaled Almahallawy <khaled.almahallawy@intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Charlton Lin <charlton.lin@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 6ece2c563c7a..0b2d6d88fd37 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2437,6 +2437,25 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,
false,
&limits);
+ if (intel_dp_max_common_rate(intel_dp) > limits.max_rate) {
+ u8 mstm_cap;
+ u32 panel_id = drm_edid_get_panel_id(&intel_dp->aux.ddc);
+ char vend[4];
+ u16 product_id;
+
+ drm_dbg_kms(&i915->drm,
+ "Limiting LR from max common rate %d to %d\n",
+ intel_dp_max_common_rate(intel_dp), limits.max_rate);
+
+ drm_edid_decode_panel_id(panel_id, vend, &product_id);
+
+ if (intel_dp->dpcd[DP_DPCD_REV] >= DP_DPCD_REV_12 &&
+ drm_dp_dpcd_readb(&intel_dp->aux, DP_MSTM_CAP, &mstm_cap) == 1)
+ drm_dbg_kms(&i915->drm,
+ "Manufacturer=%s Model=%x Sink MSTM_CAP=%x\n",
+ vend, product_id, mstm_cap);
+ }
+
if (!dsc_needed) {
/*
* Optimize for slow and wide for everything, because there are some
--
2.25.1
next reply other threads:[~2024-03-01 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 7:49 Charlton Lin [this message]
2024-03-01 9:07 ` [RFC] drm/i915/dp: Log message when limiting SST link rate Jani Nikula
2024-03-01 9:18 ` Ville Syrjälä
2024-03-01 14:04 ` ✗ Fi.CI.BAT: failure for drm/i915/dp: Log message when limiting SST link rate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patchwork
2024-04-02 17:26 ` [RFC] " Manasi Navare
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=20240301074923.485807-1-charlton.lin@intel.com \
--to=charlton.lin@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=khaled.almahallawy@intel.com \
--cc=seanpaul@chromium.org \
--cc=ville.syrjala@linux.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