[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19a2a15b-c478-425a-74cc-dcb21ca825ed@hpe.com>
Date: Tue, 23 May 2017 08:17:31 -0700
From: Mike Travis <mike.travis@....com>
To: Baoquan He <bhe@...hat.com>, <linux-kernel@...r.kernel.org>
CC: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, <x86@...nel.org>,
Russ Anderson <rja@....com>,
Dimitri Sivanich <sivanich@....com>,
"travis@....com" <travis@....com>,
Frank Ramsay <frank.ramsay@....com>
Subject: Re: [PATCH v2 1/2] x86/UV: Introduce a helper function to check UV
system at earlier stage
Acked-by: Mike Travis <travis@....com>
On 5/20/2017 5:02 AM, Baoquan He wrote:
> The SGI BIOS adds UVsystab, and only systems running SGI BIOS
> (and now HPE Hawks2) will have UVsystab. And UVsystab is detected in
> efi_init() which is at very early stage. So introduce a new helper
> function is_early_uv_system() for later usage.
>
> Signed-off-by: Baoquan He <bhe@...hat.com>
> Cc: Thomas Gleixner <tglx@...utronix.de>
> Cc: Ingo Molnar <mingo@...hat.com>
> Cc: "H. Peter Anvin" <hpa@...or.com>
> Cc: x86@...nel.org
> Cc: Russ Anderson <rja@....com>
> Cc: Dimitri Sivanich <sivanich@....com>
> Cc: "travis@....com" <travis@....com>
> Cc: Mike Travis <mike.travis@....com>
> Cc: Frank Ramsay <frank.ramsay@....com>
> ---
> arch/x86/include/asm/uv/uv.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/x86/include/asm/uv/uv.h b/arch/x86/include/asm/uv/uv.h
> index 6686820..159f698 100644
> --- a/arch/x86/include/asm/uv/uv.h
> +++ b/arch/x86/include/asm/uv/uv.h
> @@ -19,6 +19,11 @@ extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
> unsigned long start,
> unsigned long end,
> unsigned int cpu);
> +#include <linux/efi.h>
> +static inline int is_early_uv_system(void)
> +{
> + return !((efi.uv_systab == EFI_INVALID_TABLE_ADDR) || !efi.uv_systab);
> +}
>
> #else /* X86_UV */
>
> @@ -31,6 +36,7 @@ static inline const struct cpumask *
> uv_flush_tlb_others(const struct cpumask *cpumask, struct mm_struct *mm,
> unsigned long start, unsigned long end, unsigned int cpu)
> { return cpumask; }
> +static inline int is_early_uv_system(void) { return 0; }
>
> #endif /* X86_UV */
>
Powered by blists - more mailing lists