Re: [PATCH 1/2] numa: Add simple generic NUMA emulation
From: Greg Kroah-Hartman
Date: Wed Jun 26 2024 - 03:39:02 EST
On Tue, Jun 25, 2024 at 01:58:02PM +0100, Tvrtko Ursulin wrote:
> From: Maíra Canal <mcanal@xxxxxxxxxx>
>
> Add some common code for splitting the memory into N emulated NUMA memory
> nodes.
>
> Individual architecture can then enable selecting this option and use the
> existing numa=fake=<N> kernel argument to enable it.
>
> Memory is always split into equally sized chunks.
>
> Signed-off-by: Maíra Canal <mcanal@xxxxxxxxxx>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxxx>
> Co-developed-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxxx>
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: Will Deacon <will@xxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Cc: “Rafael J. Wysocki" <rafael@xxxxxxxxxx>
> ---
> drivers/base/Kconfig | 7 ++++
> drivers/base/Makefile | 1 +
> drivers/base/arch_numa.c | 6 ++++
> drivers/base/numa_emulation.c | 67 +++++++++++++++++++++++++++++++++++
> drivers/base/numa_emulation.h | 21 +++++++++++
Why not just properly describe the numa topology in your bootloader or
device tree and not need any such "fake" stuff at all?
Also, you are now asking me to maintain these new files, not something
I'm comfortable doing at all sorry.
greg k-h