Re: [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

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

 



Quoting Chris Wilson (2019-02-12 22:39:46)
> As we track when we put the GT device to sleep upon idling, we can use
> that callback to sample the current rc6 counters and record the
> timestamp for estimating samples after that point while asleep.

Bah, the perf_pmu/rc6 test bypasses the GPU and pokes the forcewake bit
instead. This needs

@@ -1495,9 +1496,11 @@ test_rc6(int gem_fd, unsigned int flags)
        igt_assert(fw >= 0);
        usleep(1e3); /* wait for the rc6 cycle counter to stop ticking */

+       spin = igt_spin_batch_new(gem_fd, .engine = I915_EXEC_RENDER);
        prev = pmu_read_single(fd);
        usleep(duration_ns / 1000);
        busy = pmu_read_single(fd);
+       igt_spin_batch_end(spin);

to paper over the difference.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux