Re: [PATCH] arm64/efi: handle potential failure to remap memory map

2015-01-16 Thread Catalin Marinas
On Thu, Jan 15, 2015 at 04:40:11PM +, Mark Rutland wrote: > On Thu, Jan 15, 2015 at 12:01:06PM +, Ard Biesheuvel wrote: > > When remapping the UEFI memory map using ioremap_cache(), we > > have to deal with potential failure. Note that, even if the > > common case is for ioremap_cache() to

Re: [PATCH] arm64/efi: handle potential failure to remap memory map

2015-01-15 Thread Mark Salter
On Thu, 2015-01-15 at 12:01 +, Ard Biesheuvel wrote: > When remapping the UEFI memory map using ioremap_cache(), we > have to deal with potential failure. Note that, even if the > common case is for ioremap_cache() to return the existing linear > mapping of the memory map, we cannot rely on tha

Re: [PATCH] arm64/efi: handle potential failure to remap memory map

2015-01-15 Thread Mark Rutland
On Thu, Jan 15, 2015 at 12:01:06PM +, Ard Biesheuvel wrote: > When remapping the UEFI memory map using ioremap_cache(), we > have to deal with potential failure. Note that, even if the > common case is for ioremap_cache() to return the existing linear > mapping of the memory map, we cannot rely

[PATCH] arm64/efi: handle potential failure to remap memory map

2015-01-15 Thread Ard Biesheuvel
When remapping the UEFI memory map using ioremap_cache(), we have to deal with potential failure. Note that, even if the common case is for ioremap_cache() to return the existing linear mapping of the memory map, we cannot rely on that to be always the case, e.g., in the presence of a mem= kernel p