Skip to contentSkip to conversation

EFI: Delete out-of-date comments of efi_query_variable_store

PATCH Applied Madper Xie 2 participants 2 messages Nov 10, 2013 – Nov 11, 2013

Subsystems (2)
lore
Share & tools
lore

Madper Xie

author
#0 lore raw

PATCH 1/1 EFI: Delete out-of-date comments of efi_query_variable_store

For now we only ensure about 5kb free space for avoiding our board refusing boot. But the comment lies that we retain 50% space.

---
 arch/x86/platform/efi/efi.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
arch/x86/platform/efi/efi.c +5 -7
index c7e22ab..1a39d4d 100644
@@ -1039,9 +1039,8 @@ u64 efi_mem_attributes(unsigned long phys_addr)
 }
 
 /*
- * Some firmware has serious problems when using more than 50% of the EFI
- * variable store, i.e. it triggers bugs that can brick machines. Ensure that
- * we never use more than this safe limit.
+ * Some firmware implementations refuse to boot if there's insufficient space
+ * in the variable store. Ensure that we never use more than a safe limit.
  *
  * Return EFI_SUCCESS if it is safe to write 'size' bytes to the variable
  * store.
@@ -1060,10 +1059,9 @@ efi_status_t efi_query_variable_store(u32 attributes, unsigned long size)
 		return status;
 
 	/*
-	 * Some firmware implementations refuse to boot if there's insufficient
-	 * space in the variable store. We account for that by refusing the
-	 * write if permitting it would reduce the available space to under
-	 * 5KB. This figure was provided by Samsung, so should be safe.
+	 * We account for that by refusing the write if permitting it would
+	 * reduce the available space to under 5KB. This figure was provided by
+	 * Samsung, so should be safe.
 	 */
 	if ((remaining_size - size < EFI_MIN_RESERVE) &&
 		!efi_no_storage_paranoia) {
Signature · 1 line
1.8.4.2
Applied
#1 lore raw
Quoted 8 lines · Madper Xie

For now we only ensure about 5kb free space for avoiding our board refusing boot. But the comment lies that we retain 50% space.

---
 arch/x86/platform/efi/efi.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Applied, thanks.

Signature · 1 line
Matt Fleming, Intel Open Source Technology Center