[PATCH] x86/efi: Fix oops caused by incorrect set_memory_uc() usage

2012-10-19 Thread Matt Fleming
From: Matt Fleming Calling __pa() with an ioremap'd address is invalid. If we encounter an efi_memory_desc_t without EFI_MEMORY_WB set in ->attribute we currently call set_memory_uc(), which in turn calls __pa() on a potentially ioremap'd address. On CONFIG_X86_32 this results in the following

[PATCH] x86/efi: Fix oops caused by incorrect set_memory_uc() usage

2012-10-19 Thread Matt Fleming
From: Matt Fleming matt.flem...@intel.com Calling __pa() with an ioremap'd address is invalid. If we encounter an efi_memory_desc_t without EFI_MEMORY_WB set in -attribute we currently call set_memory_uc(), which in turn calls __pa() on a potentially ioremap'd address. On CONFIG_X86_32 this