All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>,
	khorenko@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 3/4] ms/gpu/buddy: bail out of try_harder when alignment cannot be honoured
Date: Wed, 18 Nov 2026 11:47:16 +0000	[thread overview]
Message-ID: <010701a1ee7b8b8f-03236188-b43a-43dd-a901-0f5d51fb6fc6-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261118113935.381228-4-mirian.shilakadze@virtuozzo.com>

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@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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-11-18 11:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 11:38 [Devel] [PATCH hci-8.2 0/4] drm/buddy: backport buddy allocator fixes Mirian Shilakadze
2026-11-18 11:38 ` [Devel] [PATCH hci-8.2 1/4] ms/drm/buddy: Prevent BUG_ON by validating rounded allocation Mirian Shilakadze
2026-11-18 11:43   ` no-reply
2026-11-18 11:38 ` [Devel] [PATCH hci-8.2 2/4] ms/gpu/buddy: Fix use-after-free in split_block() call sites Mirian Shilakadze
2026-11-18 11:43   ` no-reply
2026-11-18 11:38 ` [Devel] [PATCH hci-8.2 3/4] ms/gpu/buddy: bail out of try_harder when alignment cannot be honoured Mirian Shilakadze
2026-11-18 11:47   ` no-reply [this message]
2026-11-18 11:38 ` [Devel] [PATCH hci-8.2 4/4] ms/gpu/buddy: do not pass caller list to __alloc_contig_try_harder() Mirian Shilakadze
2026-11-18 11:45   ` no-reply
2026-11-18 15:37 ` [Devel] [PATCH hci-8.2 0/4] drm/buddy: backport buddy allocator fixes Konstantin Khorenko
2026-11-18 15:37 ` Konstantin Khorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010701a1ee7b8b8f-03236188-b43a-43dd-a901-0f5d51fb6fc6-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=mirian.shilakadze@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.