summaryrefslogtreecommitdiff
path: root/doc/driver-model/usb-info.txt
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2016-10-01 23:32:27 +0200
committerAlexander Graf <agraf@suse.de>2016-10-18 09:08:07 +0200
commitb61d857b2ff3b0b099ef187d7ceebe26ea788578 (patch)
tree28998517dab172e26774c2d5ea2287d53ab6384d /doc/driver-model/usb-info.txt
parent42417bc84d1d56f739d43d562773d4821cf1bf47 (diff)
downloadu-boot-imx-b61d857b2ff3b0b099ef187d7ceebe26ea788578.zip
u-boot-imx-b61d857b2ff3b0b099ef187d7ceebe26ea788578.tar.gz
u-boot-imx-b61d857b2ff3b0b099ef187d7ceebe26ea788578.tar.bz2
efi_loader: Readd freed pages to memory pool
Currently each allocation creates a new mapping. Readding the mapping as free memory (EFI_CONVENTIONAL_MEMORY) potentially allows to hand out an existing mapping, thus limiting the number of mapping descriptors in the memory map. Mitigates a problem with current (4.8rc7) linux kernels when doing an efi_get_memory map, resulting in an infinite loop. Space for the memory map is reserved with allocate_pool (implicitly creating a new mapping) and filled. If there is insufficient slack space (8 entries) in the map, the space is freed and a new round is started, with space for one more entry. As each round increases requirement and allocation by exactly one, there is never enough slack space. (At least 32 entries are allocated, so as long as there are less than 24 entries, there is enough slack). Earlier kernels reserved no slack, and did less allocations, so this problem was not visible. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'doc/driver-model/usb-info.txt')
0 files changed, 0 insertions, 0 deletions