1. 17 Oct, 2022 1 commit
  2. 14 Oct, 2022 2 commits
    • Matthew Auld's avatar
      drm/i915/uapi: expose GTT alignment · d54576a0
      Matthew Auld authored
      On some platforms we potentially have different alignment restrictions
      depending on the memory type. We also now have different alignment
      restrictions for the same region across different kernel versions.
      Extend the region query to return the minimum required GTT alignment.
      
      Testcase: igt@gem_create@create-ext-placement-alignment
      Testcase: igt@i915_query@query-regions-sanity-check
      Suggested-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Cc: Michal Mrozek <michal.mrozek@intel.com>
      Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
      Cc: Stuart Summers <stuart.summers@intel.com>
      Cc: Jordan Justen <jordan.l.justen@intel.com>
      Cc: Yang A Shi <yang.a.shi@intel.com>
      Cc: Nirmoy Das <nirmoy.das@intel.com>
      Cc: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
      Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
      Acked-by: default avatarJordan Justen <jordan.l.justen@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20221004114915.221708-2-matthew.auld@intel.com
      d54576a0
    • Matthew Auld's avatar
      drm/i915: enable PS64 support for DG2 · 8133a6da
      Matthew Auld authored
      It turns out that on production DG2/ATS HW we should have support for
      PS64. This feature allows to provide a 64K TLB hint at the PTE level,
      which is a lot more flexible than the current method of enabling 64K GTT
      pages for the entire page-table, since that leads to all kinds of
      annoying restrictions, as documented in:
      
      commit caa574ff
      Author: Matthew Auld <matthew.auld@intel.com>
      Date:   Sat Feb 19 00:17:49 2022 +0530
      
          drm/i915/uapi: document behaviour for DG2 64K support
      
          On discrete platforms like DG2, we need to support a minimum page size
          of 64K when dealing with device local-memory. This is quite tricky for
          various reasons, so try to document the new implicit uapi for this.
      
      With PS64, we can now drop the 2M GTT alignment restriction, and instead
      only require 64K or larger when dealing with lmem. We still use the
      compact-pt layout when possible, but only when we are certain that this
      doesn't interfere with userspace.
      
      Note that this is a change in uAPI behaviour, but hopefully shouldn't be
      a concern (IGT is at least able to autodetect the alignment), since we
      are only making the GTT alignment constraint less restrictive.
      
      Based on a patch from CQ Tang.
      
      v2: update the comment wrt scratch page
      v3: (Nirmoy)
       - Fix the selftest to actually use the random size, plus some comment
         improvements, also drop the rem stuff.
      Reported-by: default avatarMichal Mrozek <michal.mrozek@intel.com>
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
      Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
      Cc: Stuart Summers <stuart.summers@intel.com>
      Cc: Jordan Justen <jordan.l.justen@intel.com>
      Cc: Yang A Shi <yang.a.shi@intel.com>
      Cc: Nirmoy Das <nirmoy.das@intel.com>
      Cc: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
      Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
      Acked-by: default avatarMichal Mrozek <michal.mrozek@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20221004114915.221708-1-matthew.auld@intel.com
      8133a6da
  3. 12 Oct, 2022 1 commit
  4. 10 Oct, 2022 5 commits
  5. 06 Oct, 2022 2 commits
  6. 05 Oct, 2022 6 commits
  7. 04 Oct, 2022 3 commits
  8. 03 Oct, 2022 19 commits
  9. 30 Sep, 2022 1 commit
    • Aravind Iddamsetty's avatar
      drm/i915/mtl: enable local stolen memory · dbb2ffbf
      Aravind Iddamsetty authored
      As an integrated GPU, MTL does not have local memory and HAS_LMEM()
      returns false.  However the platform's stolen memory is presented via
      BAR2 (i.e., the BAR we traditionally consider to be the GMADR on IGFX)
      and should be managed by the driver the same way that local memory is
      on dgpu platforms (which includes setting the "lmem" bit on page table
      entries).  We use the term "local stolen memory" to refer to this
      model.
      
      The major difference from the traditional BAR2 (GMADR) is that
      the stolen area is mapped via the BAR2 while in the former BAR2 is an
      aperture into the GTT VA through which access are made into stolen area.
      
      BSPEC: 53098, 63830
      
      v2:
      1. dropped is_dsm_invalid, updated valid_stolen_size check from Lucas
      (Jani, Lucas)
      2. drop lmembar_is_igpu_stolen
      3. revert to referring GFXMEM_BAR as GEN12_LMEM_BAR (Lucas)
      
      v3:(Jani)
      1. rename get_mtl_gms_size to mtl_get_gms_size
      2. define register for MMIO address
      
      v4:(Matt)
      1. Use REG_FIELD_GET to read GMS value
      2. replace the calculations with SZ_256M/SZ_8M
      
      v5: Include more details to commit message on how it is different from
      earlier platforms (Anshuman)
      
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Signed-off-by: default avatarCQ Tang <cq.tang@intel.com>
      Signed-off-by: default avatarAravind Iddamsetty <aravind.iddamsetty@intel.com>
      Original-author: CQ Tang
      Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220929114658.145287-1-aravind.iddamsetty@intel.com
      dbb2ffbf