1. 18 12月, 2020 3 次提交
  2. 17 12月, 2020 1 次提交
  3. 16 12月, 2020 3 次提交
  4. 15 12月, 2020 1 次提交
  5. 14 12月, 2020 3 次提交
  6. 11 12月, 2020 3 次提交
  7. 10 12月, 2020 6 次提交
  8. 09 12月, 2020 3 次提交
  9. 08 12月, 2020 1 次提交
  10. 07 12月, 2020 2 次提交
  11. 06 12月, 2020 4 次提交
  12. 04 12月, 2020 5 次提交
  13. 03 12月, 2020 4 次提交
  14. 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