mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
x86/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. Signed-off-by: Madper Xie <cxie@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
This commit is contained in:
parent
aca32b5768
commit
5db80c6514
1 changed files with 5 additions and 7 deletions
|
@ -1110,9 +1110,8 @@ u64 efi_mem_attributes(unsigned long phys_addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some firmware has serious problems when using more than 50% of the EFI
|
* Some firmware implementations refuse to boot if there's insufficient space
|
||||||
* variable store, i.e. it triggers bugs that can brick machines. Ensure that
|
* in the variable store. Ensure that we never use more than a safe limit.
|
||||||
* we never use more than this safe limit.
|
|
||||||
*
|
*
|
||||||
* Return EFI_SUCCESS if it is safe to write 'size' bytes to the variable
|
* Return EFI_SUCCESS if it is safe to write 'size' bytes to the variable
|
||||||
* store.
|
* store.
|
||||||
|
@ -1131,10 +1130,9 @@ efi_status_t efi_query_variable_store(u32 attributes, unsigned long size)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some firmware implementations refuse to boot if there's insufficient
|
* We account for that by refusing the write if permitting it would
|
||||||
* space in the variable store. We account for that by refusing the
|
* reduce the available space to under 5KB. This figure was provided by
|
||||||
* write if permitting it would reduce the available space to under
|
* Samsung, so should be safe.
|
||||||
* 5KB. This figure was provided by Samsung, so should be safe.
|
|
||||||
*/
|
*/
|
||||||
if ((remaining_size - size < EFI_MIN_RESERVE) &&
|
if ((remaining_size - size < EFI_MIN_RESERVE) &&
|
||||||
!efi_no_storage_paranoia) {
|
!efi_no_storage_paranoia) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue