[Devel] [PATCH hci-8.2 0/4] drm/buddy: backport buddy allocator fixes
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 18 18:37:13 MSK 2026
Applying with these fixes on my side:
- 4/4 adaptation note: both call sites returned the result of
__alloc_contig_try_harder() directly, not only the second one, and
upstream's goto err_free came with 1ad5e807f716 ("gpu/buddy: replace
dual-tree/force_merge with decoupled dirty tracker"), which is not in
this tree
On Wed, 18 Nov 2026 15:38:09 +0400, Mirian Shilakadze wrote:
> 4. fb26cf4f1df4: when the contiguous fallback fails or retries, it
> frees the whole list the caller passed in, including blocks the
> caller allocated before. Not in the ticket and not in mainline yet
> (linux-next, Cc stable). Taken because it fixes the same fallback as
> 3 and the drm_buddy suite catches it: without 4, alloc_contiguous
> fails on the check that 4 adds.
Fine to take, but the suite catches it only through the check 4 adds
itself, and no driver here passes a non-empty list with
DRM_BUDDY_CONTIGUOUS_ALLOCATION. It hardens the API; at the next RHEL
rebase check that it reached mainline under the same id.
Thanks.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list