1. 02 Jun, 2020 2 commits
  2. 01 Jun, 2020 7 commits
  3. 29 May, 2020 6 commits
  4. 28 May, 2020 5 commits
  5. 27 May, 2020 5 commits
  6. 26 May, 2020 5 commits
  7. 25 May, 2020 3 commits
  8. 23 May, 2020 1 commit
    • Animesh Manna's avatar
      drm/i915/dsb: Pre allocate and late cleanup of cmd buffer · afeda4f3
      Animesh Manna authored
      Pre-allocate command buffer in atomic_commit using intel_dsb_prepare
      function which also includes pinning and map in cpu domain.
      
      No functional change is dsb write/commit functions.
      
      Now dsb get/put function is removed and ref-count mechanism is
      not needed. Below dsb api added to do respective job mentioned
      below.
      
      intel_dsb_prepare - Allocate, pin and map the buffer.
      intel_dsb_cleanup - Unpin and release the gem object.
      
      RFC: Initial patch for design review.
      v2: included _init() part in _prepare(). [Daniel, Ville]
      v3: dsb_cleanup called after cleanup_planes. [Daniel]
      v4: dsb structure is moved to intel_crtc_state from intel_crtc. [Maarten]
      v5: dsb get/put/ref-count mechanism removed. [Maarten]
      v6: Based on review feedback following changes are added,
      - replaced intel_dsb structure by pointer in intel_crtc_state. [Maarten]
      - passing intel_crtc_state to dsp-api to simplify the code. [Maarten]
      - few dsb functions prototype modified to simplify code.
      v7: added few cosmetic changes suggested by Jani and null check for
      crtc_state in dsb_cleanup removed as suggested by Maarten.
      v8: changed the function parameter to intel_crtc_state* of
      ivb_load_lut_ext_max() from intel_crtc. [Maarten]
      v9: error handling improved in _write() and prepare(). [Maarten]
      
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@intel.com>
      Signed-off-by: default avatarAnimesh Manna <animesh.manna@intel.com>
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200520130737.11240-1-animesh.manna@intel.com
      afeda4f3
  9. 22 May, 2020 4 commits
  10. 21 May, 2020 2 commits
    • Stanislav Lisovskiy's avatar
      drm/i915: Remove unneeded hack now for CDCLK · 82ea174d
      Stanislav Lisovskiy authored
      No need to bump up CDCLK now, as it is now correctly
      calculated, accounting for DBuf BW as BSpec says.
      Reviewed-by: default avatarManasi Navare <manasi.d.navare@intel.com>
      Signed-off-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Signed-off-by: default avatarManasi Navare <manasi.d.navare@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200519131117.17190-8-stanislav.lisovskiy@intel.com
      82ea174d
    • Stanislav Lisovskiy's avatar
      drm/i915: Adjust CDCLK accordingly to our DBuf bw needs · cd191546
      Stanislav Lisovskiy authored
      According to BSpec max BW per slice is calculated using formula
      Max BW = CDCLK * 64. Currently when calculating min CDCLK we
      account only per plane requirements, however in order to avoid
      FIFO underruns we need to estimate accumulated BW consumed by
      all planes(ddb entries basically) residing on that particular
      DBuf slice. This will allow us to put CDCLK lower and save power
      when we don't need that much bandwidth or gain additional
      performance once plane consumption grows.
      
      v2: - Fix long line warning
          - Limited new DBuf bw checks to only gens >= 11
      
      v3: - Lets track used Dbuf bw per slice and per crtc in bw state
            (or may be in DBuf state in future), that way we don't need
            to have all crtcs in state and those only if we detect if
            are actually going to change cdclk, just same way as we
            do with other stuff, i.e intel_atomic_serialize_global_state
            and co. Just as per Ville's paradigm.
          - Made dbuf bw calculation procedure look nicer by introducing
            for_each_dbuf_slice_in_mask - we often will now need to iterate
            slices using mask.
          - According to experimental results CDCLK * 64 accounts for
            overall bandwidth across all dbufs, not per dbuf.
      
      v4: - Fixed missing const(Ville)
          - Removed spurious whitespaces(Ville)
          - Fixed local variable init(reduced scope where not needed)
          - Added some comments about data rate for planar formats
          - Changed struct intel_crtc_bw to intel_dbuf_bw
          - Moved dbuf bw calculation to intel_compute_min_cdclk(Ville)
      
      v5: - Removed unneeded macro
      
      v6: - Prevent too frequent CDCLK switching back and forth:
            Always switch to higher CDCLK when needed to prevent bandwidth
            issues, however don't switch to lower CDCLK earlier than once
            in 30 minutes in order to prevent constant modeset blinking.
            We could of course not switch back at all, however this is
            bad from power consumption point of view.
      
      v7: - Fixed to track cdclk using bw_state, modeset will be now
            triggered only when CDCLK change is really needed.
      
      v8: - Lock global state if bw_state->min_cdclk is changed.
          - Try getting bw_state only if there are crtcs in the commit
            (need to have read-locked global state)
      
      v9: - Do not do Dbuf bw check for gens < 9 - triggers WARN
            as ddb_size is 0.
      
      v10: - Lock global state for older gens as well.
      
      v11: - Define new bw_calc_min_cdclk hook, instead of using
             a condition(Manasi Navare)
      
      v12: - Fixed rebase conflict
      
      v13: - Added spaces after declarations to make checkpatch happy.
      Signed-off-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Reviewed-by: default avatarManasi Navare <manasi.d.navare@intel.com>
      Signed-off-by: default avatarManasi Navare <manasi.d.navare@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200520150058.16123-1-stanislav.lisovskiy@intel.com
      cd191546