Skip to content

tools/intel_vbt_decode: Improve the parser

Ville Syrjala igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23tools/intel_vbt_decode: update vbt defs from kerneltools/intel_vbt_decode.c tools/intel_vbt_defs.h+207 -530 replies
2/23tools/intel_vbt_decode: Decode more DVO portstools/intel_vbt_decode.c+9 -10 replies
3/23tools/intel_vbt_decode: Decode mode HDMI data ratestools/intel_vbt_decode.c+3 -00 replies
4/23tools/intel_vbt_decode: Clean up SSC freq decodingtools/intel_vbt_decode.c+20 -260 replies
5/23tools/intel_vbt_decode: Decode DP max link ratetools/intel_vbt_decode.c+49 -10 replies
6/23tools/intel_vbt_decode: Unify panel type handlingtools/intel_vbt_decode.c+3 -80 replies
7/23tools/intel_vbt_decode: Dump the block sizetools/intel_vbt_decode.c+3 -30 replies
8/23tools/intel_vbt_decode: Decode the LFP power blocktools/intel_vbt_decode.c+85 -00 replies
9/23tools/intel_vbt_decode: Dump the LVDS panel optionstools/intel_vbt_decode.c+95 -00 replies
10/23tools/intel_vbt_decode: Decode new fast link training ratetools/intel_vbt_decode.c+7 -00 replies
11/23tools/intel_vbt_decode: Parse the old fast link training rate correctlytools/intel_vbt_decode.c+15 -40 replies
12/23tools/intel_vbt_decode: Parse the new eDP max link ratetools/intel_vbt_decode.c+7 -00 replies
13/23tools/intel_vbt_decode: Include BDB block header in hex dumptools/intel_vbt_decode.c+1 -10 replies
14/23tools/intel_vbt_decode: Make copies of the BDB blockstools/intel_vbt_decode.c+57 -350 replies
15/23tools/intel_vbt_decode: Specify a minimum size for the BDB block copytools/intel_vbt_decode.c+46 -10 replies
16/23tools/intel_vbt_decode: Convert LFP data pointers to be relative to the data blocktools/intel_vbt_decode.c+53 -00 replies
17/23tools/intel_vbt_decode: Simplify LVDS data block parsingtools/intel_vbt_decode.c+12 -280 replies
18/23tools/intel_vbt_decode: Dump the panel PNP IDtools/intel_vbt_decode.c+24 -00 replies
19/23tools/intel_vbt_decode: Decode the end of the LFP datatools/intel_vbt_decode.c+72 -10 replies
20/23tools/intel_vbt_decode: Dump the LVDS data ptrstools/intel_vbt_decode.c+33 -00 replies
21/23tools/intel_vbt_decode: Validate LVDS data table pointerstools/intel_vbt_decode.c+90 -10 replies
22/23tools/intel_vbt_decode: Generate LVDS data table pointes if not providedtools/intel_vbt_decode.c+127 -10 replies
23/23tools/intel_vbt_decode: Warn if we lack the full definiton of the BDB blocktools/intel_vbt_decode.c+9 -00 replies

Reviews trailers per patch

None of the 23 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJani Nikula
SeriesR-b
1/23
2/23
3/23
4/23
5/23
6/23
7/23
8/23
9/23
10/23
11/23
12/23
13/23
14/23
15/23
16/23
17/23
18/23
19/23
20/23
21/23
22/23
23/23

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [igt-dev] [PATCH i-g-t 00/23] tools/intel_vbt_decode: Improve the parser

From: Ville Syrjälä <[email protected]>

Change the igt VBT parser to make copies of the BDB data blocks (just as we do in the kernel parser now). This makes it less hazardous/confusing if your block definition don't happent to match reality.

Eg. with the current scheme we could very easily misinterpret random bits from other blocks/etc. as our block data by just using an overly large structure for decoding. With the block copies being at least as big as out struct definitions the worst that can happen is that we just decode some extra zeroes rather than some random other bits.

The other thing I'm bringing over is the data pointer generation stuff for modern VBTS (which lack the LFP data table pointes block). That lets us keep decoding the LFP data block in exactly the same way on old and new VBTs.

And naturally we have massive gaps in what data the tool actually parses from the VBT. So lots of patches to just parse more stuff. I didn't do an exhaustive study on this topic, so still probably missing some useful things.

Ville Syrjälä (23):
tools/intel_vbt_decode: update vbt defs from kernel tools/intel_vbt_decode: Decode more DVO ports tools/intel_vbt_decode: Decode mode HDMI data rates tools/intel_vbt_decode: Clean up SSC freq decoding tools/intel_vbt_decode: Decode DP max link rate tools/intel_vbt_decode: Unify panel type handling tools/intel_vbt_decode: Dump the block size tools/intel_vbt_decode: Decode the LFP power block tools/intel_vbt_decode: Dump the LVDS panel options tools/intel_vbt_decode: Decode new fast link training rate tools/intel_vbt_decode: Parse the old fast link training rate
correctly
tools/intel_vbt_decode: Parse the new eDP max link rate tools/intel_vbt_decode: Include BDB block header in hex dump tools/intel_vbt_decode: Make copies of the BDB blocks tools/intel_vbt_decode: Specify a minimum size for the BDB block copy tools/intel_vbt_decode: Convert LFP data pointers to be relative to
the data block
tools/intel_vbt_decode: Simplify LVDS data block parsing tools/intel_vbt_decode: Dump the panel PNP ID tools/intel_vbt_decode: Decode the end of the LFP data tools/intel_vbt_decode: Dump the LVDS data ptrs tools/intel_vbt_decode: Validate LVDS data table pointers tools/intel_vbt_decode: Generate LVDS data table pointes if not
provided
tools/intel_vbt_decode: Warn if we lack the full definiton of the BDB
block

 tools/intel_vbt_decode.c | 919 ++++++++++++++++++++++++++++++++++-----
 tools/intel_vbt_defs.h   | 254 ++++++++---
 2 files changed, 1018 insertions(+), 155 deletions(-)
Signature · 1 line
2.35.1