From: Josh Triplett Date: Sat, 29 Sep 2012 00:56:08 +0000 (-0700) Subject: efi: Add a function to look up existing IO memory mappings X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~87^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc90e01c3f66c137e7e761f574bbf883087d590;p=pandora-kernel.git efi: Add a function to look up existing IO memory mappings The EFI initialization creates virtual mappings for EFI boot services memory, so if a driver wants to access EFI boot services memory, it cannot call ioremap itself; doing so will trip the WARN about mapping RAM twice. Thus, a driver accessing EFI boot services memory must do so via the existing mapping already created during EFI intiialization. Since the EFI code already maintains a memory map for that memory, add a function efi_lookup_mapped_addr to look up mappings in that memory map. Signed-off-by: Josh Triplett Link: http://lkml.kernel.org/r/0eb48ae012797912874919110660ad420b90268b.1348876882.git.josh@joshtriplett.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed