[PATCH i-g-t 05/13] tools/intel_vbt_decode: Dump AIM offsets

Ville Syrjala ville.syrjala at linux.intel.com
Fri Mar 22 20:41:17 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Dump the AIM offsets from the header. I don't think these should
be actually in ant of modern VBT, but no harm in dumping them out
anyway.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_vbt_decode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index ead3dd6450e9..9c0774248e56 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -2734,6 +2734,8 @@ static void dump_headers(struct context *context)
 	printf("\tVBT size:\t\t0x%04x (%u)\n", vbt->vbt_size, vbt->vbt_size);
 	printf("\tVBT checksum:\t\t0x%02x\n", vbt->vbt_checksum);
 	printf("\tBDB offset:\t\t0x%08x (%u)\n", vbt->bdb_offset, vbt->bdb_offset);
+	for (i = 0; i < ARRAY_SIZE(vbt->aim_offset); i++)
+		printf("\tAIM #%d offset:\t\t0x%08x (%u)\n", i+1, vbt->aim_offset[i], vbt->aim_offset[i]);
 
 	printf("\n");
 
-- 
2.43.2



More information about the igt-dev mailing list