From: Ville Syrjälä <[email protected]>

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

Signed-off-by: Ville Syrjälä <[email protected]>
---
 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

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to