1. 08 4月, 2021 1 次提交
  2. 27 3月, 2021 1 次提交
  3. 25 3月, 2021 3 次提交
  4. 11 3月, 2021 1 次提交
  5. 25 2月, 2021 2 次提交
  6. 10 2月, 2021 2 次提交
  7. 21 1月, 2021 1 次提交
  8. 20 1月, 2021 1 次提交
  9. 07 1月, 2021 1 次提交
    • L
      drm/ttm: Remove pinned bos from LRU in ttm_bo_move_to_lru_tail() v2 · 70612d0e
      Lyude Paul 提交于
      Recently a regression was introduced which caused TTM's buffer eviction to
      attempt to evict already-pinned BOs, causing issues with buffer eviction
      under memory pressure along with suspend/resume:
      
        nouveau 0000:1f:00.0: DRM: evicting buffers...
        nouveau 0000:1f:00.0: DRM: Moving pinned object 00000000c428c3ff!
        nouveau 0000:1f:00.0: fifo: fault 00 [READ] at 0000000000200000 engine 04
        [BAR1] client 07 [HUB/HOST_CPU] reason 02 [PTE] on channel -1 [00ffeaa000
        unknown]
        nouveau 0000:1f:00.0: fifo: DROPPED_MMU_FAULT 00001000
        nouveau 0000:1f:00.0: fifo: fault 01 [WRITE] at 0000000000020000 engine
        0c [HOST6] client 07 [HUB/HOST_CPU] reason 02 [PTE] on channel 1
        [00ffb28000 DRM]
        nouveau 0000:1f:00.0: fifo: channel 1: killed
        nouveau 0000:1f:00.0: fifo: runlist 0: scheduled for recovery
        [TTM] Buffer eviction failed
        nouveau 0000:1f:00.0: DRM: waiting for kernel channels to go idle...
        nouveau 0000:1f:00.0: DRM: failed to idle channel 1 [DRM]
        nouveau 0000:1f:00.0: DRM: resuming display...
      
      After some bisection and investigation, it appears this resulted from the
      recent changes to ttm_bo_move_to_lru_tail(). Previously when a buffer was
      pinned, the buffer would be removed from the LRU once ttm_bo_unreserve
      to maintain the LRU list when pinning or unpinning BOs. However, since:
      
      commit 3d1a88e1 ("drm/ttm: cleanup LRU handling further")
      
      We've been exiting from ttm_bo_move_to_lru_tail() at the very beginning of
      the function if the bo we're looking at is pinned, resulting in the pinned
      BO never getting removed from the lru and as a result - causing issues when
      it eventually becomes time for eviction.
      
      So, let's fix this by calling ttm_bo_del_from_lru() from
      ttm_bo_move_to_lru_tail() in the event that we're dealing with a pinned
      buffer.
      
      v2 (chk): reduce to only the fixing one liner since we always want to
      call the callback whenever we would move on the LRU.
      
      Fixes: 3d1a88e1 ("drm/ttm: cleanup LRU handling further")
      Cc: Dave Airlie <airlied@redhat.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NLyude Paul <lyude@redhat.com>
      Signed-off-by: NChristian König <christian.koenig@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210105114505.38210-1-christian.koenig@amd.com
      70612d0e
  10. 16 12月, 2020 2 次提交
  11. 14 12月, 2020 1 次提交
  12. 02 12月, 2020 1 次提交
  13. 27 11月, 2020 1 次提交
  14. 18 11月, 2020 1 次提交
    • L
      drm/ttm/ttm_bo: Fix one function header - demote lots of kernel-doc abuses · 108cfddf
      Lee Jones 提交于
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/ttm/ttm_bo.c:51: warning: Function parameter or member 'ttm_global_mutex' not described in 'DEFINE_MUTEX'
       drivers/gpu/drm/ttm/ttm_bo.c:286: warning: Function parameter or member 'bo' not described in 'ttm_bo_cleanup_memtype_use'
       drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'bo' not described in 'ttm_bo_cleanup_refs'
       drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'interruptible' not described in 'ttm_bo_cleanup_refs'
       drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'no_wait_gpu' not described in 'ttm_bo_cleanup_refs'
       drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'unlock_resv' not described in 'ttm_bo_cleanup_refs'
       drivers/gpu/drm/ttm/ttm_bo.c:424: warning: Function parameter or member 'bdev' not described in 'ttm_bo_delayed_delete'
       drivers/gpu/drm/ttm/ttm_bo.c:424: warning: Function parameter or member 'remove_all' not described in 'ttm_bo_delayed_delete'
       drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'bo' not described in 'ttm_bo_evict_swapout_allowable'
       drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'ctx' not described in 'ttm_bo_evict_swapout_allowable'
       drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'locked' not described in 'ttm_bo_evict_swapout_allowable'
       drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'busy' not described in 'ttm_bo_evict_swapout_allowable'
       drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'bo' not described in 'ttm_bo_add_move_fence'
       drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'man' not described in 'ttm_bo_add_move_fence'
       drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'mem' not described in 'ttm_bo_add_move_fence'
       drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'no_wait_gpu' not described in 'ttm_bo_add_move_fence'
       drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'bo' not described in 'ttm_bo_mem_force_space'
       drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'place' not described in 'ttm_bo_mem_force_space'
       drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'mem' not described in 'ttm_bo_mem_force_space'
       drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'ctx' not described in 'ttm_bo_mem_force_space'
       drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'bo' not described in 'ttm_bo_mem_space'
       drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'placement' not described in 'ttm_bo_mem_space'
       drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'mem' not described in 'ttm_bo_mem_space'
       drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'ctx' not described in 'ttm_bo_mem_space'
       drivers/gpu/drm/ttm/ttm_bo.c:1387: warning: Function parameter or member 'ctx' not described in 'ttm_bo_swapout'
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Cc: Christian Koenig <christian.koenig@amd.com>
      Cc: Huang Rui <ray.huang@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-media@vger.kernel.org
      Cc: linaro-mm-sig@lists.linaro.org
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201116174112.1833368-32-lee.jones@linaro.org
      108cfddf
  15. 11 11月, 2020 1 次提交
  16. 04 11月, 2020 1 次提交
  17. 29 10月, 2020 2 次提交
  18. 26 10月, 2020 1 次提交
  19. 22 10月, 2020 2 次提交
  20. 21 10月, 2020 5 次提交
  21. 20 10月, 2020 1 次提交
  22. 15 10月, 2020 1 次提交
  23. 07 10月, 2020 4 次提交
  24. 25 9月, 2020 1 次提交
  25. 24 9月, 2020 2 次提交