From: Karthik B S <karthik.b.s@intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: <kamil.konieczny@linux.intel.com>,
<ville.syrjala@linux.intel.com>, <jani.nikula@linux.intel.com>
Subject: Re: [PATCH i-g-t 6/8] tools/intel_vbt_decode: dump eDP data rate override field
Date: Mon, 27 Apr 2026 10:47:10 +0530 [thread overview]
Message-ID: <761b1815-3012-4f5a-9916-508226fff572@intel.com> (raw)
In-Reply-To: <20260422034335.2326098-7-ankit.k.nautiyal@intel.com>
On 4/22/2026 9:13 AM, Ankit Nautiyal wrote:
> 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 7785e9e82b1f..6c0273aeecfc 100644
> --- a/tools/intel_vbt_decode.c
> +++ b/tools/intel_vbt_decode.c
> @@ -1121,6 +1121,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");
Nit: Add a space before (none)?
> + 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]);
Nit: '%d' -> '%u' ?
Both can be fixed during merge. With this,
Reviewed-by: Karthik B S <karthik.b.s@intel.com>
> +}
> +
> static void dump_child_device(struct context *context,
> const struct child_device_config *child)
> {
> @@ -1281,6 +1314,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,
next prev parent reply other threads:[~2026-04-27 5:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 3:43 [PATCH i-g-t 0/8] intel_vbt_decode: Sync intel_vbt_defs.h with latest changes Ankit Nautiyal
2026-04-22 3:43 ` [PATCH i-g-t 1/8] include/linux_scaffold: Add BIT_U{8,16,32} macros Ankit Nautiyal
2026-04-27 5:07 ` Karthik B S
2026-04-27 12:31 ` Nautiyal, Ankit K
2026-04-22 3:43 ` [PATCH i-g-t 2/8] tools/intel_vbt_decode.c: Include linux_scaffold.h Ankit Nautiyal
2026-04-27 5:09 ` Karthik B S
2026-04-22 3:43 ` [PATCH i-g-t 3/8] tools/intel_vbt_defs: sync intel_vbt_defs.h with kernel commit 4d33c77cf2c3 Ankit Nautiyal
2026-04-27 5:12 ` Karthik B S
2026-04-22 3:43 ` [PATCH i-g-t 4/8] tools/intel_vbt_defs: sync intel_vbt_defs.h with kernel commit 203c7904f2d8 Ankit Nautiyal
2026-04-27 5:14 ` Karthik B S
2026-04-22 3:43 ` [PATCH i-g-t 5/8] tools/intel_vbt_defs: sync intel_vbt_defs.h with kernel commit 1b85a9b04681 Ankit Nautiyal
2026-04-27 5:14 ` Karthik B S
2026-04-22 3:43 ` [PATCH i-g-t 6/8] tools/intel_vbt_decode: dump eDP data rate override field Ankit Nautiyal
2026-04-27 5:17 ` Karthik B S [this message]
2026-04-27 12:38 ` Nautiyal, Ankit K
2026-04-22 3:43 ` [PATCH i-g-t 7/8] tools/intel_vbt_decode: dump eDP joiner enable field Ankit Nautiyal
2026-04-22 3:43 ` [PATCH i-g-t 8/8] tools/intel_vbt_decode: Dump dedicated_external and dyn_port_over_tc fields Ankit Nautiyal
2026-04-27 5:17 ` Karthik B S
2026-04-22 5:45 ` ✓ Xe.CI.BAT: success for intel_vbt_decode: Sync intel_vbt_defs.h with latest changes (rev5) Patchwork
2026-04-22 5:51 ` ✗ i915.CI.BAT: failure " Patchwork
2026-04-22 9:20 ` ✓ Xe.CI.FULL: success " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2026-04-27 12:45 [PATCH i-g-t 0/8] intel_vbt_decode: Sync intel_vbt_defs.h with latest changes Ankit Nautiyal
2026-04-27 12:46 ` [PATCH i-g-t 6/8] 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=761b1815-3012-4f5a-9916-508226fff572@intel.com \
--to=karthik.b.s@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=kamil.konieczny@linux.intel.com \
--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