[PATCH i-g-t 08/13] tools/intel_vbt_decode: Check version before decoding lace_aggressiveness_profile

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


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>
---
 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);
 
-- 
2.43.2



More information about the igt-dev mailing list