Skip to content

Commit 1bb53d0

Browse files
author
Thomas Hellström
committed
Merge drm/drm-next into drm-xe-next
Additional backmerge to avoid excessive diffstats when sending PR. Signed-off-by: Thomas Hellström <[email protected]>
2 parents 84a11c5 + d2b9e2f commit 1bb53d0

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

drivers/gpu/drm/ttm/ttm_bo_vm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ vm_fault_t ttm_bo_vm_fault_reserved(struct vm_fault *vmf,
220220
struct ttm_operation_ctx ctx = {
221221
.interruptible = true,
222222
.no_wait_gpu = false,
223-
.force_alloc = true
224223
};
225224

226225
ttm = bo->ttm;

drivers/gpu/drm/ttm/ttm_resource.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ int ttm_resource_manager_evict_all(struct ttm_device *bdev,
548548
struct ttm_operation_ctx ctx = {
549549
.interruptible = false,
550550
.no_wait_gpu = false,
551-
.force_alloc = true
552551
};
553552
struct dma_fence *fence;
554553
int ret;

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,19 +2930,17 @@ int xe_bo_migrate(struct xe_bo *bo, u32 mem_type)
29302930
/**
29312931
* xe_bo_evict - Evict an object to evict placement
29322932
* @bo: The buffer object to migrate.
2933-
* @force_alloc: Set force_alloc in ttm_operation_ctx
29342933
*
29352934
* On successful completion, the object memory will be moved to evict
29362935
* placement. This function blocks until the object has been fully moved.
29372936
*
29382937
* Return: 0 on success. Negative error code on failure.
29392938
*/
2940-
int xe_bo_evict(struct xe_bo *bo, bool force_alloc)
2939+
int xe_bo_evict(struct xe_bo *bo)
29412940
{
29422941
struct ttm_operation_ctx ctx = {
29432942
.interruptible = false,
29442943
.no_wait_gpu = false,
2945-
.force_alloc = force_alloc,
29462944
.gfp_retry_mayfail = true,
29472945
};
29482946
struct ttm_placement placement;

drivers/gpu/drm/xe/xe_bo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ uint64_t vram_region_gpu_offset(struct ttm_resource *res);
274274
bool xe_bo_can_migrate(struct xe_bo *bo, u32 mem_type);
275275

276276
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);
278278

279279
int xe_bo_evict_pinned(struct xe_bo *bo);
280280
int xe_bo_notifier_prepare_pinned(struct xe_bo *bo);

drivers/gpu/drm/xe/xe_dma_buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void xe_dma_buf_move_notify(struct dma_buf_attachment *attach)
233233
struct drm_gem_object *obj = attach->importer_priv;
234234
struct xe_bo *bo = gem_to_xe_bo(obj);
235235

236-
XE_WARN_ON(xe_bo_evict(bo, false));
236+
XE_WARN_ON(xe_bo_evict(bo));
237237
}
238238

239239
static const struct dma_buf_attach_ops xe_dma_buf_attach_ops = {

include/drm/ttm/ttm_bo.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ struct ttm_bo_kmap_obj {
172172
* @gfp_retry_mayfail: Set the __GFP_RETRY_MAYFAIL when allocation pages.
173173
* @allow_res_evict: Allow eviction of reserved BOs. Can be used when multiple
174174
* BOs share the same reservation object.
175-
* @force_alloc: Don't check the memory account during suspend or CPU page
176175
* faults. Should only be used by TTM internally.
177176
* @resv: Reservation object to allow reserved evictions with.
178177
* @bytes_moved: Statistics on how many bytes have been moved.
@@ -185,7 +184,6 @@ struct ttm_operation_ctx {
185184
bool no_wait_gpu;
186185
bool gfp_retry_mayfail;
187186
bool allow_res_evict;
188-
bool force_alloc;
189187
struct dma_resv *resv;
190188
uint64_t bytes_moved;
191189
};

0 commit comments

Comments
 (0)