Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933895AbcJTM04 (ORCPT ); Thu, 20 Oct 2016 08:26:56 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:32859 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932165AbcJTM0z (ORCPT ); Thu, 20 Oct 2016 08:26:55 -0400 Date: Thu, 20 Oct 2016 13:26:51 +0100 From: Matt Fleming To: Alex Thorlton Cc: linux-kernel@vger.kernel.org, Mike Travis , Russ Anderson , Dimitri Sivanich , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Masahiro Yamada , x86@kernel.org, Ard Biesheuvel Subject: Re: [PATCH v2] x86/platform/UV: Fix support for EFI_OLD_MEMMAP after BIOS callback updates Message-ID: <20161020122651.GC19876@codeblueprint.co.uk> References: <1476928131-170101-1-git-send-email-athorlton@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476928131-170101-1-git-send-email-athorlton@sgi.com> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1703 Lines: 40 On Wed, 19 Oct, at 08:48:51PM, Alex Thorlton wrote: > Some time ago, we brought our UV BIOS callback code up to speed with the > new EFI memory mapping scheme, in commit: > > d1be84a232e3 ("x86/uv: Update uv_bios_call() to use efi_call_virt_pointer()") > > By leveraging some changes that I made to a few of the EFI runtime > callback mechanisms, in commit: > > 80e75596079f ("efi: Convert efi_call_virt() to efi_call_virt_pointer()") > > This got everything running smoothly on UV, with the new EFI mapping > code. However, this left one, small loose end, in that EFI_OLD_MEMMAP > (a.k.a. efi=old_map) will no longer work on UV, on kernels that include > the aforementioned changes. > > At the time this was not a major issue (in fact, it still really isn't), > but there's no reason that EFI_OLD_MEMMAP *shouldn't* work on our > systems. This commit adds a check into uv_bios_call, to see if we have > the EFI_OLD_MEMMAP bit set in efi.flags. If it is set, we fall back to > using our old callback method, which uses efi_call directly on the __va > of our function pointer. > > v2: Invert if-statement and add unlikely() hint. > > Signed-off-by: Alex Thorlton > Cc: Mike Travis > Cc: Russ Anderson > Cc: Dimitri Sivanich > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Matt Fleming > Cc: Masahiro Yamada > Cc: x86@kernel.org > --- > arch/x86/platform/uv/bios_uv.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) Looks fine to me. Applied to 'next'. Thanks!