1. 16 10月, 2021 6 次提交
  2. 15 10月, 2021 2 次提交
  3. 12 10月, 2021 2 次提交
  4. 08 10月, 2021 1 次提交
    • L
      drm/i915: remove IS_ACTIVE · 1a839e01
      Lucas De Marchi 提交于
      When trying to bring IS_ACTIVE to linux/kconfig.h I thought it wouldn't
      provide much value just encapsulating it in a boolean context. So I also
      added the support for handling undefined macros as the IS_ENABLED()
      counterpart. However the feedback received from Masahiro Yamada was that
      it is too ugly, not providing much value. And just wrapping in a boolean
      context is too dumb - we could simply open code it.
      
      As detailed in commit babaab2f ("drm/i915: Encapsulate kconfig
      constant values inside boolean predicates"), the IS_ACTIVE macro was
      added to workaround a compilation warning. However after checking again
      our current uses of IS_ACTIVE it turned out there is only
      1 case in which it triggers a warning in clang (due
      -Wconstant-logical-operand) and 2 in smatch. All the others
      can simply use the shorter version, without wrapping it in any macro.
      
      So here I'm dialing all the way back to simply removing the macro. That
      single case hit by clang can be changed to make the constant come first,
      so it doesn't think it's mask:
      
      	-       if (context && CONFIG_DRM_I915_FENCE_TIMEOUT)
      	+       if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)
      
      As talked with Dan Carpenter, that logic will be added in smatch as
      well, so it will also stop warning about it.
      Signed-off-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NMasahiro Yamada <masahiroy@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211005171728.3147094-1-lucas.demarchi@intel.com
      1a839e01
  5. 05 10月, 2021 5 次提交
  6. 02 10月, 2021 5 次提交
  7. 30 9月, 2021 1 次提交
  8. 27 9月, 2021 1 次提交
  9. 25 9月, 2021 1 次提交
    • J
      drm/i915: Flush buffer pools on driver remove · 74af1e2c
      Janusz Krzysztofik 提交于
      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: NJanusz 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: NMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: NMatt Roper <matthew.d.roper@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210924163825.634606-1-janusz.krzysztofik@linux.intel.com
      74af1e2c
  10. 24 9月, 2021 6 次提交
  11. 23 9月, 2021 1 次提交
    • A
      drm/i915/guc, docs: Fix pdfdocs build error by removing nested grid · 017792a0
      Akira Yokosawa 提交于
      Nested grids in grid-table cells are not specified as proper ReST
      constructs.
      Commit 572f2a5c ("drm/i915/guc: Update firmware to v62.0.0")
      added a couple of kerneldoc tables of the form:
      
        +---+-------+------------------------------------------------------+
        | 1 |  31:0 |  +------------------------------------------------+  |
        +---+-------+  |                                                |  |
        |...|       |  |  Embedded `HXG Message`_                       |  |
        +---+-------+  |                                                |  |
        | n |  31:0 |  +------------------------------------------------+  |
        +---+-------+------------------------------------------------------+
      
      For "make htmldocs", they happen to work as one might expect,
      but they are incompatible with "make latexdocs" and "make pdfdocs",
      and cause the generated gpu.tex file to become incomplete and
      unbuildable by xelatex.
      
      Restore the compatibility by removing those nested grids in the tables.
      
      Size comparison of generated gpu.tex:
      
                        Sphinx 2.4.4  Sphinx 4.2.0
        v5.14:               3238686       3841631
        v5.15-rc1:            376270        432729
        with this fix:       3377846       3998095
      
      Fixes: 572f2a5c ("drm/i915/guc: Update firmware to v62.0.0")
      Cc: John Harrison <John.C.Harrison@Intel.com>
      Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
      Cc: Matthew Brost <matthew.brost@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Signed-off-by: NAkira Yokosawa <akiyks@gmail.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/4a227569-074f-c501-58bb-d0d8f60a8ae9@gmail.com
      017792a0
  12. 21 9月, 2021 5 次提交
  13. 20 9月, 2021 2 次提交
  14. 19 9月, 2021 2 次提交