[Devel] [PATCH hci-8.2 3/4] ms/gpu/buddy: bail out of try_harder when alignment cannot be honoured
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Wed Nov 18 14:47:16 MSK 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/buddy: subject and changelog do not match realign-and-retry
in try_harder
--
commit ac045c7116949555587c6ac992862d6b75574a02
Author: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam at amd.com>
ms/gpu/buddy: bail out of try_harder when alignment cannot be honoured
This commit changes __alloc_contig_try_harder() so that a candidate range
whose start is not aligned to min_block_size is freed and reallocated at
the rounded-down offset. The request fails with -ENOSPC only when no
aligned candidate fits.
Link: https://patch.msgid.link/20260709131050.1022759-1-Arunpravin.PaneerSelvam@amd.com
> ms/gpu/buddy: bail out of try_harder when alignment cannot be honoured
[Severity: Low]
This isn't a bug, but does the subject match what the patch does? The
code no longer bails out on misalignment. It frees the misaligned run
and reallocates exactly size at round_down(offset, min_block_size). The
v2 changelog line ("align misaligned candidates down to min_block_size
instead of bailing out") contradicts the subject, so the subject looks
stale.
The message also leaves out the rewrite of the LHS path. The old code
allocated only the missing remainder below the RHS run and spliced it
onto the RHS blocks. The new code frees the partial RHS run and
reallocates the full size at the aligned LHS offset. It also adds a
"size - filled > rhs_offset" guard and computes order as
ilog2(modify_size) - ilog2(mm->chunk_size) instead of fls(pages) - 1.
Could the subject and body describe these changes, so reviewers and
stable backporters know what is being changed?
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261118113935.381228-1-mirian.shilakadze@virtuozzo.com?part=3
More information about the Devel
mailing list