1. 02 11月, 2018 2 次提交
  2. 30 10月, 2018 1 次提交
    • R
      drm/i915: Kill GEN_FOREVER · 5bc0e89f
      Rodrigo Vivi 提交于
      commit ac657f64 ("drm/i915: Introduce IS_GEN macro") introduced
      GEN_FOREVER that was never used.
      
      My first attempt was to rename it to FOREVER since GEN is
      already part of the macro. Then I used coccinelle to change all
      -INTEL_GEN(e1) >= e2
      +INTEL_GEN_RANGE(e1, e2, FOREVER)
      -INTEL_GEN(e1) <= e2
      +INTEL_GEN_RANGE(e1, 0, e2)
      
      and I liked it.
      
      However I didn't like very much the remaining
      INTEL_GEN(dev_priv) < n
      
      and:
      INTEL_GEN(e1) < n
      INTEL_GEN_RANGE(e1, 0, n - 1)
      
      didn't make much sense either.
      
      So INTEL_GEN use for > or < seems a better unified way for unlimited
      bounds. So, no reason to keep GEN_FOREVER here.
      
      Let's kill before someone start using it.
      
      v2: Remove remaining GEN_FOREVER forgotten in a comment. (Daniel)
      
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181026195143.20353-2-rodrigo.vivi@intel.com
      5bc0e89f
  3. 24 10月, 2018 1 次提交
  4. 23 10月, 2018 3 次提交
  5. 10 10月, 2018 1 次提交
  6. 06 10月, 2018 2 次提交
  7. 02 10月, 2018 1 次提交
  8. 01 10月, 2018 1 次提交
  9. 27 9月, 2018 4 次提交
  10. 21 9月, 2018 2 次提交
  11. 20 9月, 2018 1 次提交
  12. 14 9月, 2018 6 次提交
  13. 09 9月, 2018 1 次提交
  14. 06 9月, 2018 3 次提交
  15. 05 9月, 2018 1 次提交
    • C
      drm/i915: Reduce context HW ID lifetime · 288f1ced
      Chris Wilson 提交于
      Future gen reduce the number of bits we will have available to
      differentiate between contexts, so reduce the lifetime of the ID
      assignment from that of the context to its current active cycle (i.e.
      only while it is pinned for use by the HW, will it have a constant ID).
      This means that instead of a max of 2k allocated contexts (worst case
      before fun with bit twiddling), we instead have a limit of 2k in flight
      contexts (minus a few that have been pinned by the kernel or by perf).
      
      To reduce the number of contexts id we require, we allocate a context id
      on first and mark it as pinned for as long as the GEM context itself is,
      that is we keep it pinned it while active on each engine. If we exhaust
      our context id space, then we try to reclaim an id from an idle context.
      In the extreme case where all context ids are pinned by active contexts,
      we force the system to idle in order to recover ids.
      
      We cannot reduce the scope of an HW-ID to an engine (allowing the same
      gem_context to have different ids on each engine) as in the future we
      will need to preassign an id before we know which engine the
      context is being executed on.
      
      v2: Improved commentary (Tvrtko) [I tried at least]
      
      References: https://bugs.freedesktop.org/show_bug.cgi?id=107788Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Mika Kuoppala <mika.kuoppala@intel.com>
      Cc: Michel Thierry <michel.thierry@intel.com>
      Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180904153117.3907-1-chris@chris-wilson.co.uk
      288f1ced
  16. 04 9月, 2018 1 次提交
  17. 03 9月, 2018 1 次提交
  18. 31 8月, 2018 1 次提交
  19. 30 8月, 2018 2 次提交
  20. 17 8月, 2018 1 次提交
  21. 16 8月, 2018 1 次提交
  22. 10 8月, 2018 2 次提交
  23. 08 8月, 2018 1 次提交
    • I
      drm/i915/ddi: Use power well CTL IDX instead of ID · 75e39688
      Imre Deak 提交于
      Similarly to the previous patch use a separate request/status HW flag
      index defined right after the corresponding control registers instead of
      depending for this on the power well IDs. Since the set of
      control/status registers varies among the different power wells (on a
      single platform), also add a new i915_power_well_registers struct that
      we populate and assign to each DDI power well as needed.
      
      Also clarify a bit the code comment describing the function and layout
      of the control registers.
      
      This also fixes a problem on ICL, where we incorrectly read the KVMR
      control register in hsw_power_well_requesters() even for DDI and AUX
      power wells.
      
      v2:
      - Clarify platform range tags in code comments. (Paulo)
      - Fix line over 80 chars checkpatch warning.
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180806095843.13294-7-imre.deak@intel.com
      75e39688