Christophe Leroy <christophe.le...@c-s.fr> writes:
> On 12/19/2018 06:57 AM, Christophe Leroy wrote:
...
>
> In fact the solution is the following:
>
> diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c
> index 4fc77a99c9bf..60401af2bc8f 100644
> --- a/arch/powerpc/mm/pgtable_32.c
> +++ b/arch/powerpc/mm/pgtable_32.c
> @@ -143,7 +143,7 @@ __ioremap_caller(phys_addr_t addr, unsigned long 
> size, pgprot_t prot, void *call
>        * Don't allow anybody to remap normal RAM that we're using.
>        * mem_init() sets high_memory so only do the check after that.
>        */
> -     if (slab_is_available() && (p < virt_to_phys(high_memory)) &&
> +     if (slab_is_available() && (p <= virt_to_phys(high_memory - 1)) &&
>           page_is_ram(__phys_to_pfn(p))) {
>               printk("__ioremap(): phys addr 0x%llx is RAM lr %ps\n",
>                      (unsigned long long)p, __builtin_return_address(0));
>
>
> I'll send an updated patch in a few minutes.

Awesome, thanks. I'll take v4.

cheers

Reply via email to