Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/i915/perf: Accumulate clocks for MPEC format too
@ 2024-05-10 17:04 Ashutosh Dixit
  2024-05-10 17:53 ` Kamil Konieczny
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ashutosh Dixit @ 2024-05-10 17:04 UTC (permalink / raw)
  To: igt-dev; +Cc: Umesh Nerlige Ramappa

Clocks/gpu_ticks should also be accumulated in intel_perf_accumulate_reports.

Fixes: cbe11c2939f8 ("lib/i915/perf: Add support for select MPEC formats")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 lib/i915/perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/i915/perf.c b/lib/i915/perf.c
index bbfa360607..9333edfebb 100644
--- a/lib/i915/perf.c
+++ b/lib/i915/perf.c
@@ -928,7 +928,7 @@ void intel_perf_accumulate_reports(struct intel_perf_accumulator *acc,
 			deltas[idx++] += (end64[1] - start64[1]) >> (-perf->devinfo.oa_timestamp_shift);
 
 		/* 64 bit clock */
-		deltas[idx++] = end64[3] - start64[3];
+		deltas[idx++] += end64[3] - start64[3];
 
 		/* 8x 32bit MPEC counters */
 		for (i = 0; i < 8; i++)
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-05-13 14:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 17:04 [PATCH i-g-t] lib/i915/perf: Accumulate clocks for MPEC format too Ashutosh Dixit
2024-05-10 17:53 ` Kamil Konieczny
2024-05-10 19:11 ` ✓ CI.xeBAT: success for " Patchwork
2024-05-10 19:17 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-10 20:12 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-13 14:23   ` Kamil Konieczny
2024-05-10 20:25 ` [PATCH i-g-t] " Umesh Nerlige Ramappa
2024-05-12  6:42 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-05-13 14:13   ` Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox