1. 03 6月, 2020 1 次提交
  2. 22 5月, 2020 1 次提交
    • S
      drm/i915: Adjust CDCLK accordingly to our DBuf bw needs · cd191546
      Stanislav Lisovskiy 提交于
      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: NStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Reviewed-by: NManasi Navare <manasi.d.navare@intel.com>
      Signed-off-by: NManasi Navare <manasi.d.navare@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200520150058.16123-1-stanislav.lisovskiy@intel.com
      cd191546
  3. 20 5月, 2020 1 次提交
  4. 19 5月, 2020 1 次提交
  5. 16 5月, 2020 1 次提交
  6. 15 5月, 2020 2 次提交
  7. 14 5月, 2020 2 次提交
  8. 13 5月, 2020 1 次提交
  9. 11 5月, 2020 1 次提交
  10. 09 5月, 2020 1 次提交
  11. 30 4月, 2020 1 次提交
  12. 17 4月, 2020 1 次提交
  13. 16 4月, 2020 1 次提交
  14. 04 4月, 2020 1 次提交
  15. 02 4月, 2020 1 次提交
  16. 26 3月, 2020 1 次提交
  17. 25 3月, 2020 1 次提交
    • J
      drm/i915/display/fbc: Make fences a nice-to-have for GEN9+ · 691f7ba5
      José Roberto de Souza 提交于
      dGFX has local memory so it does not have aperture or support
      CPU fences but even for iGFX it have a small number of fences.
      
      As replacement for fences to track frontbuffer modifications by CPU
      we have a software tracking that is already in used by FBC and PSR.
      PSR don't support fences so it shows that this tracking is reliable.
      
      So lets make fences a nice-to-have to activate FBC for GEN9+, this
      will allow us to enable FBC for dGFXs and iGFXs even when there is no
      available fence.
      
      We do not set fences to rotated planes but FBC only have restrictions
      against 16bpp, so adding it here.
      
      Also adding a new check for the tiling format, fences are only set
      to X and Y tiled planes but again FBC don't have any restrictions
      against tiling so adding linear as supported as well, other formats
      should be added after tested but IGT only supports drawing in thse
      3 formats.
      
      intel_fbc_hw_tracking_covers_screen() maybe can also have the same
      treatment as fences but BSpec is not clear if the size limitation is
      for hardware tracking or general use of FBC and I don't have a 5K
      display to test it, so keeping as is for safety.
      
      v2:
      - Added tiling and pixel format rotation checks
      - Changed the GEN version not requiring fences to 11 from 9, DDX
      needs some changes but it don't have support for GEN11+
      
      v3:
      - Changed back to GEN9+
      - Moved GEN test to inside of tiling_is_valid()
      
      v4:
      - moved rotation check to its own functions
      
      v5:
      - renamed rotations_is_valid to rotation_is_valid
      - moved pre-g4x rotation check to rotation_is_valid()
      
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NJosé Roberto de Souza <jose.souza@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200319211535.114625-1-jose.souza@intel.com
      691f7ba5
  18. 17 3月, 2020 2 次提交
  19. 14 3月, 2020 1 次提交
  20. 07 3月, 2020 1 次提交
    • V
      drm/i915/hotplug: Use phy to get the hpd_pin instead of the port (v5) · 270810a7
      Vivek Kasireddy 提交于
      On some platforms such as Elkhart Lake, although we may use DDI D
      to drive a connector, we have to use PHY A (Combo Phy PORT A) to
      detect the hotplug interrupts as per the spec because there is no
      one-to-one mapping between DDIs and PHYs. Therefore, use the
      function intel_port_to_phy() which contains the logic for such
      mapping(s) to find the correct hpd_pin.
      
      This change should not affect other platforms as there is always
      a one-to-one mapping between DDIs and PHYs.
      
      v2:
      - Convert the case statements to use PHYs instead of PORTs (Jani)
      
      v3:
      - Refactor the function to reduce the number of return statements by
        lumping all the case statements together except PHY_F which needs
        special handling (Jose)
      
      v4:
      - Add a comment describing how the HPD pin value associated with any
        port can be retrieved using port or phy enum value. (Jani)
      
      v5:
      - Use case ranges instead of individual labels and also normalize the
        return statement by adding -PHY_A to the expression (Ville)
      
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: José Roberto de Souza <jose.souza@intel.com>
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Signed-off-by: NVivek Kasireddy <vivek.kasireddy@intel.com>
      Reviewed-by: NJosé Roberto de Souza <jose.souza@intel.com>
      Signed-off-by: NJosé Roberto de Souza <jose.souza@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200304234240.12062-1-vivek.kasireddy@intel.com
      270810a7
  21. 06 3月, 2020 1 次提交
  22. 03 3月, 2020 6 次提交
  23. 02 3月, 2020 5 次提交
  24. 28 2月, 2020 1 次提交
  25. 26 2月, 2020 1 次提交
  26. 25 2月, 2020 3 次提交