[Intel-gfx] [PATCH i-g-t 2/7] tools/intel_watermark: Print linetime wms in usec

Ville Syrjala ville.syrjala at linux.intel.com
Fri Sep 15 17:57:39 UTC 2017


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Let's print the linetime watermarks un usecs. Might make it easier to
spot bogus values.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_watermark.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index e6384d65ba71..f73e9a89edab 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -240,8 +240,10 @@ static void ilk_wm_dump(void)
 	}
 	if (is_hsw_plus(devid)) {
 		for (i = 0; i < num_pipes; i++) {
-			printf("WM_LINETIME_%c: line time=%d, ips line time=%d\n",
-			       pipe_name(i), wm.linetime[i].linetime, wm.linetime[i].ips);
+			printf("WM_LINETIME_%c: line time=%d (%.3f usec), ips line time=%d (%.3f usec)\n",
+			       pipe_name(i),
+			       wm.linetime[i].linetime, wm.linetime[i].linetime * 0.125f,
+			       wm.linetime[i].ips, wm.linetime[i].ips * 0.125f);
 		}
 	}
 	if (is_gen7_plus(devid)) {
-- 
2.13.5



More information about the Intel-gfx mailing list