1. 22 Nov, 2021 1 commit
  2. 19 Nov, 2021 6 commits
  3. 16 Nov, 2021 2 commits
  4. 15 Nov, 2021 1 commit
  5. 12 Nov, 2021 1 commit
  6. 11 Nov, 2021 6 commits
  7. 10 Nov, 2021 2 commits
  8. 09 Nov, 2021 2 commits
  9. 05 Nov, 2021 4 commits
  10. 04 Nov, 2021 4 commits
  11. 02 Nov, 2021 8 commits
  12. 01 Nov, 2021 2 commits
    • Thomas Hellström's avatar
      drm/i915: Introduce refcounted sg-tables · cad7109a
      Thomas Hellström authored
      As we start to introduce asynchronous failsafe object migration,
      where we update the object state and then submit asynchronous
      commands we need to record what memory resources are actually used
      by various part of the command stream. Initially for three purposes:
      
      1) Error capture.
      2) Asynchronous migration error recovery.
      3) Asynchronous vma bind.
      
      At the time where these happens, the object state may have been updated
      to be several migrations ahead and object sg-tables discarded.
      
      In order to make it possible to keep sg-tables with memory resource
      information for these operations, introduce refcounted sg-tables that
      aren't freed until the last user is done with them.
      
      The alternative would be to reference information sitting on the
      corresponding ttm_resources which typically have the same lifetime as
      these refcountes sg_tables, but that leads to other awkward constructs:
      Due to the design direction chosen for ttm resource managers that would
      lead to diamond-style inheritance, the LMEM resources may sometimes be
      prematurely freed, and finally the subclassed struct ttm_resource would
      have to bleed into the asynchronous vma bind code.
      
      v3:
      - Address a number of style issues (Matthew Auld)
      v4:
      - Dont check for st->sgl being NULL in i915_ttm_tt__shmem_unpopulate(),
        that should never happen. (Matthew Auld)
      v5:
      - Fix a Potential double-free (Matthew Auld)
      Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
      Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211101122444.114607-1-thomas.hellstrom@linux.intel.com
      cad7109a
    • Cooper Chiou's avatar
      drm/i915: Enable WaProgramMgsrForCorrectSliceSpecificMmioReads for Gen9 · c7d561cf
      Cooper Chiou authored
      This implements WaProgramMgsrForCorrectSliceSpecificMmioReads which
      was omitted by mistake from Gen9 documentation, while it is actually
      applicable to fused off parts.
      
      Workaround consists of making sure MCR packet control register is
      programmed to point to enabled slice/subslice pair before doing any
      MMIO reads from the affected registers.
      
      Failure do to this can result in complete system hangs when running
      certain workloads. Two known cases which can cause system hangs are:
      
      1. "test_basic progvar_prog_scope_uninit" test which is part of
          Khronos OpenCL conformance suite
          (https://github.com/KhronosGroup/OpenCL-CTS) with the Intel
          OpenCL driver (https://github.com/intel/compute-runtime).
      
      2. VP8 media hardware encoding using the full-feature build of the
          Intel media-driver (https://github.com/intel/media-driver) and
          ffmpeg.
      
      For the former case patch was verified to fix the hard system hang
      when executing the OCL test on Intel Pentium CPU 6405U which contains
      fused off GT1 graphics.
      
      Reference: HSD#1508045018,1405586840, BSID#0575
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Cc: William Tseng <william.tseng@intel.com>
      Cc: Shawn C Lee <shawn.c.lee@intel.com>
      Cc: Pawel Wilma <pawel.wilma@intel.com>
      Signed-off-by: default avatarCooper Chiou <cooper.chiou@intel.com>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Acked-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211025042623.3876-1-cooper.chiou@intel.com
      c7d561cf
  13. 29 Oct, 2021 1 commit