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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>

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

Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
---
 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
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux