From: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@linux.intel.com,
Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Subject: [PATCH i-g-t 4/4] tools/intel_vbt_decode: dump eDP data rate override field
Date: Fri, 17 Apr 2026 09:40:31 +0530 [thread overview]
Message-ID: <20260417041031.2187889-5-ankit.k.nautiyal@intel.com> (raw)
In-Reply-To: <20260417041031.2187889-1-ankit.k.nautiyal@intel.com>
Add decoding support for the eDP data rate override field introduced
in VBT version 263+.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
tools/intel_vbt_decode.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index a96b936d4b8e..1cc863f59808 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -1125,6 +1125,39 @@ static const char * const hdmi_frl_rate_str[] = {
[5] = "12 GT/s",
};
+static void dump_edp_data_rate_override(uint32_t edp_data_rate_override)
+{
+ int i;
+ static const uint32_t link_rates[BDB_263_VBT_EDP_NUM_RATES][2] = {
+ { BDB_263_VBT_EDP_LINK_RATE_1_62, 162000 },
+ { BDB_263_VBT_EDP_LINK_RATE_2_16, 216000 },
+ { BDB_263_VBT_EDP_LINK_RATE_2_43, 243000 },
+ { BDB_263_VBT_EDP_LINK_RATE_2_7, 270000 },
+ { BDB_263_VBT_EDP_LINK_RATE_3_24, 324000 },
+ { BDB_263_VBT_EDP_LINK_RATE_4_32, 432000 },
+ { BDB_263_VBT_EDP_LINK_RATE_5_4, 540000 },
+ { BDB_263_VBT_EDP_LINK_RATE_6_75, 675000 },
+ { BDB_263_VBT_EDP_LINK_RATE_8_1, 810000 },
+ { BDB_263_VBT_EDP_LINK_RATE_10, 1000000 },
+ { BDB_263_VBT_EDP_LINK_RATE_13_5, 1350000 },
+ { BDB_263_VBT_EDP_LINK_RATE_20, 2000000},
+ };
+
+ edp_data_rate_override &= BDB_263_VBT_EDP_RATES_MASK;
+
+ printf("\t\teDP data rate override:");
+
+ if (!edp_data_rate_override) {
+ printf("(none)\n");
+ return;
+ }
+ printf("\n");
+
+ for (i = 0; i < BDB_263_VBT_EDP_NUM_RATES; i++)
+ if (link_rates[i][0] & edp_data_rate_override)
+ printf("\t\t\t%d kbps\n", link_rates[i][1]);
+}
+
static void dump_child_device(struct context *context,
const struct child_device_config *child)
{
@@ -1285,6 +1318,9 @@ static void dump_child_device(struct context *context,
if (context->bdb->version >= 256)
printf("\t\tEFP panel index: %d\n", child->efp_index);
+
+ if (context->bdb->version >= 263)
+ dump_edp_data_rate_override(child->edp_data_rate_override);
}
static void dump_child_devices(struct context *context, const uint8_t *devices,
--
2.45.2
next prev parent reply other threads:[~2026-04-17 4:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-17 4:10 [PATCH i-g-t 0/4] intel_vbt_decode: Sync intel_vbt_defs.h with latest changes Ankit Nautiyal
2026-04-17 4:10 ` [PATCH i-g-t 1/4] tools/intel_vbt_decode: sync intel_vbt_defs.h with commit 1b85a9b04681 Ankit Nautiyal
2026-04-17 5:39 ` Karthik B S
2026-04-17 6:17 ` Nautiyal, Ankit K
2026-04-17 10:31 ` Ville Syrjälä
2026-04-17 11:54 ` Jani Nikula
2026-04-17 19:11 ` Ville Syrjälä
2026-04-17 19:18 ` Ville Syrjälä
2026-04-21 14:31 ` Nautiyal, Ankit K
2026-04-20 4:17 ` Nautiyal, Ankit K
2026-04-20 13:03 ` Kamil Konieczny
2026-04-20 4:54 ` Nautiyal, Ankit K
2026-04-17 4:10 ` [PATCH i-g-t 2/4] tools/intel_vbt_decode: dump eDP joiner enable field Ankit Nautiyal
2026-04-17 5:41 ` Karthik B S
2026-04-17 4:10 ` [PATCH i-g-t 3/4] tools/intel_vbt_decode: sync intel_vbt_defs.h with commit 4d33c77cf2c3 Ankit Nautiyal
2026-04-17 4:10 ` Ankit Nautiyal [this message]
2026-04-17 5:25 ` ✓ i915.CI.BAT: success for intel_vbt_decode: Sync intel_vbt_defs.h with latest changes (rev3) Patchwork
2026-04-17 5:48 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-20 13:54 ` ✗ Xe.CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2026-04-17 7:14 [PATCH i-g-t 0/4] intel_vbt_decode: Sync intel_vbt_defs.h with latest changes Ankit Nautiyal
2026-04-17 7:14 ` [PATCH i-g-t 4/4] tools/intel_vbt_decode: dump eDP data rate override field Ankit Nautiyal
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=20260417041031.2187889-5-ankit.k.nautiyal@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@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