mbox series

[v3,0/1] drm/i915/guc: Don't update engine busyness stats too frequently

Message ID 20220623015746.172358-1-alan.previn.teres.alexis@intel.com (mailing list archive)
Headers show
Series drm/i915/guc: Don't update engine busyness stats too frequently | expand

Message

Alan Previn June 23, 2022, 1:57 a.m. UTC
This change ensures we don't resample GuC busyness stat
counters too soon after the last sample.

Changes from prior revs:
  v2:  - Align the name of last_stat_jiffies (Tvrtko)
       - Use 32-bit jiffes (Tvrtko)
       - use time_after() macro (Tvrtko)
       - change from ">> 1" to "/ 2" for ping delay halving (Tvrtko)
  v1:  - Move the location of the new logic to higher up
         the callstack in intel_guc_busyness_park (Umesh).
       - Fix typo threshold of jiffies-since-last from double
         to half of ping_delay (Umesh)

Alan Previn (1):
  drm/i915/guc: Don't update engine busyness stats too frequently

 drivers/gpu/drm/i915/gt/uc/intel_guc.h            |  8 ++++++++
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 13 +++++++++++++
 2 files changed, 21 insertions(+)


base-commit: ac17a5249380aaabe5d1eaebd9b3a2eedc08ccdc