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:

committed by
Marge Bot

parent
499f332a3a
commit
d6ece34418
@@ -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", ®);
|
||||
if (matched == 1)
|
||||
acthd = reg;
|
||||
|
||||
matched = sscanf(line, " ACTHD_UDW: 0x%08x\n", ®);
|
||||
if (matched == 1)
|
||||
acthd |= (uint64_t)reg << 32;
|
||||
|
||||
matched = sscanf(line, " PGTBL_ER: 0x%08x\n", ®);
|
||||
if (matched == 1 && reg)
|
||||
print_pgtbl_err(reg, &devinfo);
|
||||
|
Reference in New Issue
Block a user