[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1462996545-98387-1-git-send-email-athorlton@sgi.com>
Date: Wed, 11 May 2016 14:55:43 -0500
From: Alex Thorlton <athorlton@....com>
To: linux-kernel@...r.kernel.org
Cc: Alex Thorlton <athorlton@....com>,
Dimitri Sivanich <sivanich@....com>,
Russ Anderson <rja@....com>, Mike Travis <travis@....com>,
Matt Fleming <matt@...eblueprint.co.uk>,
Borislav Petkov <bp@...e.de>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org,
linux-efi@...r.kernel.org
Subject: [RFC PATCH 0/2] Fix EFI runtime calls on SGI UV
These patches make the necessary changes to get SGI UVs working with the
latest EFI memory mapping code. The motivation behind the changes is
fairly simple:
Patch 1: The current efi_call_virt macro will not work with function
pointers that don't live in efi.systab->runtime
Patch 2: The efi_call assembly code incorrectly puts the return address
from the current stack frame into the space reserved for the
arguments in the stack frame that we're setting up for our EFI
runtime call, instead of the 7th argument to efi_call.
I'm pretty sure that the second patch should be fine in its current
state, but there will likely need to be some discussion about how to
properly handle the stuff I'm doing in the first patch. I know we need
to do something kind of like what I did, but I know my copied/pasted
UV-specific macros are not how we'll want to implement this in the end.
Please note that, as requested, these patches apply to the current
tip/master branch, but they will not apply out-of-the-box to
linus/master.
Let me know what everybody thinks!
Cc: Dimitri Sivanich <sivanich@....com>
Cc: Russ Anderson <rja@....com>
Cc: Mike Travis <travis@....com>
Cc: Matt Fleming <matt@...eblueprint.co.uk>
Cc: Borislav Petkov <bp@...e.de>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: x86@...nel.org
Cc: linux-efi@...r.kernel.org
Alex Thorlton (2):
Create UV efi_call macros
Fix efi_call
arch/x86/include/asm/efi.h | 3 ++
arch/x86/platform/efi/efi_stub_64.S | 2 +-
arch/x86/platform/uv/bios_uv.c | 3 +-
drivers/firmware/efi/runtime-wrappers.c | 44 +-------------------------
include/linux/efi.h | 55 +++++++++++++++++++++++++++++++++
5 files changed, 61 insertions(+), 46 deletions(-)
--
1.8.5.6
Powered by blists - more mailing lists