From: Matt Fleming Date: Fri, 7 Sep 2012 17:28:04 +0000 (+0100) Subject: x86, efi: 1:1 pagetable mapping for virtual EFI calls X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~16^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185034e72d591f9465e5e18f937ed642e7ea0070;p=pandora-kernel.git x86, efi: 1:1 pagetable mapping for virtual EFI calls Some firmware still needs a 1:1 (virt->phys) mapping even after we've called SetVirtualAddressMap(). So install the mapping alongside our existing kernel mapping whenever we make EFI calls in virtual mode. This bug was discovered on ASUS machines where the firmware implementation of GetTime() accesses the RTC device via physical addresses, even though that's bogus per the UEFI spec since we've informed the firmware via SetVirtualAddressMap() that the boottime memory map is no longer valid. This bug seems to be present in a lot of consumer devices, so there's not a lot we can do about this spec violation apart from workaround it. Cc: JérômeCarretero Cc: Vasco Dias Acked-by: Jan Beulich Signed-off-by: Matt Fleming --- Reading git-diff-tree failed