1. 01 Oct, 2021 5 commits
  2. 30 Sep, 2021 1 commit
  3. 29 Sep, 2021 1 commit
  4. 27 Sep, 2021 1 commit
  5. 25 Sep, 2021 1 commit
    • Janusz Krzysztofik's avatar
      drm/i915: Flush buffer pools on driver remove · 74af1e2c
      Janusz Krzysztofik authored
      We currently do an explicit flush of the buffer pools within the call path
      of drm_driver.release(); this removes all buffers, regardless of their age,
      freeing the buffers' associated resources (objects, address space areas).
      However there is other code that runs within the drm_driver.release() call
      chain that expects objects and their associated address space areas have
      already been flushed.
      
      Since buffer pools auto-flush old buffers once per second in a worker
      thread, there's a small window where if we remove the driver while there
      are still objects in buffers with an age of less than one second, the
      assumptions of the other release code may be violated.
      
      By moving the flush to driver remove (which executes earlier via the
      pci_driver.remove() flow) we're ensuring that all buffers are flushed and
      their associated objects freed before some other code in
      pci_driver.remove() flushes those objects so they are released before
      _any_ code in drm_driver.release() that check completness of those
      flushes executes.
      
      v2: Reword commit description as suggested by Matt.
      Signed-off-by: default avatarJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210924163825.634606-1-janusz.krzysztofik@linux.intel.com
      74af1e2c
  6. 24 Sep, 2021 11 commits
  7. 23 Sep, 2021 2 commits
  8. 22 Sep, 2021 7 commits
  9. 21 Sep, 2021 2 commits
  10. 20 Sep, 2021 8 commits
  11. 19 Sep, 2021 1 commit
    • Lucas De Marchi's avatar
      drm/i915: deduplicate frequency dump on debugfs · d0c56031
      Lucas De Marchi authored
      Although commit 9dd4b065 ("drm/i915/gt: Move pm debug files into a
      gt aware debugfs") says it was moving debug files to gt/, the
      i915_frequency_info file was left behind and its implementation copied
      into drivers/gpu/drm/i915/gt/debugfs_gt_pm.c. Over time we had several
      patches having to change both places to keep them in sync (and some
      patches failing to do so). The initial idea was to remove
      i915_frequency_info, but there are user space tools using it. From a
      quick code search there are other scripts and test tools besides igt, so
      it's not simply updating igt to get rid of the older file.
      
      Here we export a function using drm_printer as parameter and make
      both show() implementations to call this same function. Aside from a few
      variable name differences, for i915_frequency_info this brings a few
      lines that were not previously printed: RP UP EI, RP UP THRESHOLD, RP
      DOWN THRESHOLD and RP DOWN EI.  These came in as part of
      commit 9c878557 ("drm/i915/gt: Use the RPM config register to
      determine clk frequencies"), which didn't change both places.
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210918025754.1254705-4-lucas.demarchi@intel.com
      d0c56031