1. 28 5月, 2021 1 次提交
    • A
      drm/i915: Add Wa_14010733141 · 5b26d57f
      Aditya Swarup 提交于
      The WA requires the following procedure for VDBox SFC reset:
      
      If (MFX-SFC usage is 1) {
      	1.Issue a MFX-SFC forced lock
      	2.Wait for MFX-SFC forced lock ack
      	3.Check the MFX-SFC usage bit
      	If (MFX-SFC usage bit is 1)
      		Reset VDBOX and SFC
      	else
      		Reset VDBOX
      	Release the force lock MFX-SFC
      }
      else if(HCP+SFC usage is 1) {
      	1.Issue a VE-SFC forced lock
      	2.Wait for SFC forced lock ack
      	3.Check the VE-SFC usage bit
      	If (VE-SFC usage bit is 1)
      		Reset VDBOX
      	else
      		Reset VDBOX and SFC
      	Release the force lock VE-SFC.
      }
      else
      	Reset VDBOX
      
      - Restructure: the changes to the original code flow should stay
        relatively minimal; we only need to do an extra HCP check after the
        usual VD-MFX check and, if true, switch the register/bit we're
        performing the lock on.(MattR)
      
      v2:
      - Assign unlock mask using paired_engine->mask instead of using
        BIT(paired_vecs->id). (Daniele)
      
      Bspec: 52890, 53509
      
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: NAditya Swarup <aditya.swarup@intel.com>
      Co-developed-by: NMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: NMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: NDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210526094852.286424-2-aditya.swarup@intel.com
      5b26d57f
  2. 27 4月, 2021 1 次提交
  3. 22 4月, 2021 1 次提交
  4. 21 4月, 2021 1 次提交
  5. 09 4月, 2021 1 次提交
  6. 25 3月, 2021 1 次提交
  7. 13 3月, 2021 1 次提交
  8. 23 2月, 2021 1 次提交
  9. 09 2月, 2021 1 次提交
  10. 30 1月, 2021 2 次提交
  11. 26 1月, 2021 4 次提交
  12. 22 1月, 2021 1 次提交
    • R
      drm/i915/tgl: Add Clear Color support for TGL Render Decompression · d1e2775e
      Radhakrishna Sripada 提交于
      Render Decompression is supported with Y-Tiled main surface. The CCS is
      linear and has 4 bits of data for each main surface cache line pair, a
      ratio of 1:256. Additional Clear Color information is passed from the
      user-space through an offset in the GEM BO. Add a new modifier to identify
      and parse new Clear Color information and extend Gen12 render decompression
      functionality to the newly added modifier.
      
      v2: Fix has_alpha flag for modifiers, omit CC modifier during initial
          plane config(Matt). Fix Lookup error.
      v3: Fix the panic while running kms_cube
      v4: Add alignment check and reuse the comments for ge12_ccs_formats(Matt)
      v5: Fix typos and wrap comments(Matt)
      v6:
      - Use format block descriptors to get the subsampling calculations for
        the CCS surface right.
      - Use helpers to convert between main and CCS surfaces.
      - Prevent coordinate checks for the CC surface.
      - Simplify reading CC value from surface map, add description of CC val
        layout.
      - Remove redundant ccval variable from skl_program_plane().
      v7:
      - Move the CC value readout after syncing against any GPU write on the
        FB obj (Nanley, Chris)
      - Make sure the CC value readout works on platforms w/o struct pages
        (dGFX) and other non-coherent platforms wrt. CPU reads (none atm).
        (Chris)
      v8:
      - Rebase on the function param order change of
        i915_gem_object_read_from_page().
      - Clarify code comment on the clear color value format and the required
        FB obj pinning/syncing by the caller.
      - Remove redundant variables in
        intel_atomic_prepare_plane_clear_colors().
      v9:
      - Fix s/sizeof(&ccval)/sizeof(ccval)/ typo.
      
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Ville Syrjala <ville.syrjala@intel.com>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Cc: Rafael Antognolli <rafael.antognolli@intel.com>
      Cc: Nanley G Chery <nanley.g.chery@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: NRadhakrishna Sripada <radhakrishna.sripada@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115213952.1040398-1-imre.deak@intel.com
      d1e2775e
  13. 13 1月, 2021 2 次提交
  14. 11 1月, 2021 1 次提交
  15. 04 12月, 2020 1 次提交
  16. 02 12月, 2020 1 次提交
  17. 25 11月, 2020 1 次提交
  18. 19 11月, 2020 1 次提交
  19. 17 11月, 2020 1 次提交
  20. 11 11月, 2020 1 次提交
  21. 10 11月, 2020 1 次提交
    • L
      drm/i915/dg1: map/unmap pll clocks · 11ffe972
      Lucas De Marchi 提交于
      DG1 uses 2 registers for the ddi clock mapping, with PHY A and B using
      DPCLKA_CFGCR0 and PHY C and D using DPCLKA1_CFGCR0. Hide this behind a
      single macro that chooses the correct register according to the phy
      being accessed, use the correct bitfields for each pll/phy and implement
      separate functions for DG1 since it doesn't share much with ICL/TGL
      anymore.
      
      The previous values were correct for PHY A and B since they were using
      the same register as before and the bitfields were matching.
      
      v2: Add comment and try to simplify DG1_DPCLKA* macros by reusing
      previous ones
      v3:
        - Fix DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK() after wrong macro reuse
        - Move phy -> id map to a separate macro (Aditya)
        - Remove DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK where not required
          (Aditya)
        - Use drm_WARN_ON
      
      Cc: José Roberto de Souza <jose.souza@intel.com>
      Cc: Clinton Taylor <Clinton.A.Taylor@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Aditya Swarup <aditya.swarup@intel.com>
      Signed-off-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Reviewed-by: NAditya Swarup <aditya.swarup@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106210006.837953-1-lucas.demarchi@intel.com
      11ffe972
  22. 30 10月, 2020 8 次提交
  23. 29 10月, 2020 1 次提交
  24. 24 10月, 2020 2 次提交
  25. 21 10月, 2020 2 次提交
  26. 20 10月, 2020 1 次提交