[igt-dev] [PATCH 1/5] i915/gem_mocs_settings: log the engine and MOCS index

Lucas De Marchi lucas.demarchi at intel.com
Thu Jul 25 21:45:07 UTC 2019


I forgot to say: for this series the correspondent TGL changes should be
in the next version of https://patchwork.freedesktop.org/series/63670/

Lucas De Marchi

On Thu, Jul 25, 2019 at 01:33:50PM -0700, Lucas De Marchi wrote:
>This helps to identify which entry is wrong in the table.
>
>Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
>---
> tests/i915/gem_mocs_settings.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
>diff --git a/tests/i915/gem_mocs_settings.c b/tests/i915/gem_mocs_settings.c
>index 1a311b8c..7b1718f4 100644
>--- a/tests/i915/gem_mocs_settings.c
>+++ b/tests/i915/gem_mocs_settings.c
>@@ -322,8 +322,10 @@ static void check_control_registers(int fd,
> 	for (int index = 0; index < table.size; index++) {
> 		if (!table.table[index].used)
> 			continue;
>-		igt_assert_eq_u32(read_regs[index],
>-				  table.table[index].control_value);
>+
>+		igt_assert_f(
>+			read_regs[index] == table.table[index].control_value,
>+			"engine=%u index=%u", engine, index);
> 	}
>
> 	munmap(read_regs, 4096);
>-- 
>2.21.0
>


More information about the igt-dev mailing list