[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAG_fn=WLot3UecUrbTQKRrx-QNskuTiBwQr8RbtesbGYkK4wLA@mail.gmail.com>
Date: Fri, 14 Jul 2023 14:09:39 +0200
From: Alexander Potapenko <glider@...gle.com>
To: Andrew Donnellan <ajd@...ux.ibm.com>
Cc: akpm@...ux-foundation.org, xkernel.wang@...mail.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lib/test_meminit: Allocate pages up to order MAX_ORDER
On Fri, Jul 14, 2023 at 3:53 AM Andrew Donnellan <ajd@...ux.ibm.com> wrote:
>
> test_pages() tests the page allocator by calling alloc_pages() with
> different orders up to order 10.
>
> However, different architectures and platforms support different maximum
> contiguous allocation sizes. The default maximum allocation order
> (MAX_ORDER) is 10, but architectures can use CONFIG_ARCH_FORCE_MAX_ORDER
> to override this. On platforms where this is less than 10, test_meminit()
> will blow up with a WARN(). This is expected, so let's not do that.
>
> Replace the hardcoded "10" with the MAX_ORDER macro so that we test
> allocations up to the expected platform limit.
>
> Fixes: 5015a300a522 ("lib: introduce test_meminit module")
> Signed-off-by: Andrew Donnellan <ajd@...ux.ibm.com>
Reviewed-by: Alexander Potapenko <glider@...gle.com>
Powered by blists - more mailing lists