Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge drm/drm-next into drm-xe-next

Additional backmerge to avoid excessive diffstats when
sending PR.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>

+3 -9
-1
drivers/gpu/drm/ttm/ttm_bo_vm.c
··· 220 220 struct ttm_operation_ctx ctx = { 221 221 .interruptible = true, 222 222 .no_wait_gpu = false, 223 - .force_alloc = true 224 223 }; 225 224 226 225 ttm = bo->ttm;
-1
drivers/gpu/drm/ttm/ttm_resource.c
··· 548 548 struct ttm_operation_ctx ctx = { 549 549 .interruptible = false, 550 550 .no_wait_gpu = false, 551 - .force_alloc = true 552 551 }; 553 552 struct dma_fence *fence; 554 553 int ret;
+1 -3
drivers/gpu/drm/xe/xe_bo.c
··· 2930 2930 /** 2931 2931 * xe_bo_evict - Evict an object to evict placement 2932 2932 * @bo: The buffer object to migrate. 2933 - * @force_alloc: Set force_alloc in ttm_operation_ctx 2934 2933 * 2935 2934 * On successful completion, the object memory will be moved to evict 2936 2935 * placement. This function blocks until the object has been fully moved. 2937 2936 * 2938 2937 * Return: 0 on success. Negative error code on failure. 2939 2938 */ 2940 - int xe_bo_evict(struct xe_bo *bo, bool force_alloc) 2939 + int xe_bo_evict(struct xe_bo *bo) 2941 2940 { 2942 2941 struct ttm_operation_ctx ctx = { 2943 2942 .interruptible = false, 2944 2943 .no_wait_gpu = false, 2945 - .force_alloc = force_alloc, 2946 2944 .gfp_retry_mayfail = true, 2947 2945 }; 2948 2946 struct ttm_placement placement;
+1 -1
drivers/gpu/drm/xe/xe_bo.h
··· 274 274 bool xe_bo_can_migrate(struct xe_bo *bo, u32 mem_type); 275 275 276 276 int xe_bo_migrate(struct xe_bo *bo, u32 mem_type); 277 - int xe_bo_evict(struct xe_bo *bo, bool force_alloc); 277 + int xe_bo_evict(struct xe_bo *bo); 278 278 279 279 int xe_bo_evict_pinned(struct xe_bo *bo); 280 280 int xe_bo_notifier_prepare_pinned(struct xe_bo *bo);
+1 -1
drivers/gpu/drm/xe/xe_dma_buf.c
··· 233 233 struct drm_gem_object *obj = attach->importer_priv; 234 234 struct xe_bo *bo = gem_to_xe_bo(obj); 235 235 236 - XE_WARN_ON(xe_bo_evict(bo, false)); 236 + XE_WARN_ON(xe_bo_evict(bo)); 237 237 } 238 238 239 239 static const struct dma_buf_attach_ops xe_dma_buf_attach_ops = {
-2
include/drm/ttm/ttm_bo.h
··· 172 172 * @gfp_retry_mayfail: Set the __GFP_RETRY_MAYFAIL when allocation pages. 173 173 * @allow_res_evict: Allow eviction of reserved BOs. Can be used when multiple 174 174 * BOs share the same reservation object. 175 - * @force_alloc: Don't check the memory account during suspend or CPU page 176 175 * faults. Should only be used by TTM internally. 177 176 * @resv: Reservation object to allow reserved evictions with. 178 177 * @bytes_moved: Statistics on how many bytes have been moved. ··· 184 185 bool no_wait_gpu; 185 186 bool gfp_retry_mayfail; 186 187 bool allow_res_evict; 187 - bool force_alloc; 188 188 struct dma_resv *resv; 189 189 uint64_t bytes_moved; 190 190 };