[PATCH i-g-t 08/13] tools/intel_vbt_decode: Check version before decoding lace_aggressiveness_profile
Jani Nikula
jani.nikula at intel.com
Thu Apr 11 13:03:33 UTC 2024
On Fri, 22 Mar 2024, Ville Syrjala <ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> The LFP power lace_aggressiveness_profile was introduced in
> VBT verson 210. Check for that version before deocoding the
> information.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula at intel.com>
> ---
> tools/intel_vbt_decode.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
> index 7cfa357ac526..fa9c45920853 100644
> --- a/tools/intel_vbt_decode.c
> +++ b/tools/intel_vbt_decode.c
> @@ -1810,6 +1810,9 @@ static void dump_lfp_power(struct context *context,
> lfp_block->als[i].lux);
> }
>
> + if (context->bdb->version < 210)
> + return;
> +
> printf("\tDisplay LACE aggressiveness profile: %d\n",
> lfp_block->lace_aggressiveness_profile);
--
Jani Nikula, Intel
More information about the igt-dev
mailing list