Re: [PATCH v3 2/4] memblock: rename KHO_SCRATCH to KHO_NOPRSRV

From: sashiko-bot

Date: Tue Sep 22 2026 - 00:19:29 EST


> From: "Pratyush Yadav (Google)" <pratyush@xxxxxxxxxx>
>
> The term "KHO scratch" is vague. It does not accurately describe what
> the memory is for. Generally, scratch is for things that don't contain
> anything useful. This is not true.
>
> For memblock, KHO_SCRATCH is the _only_ useful memory during a KHO boot.
> It is memory passed by the previous kernel that is guaranteed to have no
> preserved pages, and so is the only thing safe to allocate from early in
> boot.
>
> In addition, KHO now has the ability to discover other "scratch" areas.
> These aren't directly passed by the previous kernel. Instead, they are
> found by searching the KHO preserved memory map.
>
> Memblock does not care about the difference between the two. From
> memblock's perspective, both are memory areas with no preservations and
> so they are safe to allocate from before KHO fully initializes.
>
> Rename MEMBLOCK_KHO_SCRATCH to MEMBLOCK_KHO_NOPRSRV. This name clearly
> shows what the memory is for from memblock's perspective. Update
> memblock functions and comments that refer to scratch to use noprsrv.
>
> There are no functional changes apart from the flag name change in
> debugfs.
>
> Signed-off-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>

Sashiko has reviewed this patch and found no issues. It looks great!

--
Sashiko AI review · https://sashiko.dev/#/patchset/20260922041321.233986-1-pratyush@xxxxxxxxxx?part=2