Backmerge tag 'v5.13-rc7' into drm-next
authorDave Airlie <airlied@redhat.com>
Wed, 23 Jun 2021 00:07:48 +0000 (10:07 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Jun 2021 00:07:48 +0000 (10:07 +1000)
Backmerge Linux 5.13-rc7 to make some pulls from later bases apply,
and to bake in the conflicts so far.

1  2 
MAINTAINERS
drivers/gpu/drm/drm_auth.c
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/mcde/mcde_dsi.c
drivers/gpu/drm/meson/meson_drv.c
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_device.c
drivers/gpu/drm/vc4/vc4_kms.c
include/linux/pci.h

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -1128,18 -1169,13 +1128,21 @@@ int ttm_bo_swapout(struct ttm_buffer_ob
        bool locked;
        int ret;
  
 -      if (!ttm_bo_evict_swapout_allowable(bo, ctx, &locked, NULL))
 +      /*
 +       * While the bo may already reside in SYSTEM placement, set
 +       * SYSTEM as new placement to cover also the move further below.
 +       * The driver may use the fact that we're moving from SYSTEM
 +       * as an indication that we're about to swap out.
 +       */
 +      memset(&place, 0, sizeof(place));
 +      place.mem_type = TTM_PL_SYSTEM;
 +      if (!ttm_bo_evict_swapout_allowable(bo, ctx, &place, &locked, NULL))
                return -EBUSY;
  
-       if (!ttm_bo_get_unless_zero(bo)) {
+       if (!bo->ttm || !ttm_tt_is_populated(bo->ttm) ||
+           bo->ttm->page_flags & TTM_PAGE_FLAG_SG ||
+           bo->ttm->page_flags & TTM_PAGE_FLAG_SWAPPED ||
+           !ttm_bo_get_unless_zero(bo)) {
                if (locked)
                        dma_resv_unlock(bo->base.resv);
                return -EBUSY;
Simple merge
Simple merge
Simple merge