Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Use enum mode in drm_mm_insert_node_in_range
@ 2024-04-09 11:15 Nirmoy Das
  2024-04-09 11:31 ` Matthew Auld
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Nirmoy Das @ 2024-04-09 11:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Nirmoy Das, Matthew Auld

Use DRM_MM_INSERT_BEST as mode instead of zero.

Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
---
 drivers/gpu/drm/xe/xe_ggtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index ff2239c0eda5..910153eed457 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -408,7 +408,8 @@ static int __xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
 	xe_device_mem_access_get(tile_to_xe(ggtt->tile));
 	mutex_lock(&ggtt->lock);
 	err = drm_mm_insert_node_in_range(&ggtt->mm, &bo->ggtt_node, bo->size,
-					  alignment, 0, start, end, 0);
+					  alignment, 0, start, end,
+					  DRM_MM_INSERT_BEST);
 	if (!err)
 		xe_ggtt_map_bo(ggtt, bo);
 	mutex_unlock(&ggtt->lock);
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-04-09 14:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-09 11:15 [PATCH] drm/i915: Use enum mode in drm_mm_insert_node_in_range Nirmoy Das
2024-04-09 11:31 ` Matthew Auld
2024-04-09 11:33   ` Matthew Auld
2024-04-09 11:36     ` Nirmoy Das
2024-04-09 11:49 ` ✓ CI.Patch_applied: success for " Patchwork
2024-04-09 11:49 ` ✓ CI.checkpatch: " Patchwork
2024-04-09 11:50 ` ✓ CI.KUnit: " Patchwork
2024-04-09 12:02 ` ✓ CI.Build: " Patchwork
2024-04-09 12:04 ` ✓ CI.Hooks: " Patchwork
2024-04-09 12:06 ` ✓ CI.checksparse: " Patchwork
2024-04-09 12:30 ` ✗ CI.BAT: failure " Patchwork
2024-04-09 14:32 ` ✓ CI.FULL: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox