Re: [PATCH v2 02/22] x86/numa: Add 'nohmat' option

From: Randy Dunlap
Date: Sun Jul 12 2020 - 12:59:20 EST


On 7/12/20 9:26 AM, Dan Williams wrote:
> Disable parsing of the HMAT for debug, to workaround broken platform
> instances, or cases where it is otherwise not wanted.
>
> Cc: x86@xxxxxxxxxx
> Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
> Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> Cc: Andy Lutomirski <luto@xxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>
> Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
> ---
> arch/x86/mm/numa.c | 2 ++
> drivers/acpi/numa/hmat.c | 8 +++++++-
> include/acpi/acpi_numa.h | 8 ++++++++
> 3 files changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
> index ee24646dc44e..44fdf06d497e 100644
> --- a/arch/x86/mm/numa.c
> +++ b/arch/x86/mm/numa.c
> @@ -41,6 +41,8 @@ static __init int numa_setup(char *opt)
> return numa_emu_cmdline(opt + 5);
> if (!strncmp(opt, "noacpi", 6))
> disable_srat();
> + if (!strncmp(opt, "nohmat", 6))
> + disable_hmat();
> return 0;
> }
> early_param("numa", numa_setup);

Please add that to
Documentation/x86/x86_64/boot-options.rst.

thanks.
--
~Randy