From: Jani Nikula <jani.nikula@linux.intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 00/23] tools/intel_vbt_decode: Improve the parser
Date: Wed, 22 Jun 2022 14:01:25 +0300 [thread overview]
Message-ID: <87czf1rmgq.fsf@intel.com> (raw)
In-Reply-To: <YqmWLK1rB5h5bukr@platvala-desk.ger.corp.intel.com>
On Wed, 15 Jun 2022, Petri Latvala <petri.latvala@intel.com> wrote:
> On Wed, Jun 15, 2022 at 09:44:26AM +0300, Jani Nikula wrote:
>> On Wed, 15 Jun 2022, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
>> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >
>> > 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.
>>
>> I glanced through all this, and it LGTM, but can't claim I did a
>> detailed, thorough review. I also don't think it should really be
>> necessary for this particular tool. If the changes work for you, it's
>> good enough for me.
>>
>> Cc: Petri, good to go with that?
>
> Yeah, ack.
Ville, I think you can just merge.
You can put
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
on it, but with the caveat above.
--
Jani Nikula, Intel Open Source Graphics Center
prev parent reply other threads:[~2022-06-22 11:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 23:30 [igt-dev] [PATCH i-g-t 00/23] tools/intel_vbt_decode: Improve the parser Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 01/23] tools/intel_vbt_decode: update vbt defs from kernel Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 02/23] tools/intel_vbt_decode: Decode more DVO ports Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 03/23] tools/intel_vbt_decode: Decode mode HDMI data rates Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 04/23] tools/intel_vbt_decode: Clean up SSC freq decoding Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 05/23] tools/intel_vbt_decode: Decode DP max link rate Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 06/23] tools/intel_vbt_decode: Unify panel type handling Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 07/23] tools/intel_vbt_decode: Dump the block size Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 08/23] tools/intel_vbt_decode: Decode the LFP power block Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 09/23] tools/intel_vbt_decode: Dump the LVDS panel options Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 10/23] tools/intel_vbt_decode: Decode new fast link training rate Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 11/23] tools/intel_vbt_decode: Parse the old fast link training rate correctly Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 12/23] tools/intel_vbt_decode: Parse the new eDP max link rate Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 13/23] tools/intel_vbt_decode: Include BDB block header in hex dump Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 14/23] tools/intel_vbt_decode: Make copies of the BDB blocks Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 15/23] tools/intel_vbt_decode: Specify a minimum size for the BDB block copy Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 16/23] tools/intel_vbt_decode: Convert LFP data pointers to be relative to the data block Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 17/23] tools/intel_vbt_decode: Simplify LVDS data block parsing Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 18/23] tools/intel_vbt_decode: Dump the panel PNP ID Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 19/23] tools/intel_vbt_decode: Decode the end of the LFP data Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 20/23] tools/intel_vbt_decode: Dump the LVDS data ptrs Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 21/23] tools/intel_vbt_decode: Validate LVDS data table pointers Ville Syrjala
2022-06-14 23:30 ` [igt-dev] [PATCH i-g-t 22/23] tools/intel_vbt_decode: Generate LVDS data table pointes if not provided Ville Syrjala
2022-06-14 23:31 ` [igt-dev] [PATCH i-g-t 23/23] tools/intel_vbt_decode: Warn if we lack the full definiton of the BDB block Ville Syrjala
2022-06-15 0:24 ` [igt-dev] ✗ Fi.CI.BAT: failure for tools/intel_vbt_decode: Improve the parser Patchwork
2022-06-15 6:44 ` [igt-dev] [PATCH i-g-t 00/23] " Jani Nikula
2022-06-15 8:19 ` Petri Latvala
2022-06-22 11:01 ` Jani Nikula [this message]
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=87czf1rmgq.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@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