Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323572

[PATCH 05/14] efi: runtime-wrappers: Remove out of date comment regarding in_nmi()

From Matt Fleming <matt@codeblueprint.co.uk>
Newsgroups linux.kernel
Subject [PATCH 05/14] efi: runtime-wrappers: Remove out of date comment regarding in_nmi()
Date 2016-02-01 23:20 +0100
Message-ID <qXuZc-112-13@gated-at.bofh.it> (permalink)
References <qXuPx-WW-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Ard Biesheuvel <ard.biesheuvel@linaro.org>

This code is long gone, so remove the comment as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
---
 drivers/firmware/efi/runtime-wrappers.c | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/drivers/firmware/efi/runtime-wrappers.c b/drivers/firmware/efi/runtime-wrappers.c
index e9f2867f0d91..311f415bff51 100644
--- a/drivers/firmware/efi/runtime-wrappers.c
+++ b/drivers/firmware/efi/runtime-wrappers.c
@@ -62,32 +62,6 @@
 static DEFINE_SPINLOCK(efi_runtime_lock);
 
 /*
- * Some runtime services calls can be reentrant under NMI, even if the table
- * above says they are not. (source: UEFI Specification v2.4A)
- *
- * Table 32. Functions that may be called after Machine Check, INIT and NMI
- * +----------------------------+------------------------------------------+
- * | Function			| Called after Machine Check, INIT and NMI |
- * +----------------------------+------------------------------------------+
- * | GetTime()			| Yes, even if previously busy.		   |
- * | GetVariable()		| Yes, even if previously busy		   |
- * | GetNextVariableName()	| Yes, even if previously busy		   |
- * | QueryVariableInfo()	| Yes, even if previously busy		   |
- * | SetVariable()		| Yes, even if previously busy		   |
- * | UpdateCapsule()		| Yes, even if previously busy		   |
- * | QueryCapsuleCapabilities()	| Yes, even if previously busy		   |
- * | ResetSystem()		| Yes, even if previously busy		   |
- * +----------------------------+------------------------------------------+
- *
- * In order to prevent deadlocks under NMI, the wrappers for these functions
- * may only grab the efi_runtime_lock or rtc_lock spinlocks if !efi_in_nmi().
- * However, not all of the services listed are reachable through NMI code paths,
- * so the the special handling as suggested by the UEFI spec is only implemented
- * for QueryVariableInfo() and SetVariable(), as these can be reached in NMI
- * context through efi_pstore_write().
- */
-
-/*
  * As per commit ef68c8f87ed1 ("x86: Serialize EFI time accesses on rtc_lock"),
  * the EFI specification requires that callers of the time related runtime
  * functions serialize with other CMOS accesses in the kernel, as the EFI time
-- 
2.6.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL 00/14] EFI changes for v4.6 Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:20 +0100
  [PATCH 02/14] efi: Remove redundant efi_set_variable_nonblocking prototype Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:20 +0100
    [tip:efi/core] efi: Remove redundant efi_set_variable_nonblocking  () prototype tip-bot for Ard Biesheuvel <tipbot@zytor.com> - 2016-02-03 12:40 +0100
  [PATCH 05/14] efi: runtime-wrappers: Remove out of date comment regarding in_nmi() Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:20 +0100
    [tip:efi/core] efi/runtime-wrappers:   Remove out of date comment regarding in_nmi() tip-bot for Ard Biesheuvel <tipbot@zytor.com> - 2016-02-03 12:40 +0100
  [PATCH 04/14] efi: Add nonblocking option to efi_query_variable_store() Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:20 +0100
    [tip:efi/core] efi:   Add nonblocking option to efi_query_variable_store() tip-bot for Ard Biesheuvel <tipbot@zytor.com> - 2016-02-03 12:40 +0100

csiph-web