1. 18 12月, 2020 1 次提交
  2. 14 12月, 2020 3 次提交
  3. 02 12月, 2020 1 次提交
    • T
      drm/i915/pmu: Deprecate I915_PMU_LAST and optimize state tracking · 348fb0cb
      Tvrtko Ursulin 提交于
      Adding any kinds of "last" abi markers is usually a mistake which I
      repeated when implementing the PMU because it felt convenient at the time.
      
      This patch marks I915_PMU_LAST as deprecated and stops the internal
      implementation using it for sizing the event status bitmask and array.
      
      New way of sizing the fields is a bit less elegant, but it omits reserving
      slots for tracking events we are not interested in, and as such saves some
      runtime space. Adding sampling events is likely to be a special event and
      the new plumbing needed will be easily detected in testing. Existing
      asserts against the bitfield and array sizes are keeping the code safe.
      
      First event which gets the new treatment in this new scheme are the
      interrupts - which neither needs any tracking in i915 pmu nor needs
      waking up the GPU to read it.
      
      v2:
       * Streamline helper names. (Chris)
      
      v3:
       * Comment which events need tracking. (Chris)
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201201131757.206367-1-tvrtko.ursulin@linux.intel.com
      348fb0cb
  4. 22 10月, 2020 2 次提交
  5. 24 8月, 2020 1 次提交
  6. 19 8月, 2020 1 次提交
  7. 18 8月, 2020 1 次提交
  8. 18 6月, 2020 1 次提交
  9. 15 6月, 2020 1 次提交
  10. 28 5月, 2020 1 次提交
  11. 19 5月, 2020 1 次提交
  12. 01 5月, 2020 1 次提交
  13. 30 4月, 2020 1 次提交
  14. 08 4月, 2020 1 次提交
  15. 26 2月, 2020 2 次提交
  16. 22 2月, 2020 2 次提交
  17. 10 2月, 2020 1 次提交
  18. 22 1月, 2020 1 次提交
  19. 14 1月, 2020 2 次提交
  20. 13 1月, 2020 1 次提交
  21. 23 12月, 2019 1 次提交
    • T
      drm/i915/pmu: Ensure monotonic rc6 · 74ac5780
      Tvrtko Ursulin 提交于
      Avoid rc6 counter going backward in close to 0% RC6 scenarios like:
      
          15.005477996        114,246,613 ns   i915/rc6-residency/
          16.005876662            667,657 ns   i915/rc6-residency/
          17.006131417              7,286 ns   i915/rc6-residency/
          18.006615031 18,446,744,073,708,914,688 ns   i915/rc6-residency/
          19.007158361 18,446,744,073,709,447,168 ns   i915/rc6-residency/
          20.007806498                  0 ns   i915/rc6-residency/
          21.008227495          1,440,403 ns   i915/rc6-residency/
      
      There are two aspects to this fix.
      
      First is not assuming rc6 value zero means GT is asleep since that can
      also mean GPU is fully busy and we do not want to enter the estimation
      path in that case.
      
      Second is ensuring monotonicity on the estimation path itself. I suspect
      what is happening is with extremely rapid park/unpark cycles we get no
      updates on the real rc6 and therefore have to careful not to
      unconditionally trust use last known real rc6 when creating a new
      estimation.
      
      v2:
       * Simplify logic by not tracking the estimate but last reported value.
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Fixes: 16ffe73c ("drm/i915/pmu: Use GT parked for estimating RC6 while asleep")
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> # v1
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191217142057.1000-1-tvrtko.ursulin@linux.intel.com
      (cherry picked from commit df6a4205)
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      74ac5780
  22. 18 12月, 2019 2 次提交
  23. 14 12月, 2019 1 次提交
  24. 06 12月, 2019 1 次提交
  25. 25 11月, 2019 1 次提交
  26. 20 11月, 2019 1 次提交
  27. 19 11月, 2019 1 次提交
  28. 12 11月, 2019 1 次提交
  29. 11 11月, 2019 1 次提交
  30. 08 11月, 2019 2 次提交
  31. 27 10月, 2019 1 次提交
  32. 26 10月, 2019 1 次提交