1. 29 Jan, 2021 6 commits
  2. 28 Jan, 2021 3 commits
  3. 27 Jan, 2021 3 commits
  4. 26 Jan, 2021 8 commits
  5. 25 Jan, 2021 18 commits
  6. 22 Jan, 2021 2 commits
    • Radhakrishna Sripada's avatar
      drm/i915/tgl: Add Clear Color support for TGL Render Decompression · d1e2775e
      Radhakrishna Sripada authored
      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: default avatarMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: default avatarRadhakrishna Sripada <radhakrishna.sripada@intel.com>
      Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210115213952.1040398-1-imre.deak@intel.com
      d1e2775e
    • Imre Deak's avatar
      drm/i915/gem: Add a helper to read data from a GEM object page · 5fbc2c2b
      Imre Deak authored
      Add a simple helper to read data with the CPU from the page of a GEM
      object. Do the read either via a kmap if the object has struct pages
      or an iomap otherwise. This is needed by the next patch, reading a u64
      value from the object (w/o requiring the obj to be mapped to the GPU).
      
      Suggested by Chris.
      
      v2 (Chris):
      - Sanitize the type and order of func params.
      - Avoid consts requiring too many casts.
      - Use BUG_ON instead of WARN_ON, simplify the conditions.
      - Fix __iomem sparse errors.
      - Leave locking/syncing/pinning up to the caller, require only that the
        caller has pinned the object pages.
      - Check for iomem backing store before reading via an iomap.
      v3:
      - Fix offset passed to io_mapping_map_wc() missing a mem.region.start
        delta. (Chris, Matthew)
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Matthew Auld <matthew.william.auld@gmail.com>
      Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210120213834.1435710-1-imre.deak@intel.com
      5fbc2c2b