[igt-dev] [PATCH i-g-t] tests/pm_sseu: dump the bit of sysfs
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Mon Feb 19 14:36:03 UTC 2018
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 at intel.com>
---
tests/pm_sseu.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c
index 2a2f06bb..4262ad2a 100644
--- a/tests/pm_sseu.c
+++ b/tests/pm_sseu.c
@@ -143,7 +143,7 @@ dbg_get_bool(const char *first, const char *last, const char *name)
static void
dbg_get_status(struct status *stat)
{
- char *first, *last;
+ char *tmp, *first, *last;
int nread;
lseek(dbg.status_fd, 0, SEEK_SET);
@@ -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 (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 (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 =
--
2.16.1
More information about the igt-dev
mailing list