[igt-dev] [PATCH i-g-t 2/2] tests/perf: print out GT size if unknown

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Mar 20 13:47:41 UTC 2018


Developers are running into issues on CFL where the GT size isn't
recognized. Let's print it out to make it easier to debug from the CI
traces.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 tests/perf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/perf.c b/tests/perf.c
index 6d8ff578..5ad30bb8 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -925,7 +925,8 @@ init_sys_info(void)
 				test_set_uuid = "882fa433-1f4a-4a67-a962-c741888fe5f5";
 				break;
 			default:
-				igt_debug("unsupported Skylake GT size\n");
+				igt_debug("unsupported Skylake GT%d size\n",
+					  intel_gt(devid) + 1);
 				return false;
 			}
 		} else if (IS_BROXTON(devid)) {
@@ -939,7 +940,8 @@ init_sys_info(void)
 				test_set_uuid = "f1792f32-6db2-4b50-b4b2-557128f1688d";
 				break;
 			default:
-				igt_debug("unsupported Kabylake GT size\n");
+				igt_debug("unsupported Kabylake GT%d\n",
+					  intel_gt(devid) + 1);
 				return false;
 			}
 		} else if (IS_GEMINILAKE(devid)) {
@@ -953,7 +955,8 @@ init_sys_info(void)
 				test_set_uuid = "577e8e2c-3fa0-4875-8743-3538d585e3b0";
 				break;
 			default:
-				igt_debug("unsupported Coffeelake GT size\n");
+				igt_debug("unsupported Coffeelake GT%d\n",
+					  intel_gt(devid) + 1);
 				return false;
 			}
 		} else if (IS_CANNONLAKE(devid)) {
-- 
2.16.2



More information about the igt-dev mailing list