[PATCH i-g-t 13/20] tools/intel_vbt_decode: Use .min_bdb_version to filter out PSR block on pre-165 VBTs

Ville Syrjala ville.syrjala at linux.intel.com
Fri May 31 14:23:47 UTC 2024


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

Block 9 on ALM was something different, then disappeared until
it got repurposed to serve as the PSR block starting from
version 165.

Utilize the new .min_bdb_version to filter out this block on
older VBTs. We'll make more use of this mechanism when we start
decoding the other side of this coin.

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

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index e414a1436a01..a77c1ec3335d 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -1791,10 +1791,6 @@ static void dump_psr(struct context *context,
 	int i;
 	uint32_t psr2_tp_time;
 
-	/* The same block ID was used for something else before? */
-	if (context->bdb->version < 165)
-		return;
-
 	psr2_tp_time = psr_block->psr2_tp2_tp3_wakeup_time;
 	for (i = 0; i < 16; i++) {
 		const struct psr_table *psr = &psr_block->psr_table[i];
@@ -2722,6 +2718,7 @@ struct dumper dumpers[] = {
 	},
 	{
 		.id = BDB_PSR,
+		.min_bdb_version = 165,
 		.name = "PSR block",
 		.dump = dump_psr,
 	},
-- 
2.44.1



More information about the igt-dev mailing list