linux-next: manual merge of the drm-xe tree with the drm-misc tree
Subsystems (3)
Mark Brown
maintainerHi all,
Today's linux-next merge of the drm-xe tree got a conflict in:
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
between commit:
ba110db8e1bc2 ("gpu: Move DRM buddy allocator one level up (part two)")
from the drm-misc tree and commit:
dc2fc00ba94de ("drm/xe: Use DRM_BUDDY_CONTIGUOUS_ALLOCATION for contiguous allocations")
from the drm-xe tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +0 -0
@@@ -80,10 -79,13 +80,13 @@@ static int xe_ttm_vram_mgr_new(struct tINIT_LIST_HEAD (&vres->blocks);if (place->flags &TTM_PL_FLAG_TOPDOWN ) - vres->flags |=DRM_BUDDY_TOPDOWN_ALLOCATION ; + vres->flags |=GPU_BUDDY_TOPDOWN_ALLOCATION ; +if (place->flags &TTM_PL_FLAG_CONTIGUOUS ) + vres->flags |=DRM_BUDDY_CONTIGUOUS_ALLOCATION ; +if (place->fpfn || lpfn != man->size >>PAGE_SHIFT ) - vres->flags |=DRM_BUDDY_RANGE_ALLOCATION ; + vres->flags |=GPU_BUDDY_RANGE_ALLOCATION ;if (WARN_ON (!vres->base.size)) { err = -EINVAL ; goto error_unlock; } -if (place->fpfn + (size >>PAGE_SHIFT ) != lpfn && - place->flags &TTM_PL_FLAG_CONTIGUOUS ) { - size =roundup_pow_of_two (size); - min_page_size = size; - - lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn); - } - - err =drm_buddy_alloc_blocks (mm, (u64 )place->fpfn <<PAGE_SHIFT , + err =gpu_buddy_alloc_blocks (mm, (u64 )place->fpfn <<PAGE_SHIFT , (u64 )lpfn <<PAGE_SHIFT , size, min_page_size, &vres->blocks, vres->flags);if (err)
On Feb 23, 2026, at 8:35 AM, Mark Brown <[email protected]> wrote:
Hi all,
Today's linux-next merge of the drm-xe tree got a conflict in:
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
between commit:
ba110db8e1bc2 ("gpu: Move DRM buddy allocator one level up (part two)")
from the drm-misc tree and commit:
dc2fc00ba94de ("drm/xe: Use DRM_BUDDY_CONTIGUOUS_ALLOCATION for contiguous allocations")
Dave, this commit should also carry the rename?
Thanks,
Joel
from the drm-xe tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +0 -0
@@@ -80,10 -79,13 +80,13 @@@ static int xe_ttm_vram_mgr_new(struct tINIT_LIST_HEAD (&vres->blocks);
if (place->flags & TTM_PL_FLAG_TOPDOWN) - vres->flags |= DRM_BUDDY_TOPDOWN_ALLOCATION; + vres->flags |= GPU_BUDDY_TOPDOWN_ALLOCATION;
+ if (place->flags & TTM_PL_FLAG_CONTIGUOUS)
+ vres->flags |= DRM_BUDDY_CONTIGUOUS_ALLOCATION;
+
if (place->fpfn || lpfn != man->size >> PAGE_SHIFT) - vres->flags |= DRM_BUDDY_RANGE_ALLOCATION; + vres->flags |= GPU_BUDDY_RANGE_ALLOCATION;
if (WARN_ON(!vres->base.size)) {
err = -EINVAL;
@@@ -111,15 -113,7 +114,7 @@@
goto error_unlock;
}- if (place->fpfn + (size >> PAGE_SHIFT) != lpfn &&
- place->flags & TTM_PL_FLAG_CONTIGUOUS) {
- size = roundup_pow_of_two(size);
- min_page_size = size;-
- lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn);
- }
-
- err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT,
+ err = gpu_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT,
(u64)lpfn << PAGE_SHIFT, size,
min_page_size, &vres->blocks, vres->flags);
if (err)