summaryrefslogtreecommitdiff
path: root/tests/pm_sseu.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-02-19 14:35:21 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-02-19 14:45:28 +0000
commitf6820d90eb6853c7f4ce8ba7e5668d4ff9bf8984 (patch)
treed7c1f82f390771651906cc6a737b1977e8974fbd /tests/pm_sseu.c
parentbf777c92448d51010aba51d1f1b657b0fdc673a6 (diff)
tests/pm_sseu: dump the bit of sysfs
We're seeing failures on the CI but we're missing the dump of what has been read to help us understand what's going wrong. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/pm_sseu.c')
-rw-r--r--tests/pm_sseu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c
index 2a2f06bb..41e1c9fa 100644
--- a/tests/pm_sseu.c
+++ b/tests/pm_sseu.c
@@ -154,6 +154,9 @@ dbg_get_status(struct status *stat)
memset(stat, 0, sizeof(*stat));
dbg_get_status_section("SSEU Device Info", &first, &last);
+ for (char *tmp = first; tmp < last; tmp++)
+ igt_debug("%c", *tmp);
+ igt_debug("\n");
stat->info.slice_total =
dbg_get_int(first, last, "Available Slice Total:");
stat->info.subslice_total =
@@ -172,6 +175,9 @@ dbg_get_status(struct status *stat)
dbg_get_bool(first, last, "Has EU Power Gating:");
dbg_get_status_section("SSEU Device Status", &first, &last);
+ for (char *tmp = first; tmp < last; tmp++)
+ igt_debug("%c", *tmp);
+ igt_debug("\n");
stat->hw.slice_total =
dbg_get_int(first, last, "Enabled Slice Total:");
stat->hw.subslice_total =