From: "Michał Grzelak" <michal.grzelak@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Pranay Samala" <pranay.samala@intel.com>,
"Jani Nikula" <jani.nikula@intel.com>,
"Suraj Kandpal" <suraj.kandpal@intel.com>,
"Michał Grzelak" <michal.grzelak@intel.com>
Subject: [PATCH i-g-t v6 2/6] tools/vbt_decode: rename VBT#57 related vars
Date: Wed, 9 Sep 2026 20:34:47 +0200 [thread overview]
Message-ID: <20260909183451.2630263-3-michal.grzelak@intel.com> (raw)
In-Reply-To: <20260909183451.2630263-1-michal.grzelak@intel.com>
Rename loop iterators n, i, j into idx, row and col. Rename
vswing_preemph[] into vspeo_dp14_levels[] since vswing_preemph is an
already overloaded name. Rename vs into vspeo, which stands for VS/PE-O,
which in turn expands to VSwing / Pre-Emphasis Override.
v5->v6
- rename table of rows' description (Pranay)
Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
---
tools/intel_vbt_decode.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 0ea7582745..9f059bfbbb 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -3452,7 +3452,7 @@ static void dump_compression_parameters(struct context *context,
}
}
-static const char * const vswing_preemph[10] = {
+static const char * const vspeo_dp14_levels[10] = {
"V0-P0",
"V0-P1",
"V0-P2",
@@ -3468,19 +3468,19 @@ static const char * const vswing_preemph[10] = {
static void dump_vswing_preemphasis(struct context *context,
const struct bdb_block *block)
{
- const struct bdb_vswing_preemph *vs = block_data(block);
+ const struct bdb_vswing_preemph *vspeo = block_data(block);
- printf("\tNumber of vswing tables: %d\n", vs->num_tables);
- printf("\tNumber of columns: %d\n", vs->num_columns);
+ printf("\tNumber of vswing tables: %d\n", vspeo->num_tables);
+ printf("\tNumber of columns: %d\n", vspeo->num_columns);
- for (int n = 0; n < vs->num_tables; n++) {
- printf("\tVswing Table #%d:\n", n+1);
+ for (int idx = 0; idx < vspeo->num_tables; idx++) {
+ printf("\tVswing Table #%d:\n", idx+1);
- for (int i = 0; i < 10; i++) {
- printf("\t\t%s: ", vswing_preemph[i]);
+ for (int row = 0; row < 10; row++) {
+ printf("\t\t%s: ", vspeo_dp14_levels[row]);
- for (int j = 0; j < vs->num_columns; j++)
- printf(" 0x%08x", vs->tables[n * 10 * vs->num_columns + i * vs->num_columns + j]);
+ for (int col = 0; col < vspeo->num_columns; col++)
+ printf(" 0x%08x", vspeo->tables[idx * 10 * vspeo->num_columns + row * vspeo->num_columns + col]);
printf("\n");
}
}
--
2.45.2
next prev parent reply other threads:[~2026-09-09 18:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 18:34 [PATCH i-g-t v6 0/6] Vswing / Pre-emphasis Override decoding Michał Grzelak
2026-09-09 18:34 ` [PATCH i-g-t v6 1/6] tools/vbt_decode: fix tables' offset reading Michał Grzelak
2026-09-09 18:34 ` Michał Grzelak [this message]
2026-09-09 18:34 ` [PATCH i-g-t v6 3/6] tools/vbt_decode: validate DEVICE env var Michał Grzelak
2026-09-09 18:34 ` [PATCH i-g-t v6 4/6] tools/vbt_decode: parse & dump VS/PE-O tables for Snps Michał Grzelak
2026-09-09 18:34 ` [PATCH i-g-t v6 5/6] tools/vbt_decode: parse & dump VS/PE-O tables for Combo Michał Grzelak
2026-09-09 18:34 ` [PATCH i-g-t v6 6/6] tools/vbt_decode: change VBT#57 Combo's layout Michał Grzelak
2026-09-09 23:50 ` ✓ Xe.CI.BAT: success for Vswing / Pre-emphasis Override decoding (rev5) Patchwork
2026-09-10 0:25 ` ✓ i915.CI.BAT: " Patchwork
2026-09-10 11:23 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-10 19:51 ` ✗ i915.CI.Full: " 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=20260909183451.2630263-3-michal.grzelak@intel.com \
--to=michal.grzelak@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=pranay.samala@intel.com \
--cc=suraj.kandpal@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.