]> Git Repo - linux.git/commit
efi/capsule: Allocate whole capsule into virtual memory
authorAustin Christ <[email protected]>
Thu, 11 Aug 2016 10:42:00 +0000 (11:42 +0100)
committerIngo Molnar <[email protected]>
Thu, 11 Aug 2016 11:55:36 +0000 (13:55 +0200)
commit6862e6ad95e984991a6ceec592cf67831658f928
treec230f221c583b39e16b62c92b56cfd826c66f9b5
parentf72075c9eda8a43aeea2f9dbb8d187afd4a76f0b
efi/capsule: Allocate whole capsule into virtual memory

According to UEFI 2.6 section 7.5.3, the capsule should be in contiguous
virtual memory and firmware may consume the capsule immediately. To
correctly implement this functionality, the kernel driver needs to vmap
the entire capsule at the time it is made available to firmware.

The virtual allocation of the capsule update has been changed from kmap,
which was only allocating the first page of the update, to vmap, and
allocates the entire data payload.

Signed-off-by: Austin Christ <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Reviewed-by: Matt Fleming <[email protected]>
Reviewed-by: Lee, Chun-Yi <[email protected]>
Cc: <[email protected]> # v4.7
Cc: Andy Lutomirski <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Bryan O'Donoghue <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Kweh Hock Leong <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/firmware/efi/capsule-loader.c
drivers/firmware/efi/capsule.c
This page took 0.055487 seconds and 4 git commands to generate.