intel/tools: decode ACTHD printed by newer kernels

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22874>
This commit is contained in:
Marcin Ślusarz
2023-05-05 14:55:37 +02:00
committed by Marge Bot
parent 499f332a3a
commit d6ece34418

View File

@@ -566,6 +566,14 @@ read_data_file(FILE *file)
if (matched == 2)
acthd = ((uint64_t)reg << 32) | reg2;
matched = sscanf(line, " ACTHD_LDW: 0x%08x\n", &reg);
if (matched == 1)
acthd = reg;
matched = sscanf(line, " ACTHD_UDW: 0x%08x\n", &reg);
if (matched == 1)
acthd |= (uint64_t)reg << 32;
matched = sscanf(line, " PGTBL_ER: 0x%08x\n", &reg);
if (matched == 1 && reg)
print_pgtbl_err(reg, &devinfo);