[PATCH] ehca: map 4k firmware context of cq, qp to user space

Arnd Bergmann arnd at arndb.de
Fri Aug 3 00:08:15 EST 2007


On Thursday 02 August 2007, Hoang-Nam Nguyen wrote:
> +#ifdef CONFIG_PPC_64K_PAGES
> +       /* make sure we map only 4k for fw context */
> +       ret = remap_4k_pfn(vma, vma->vm_start, physical >> EHCA_PAGESHIFT,
> +                          vma->vm_page_prot);
> +#else
>         ret = remap_pfn_range(vma, vma->vm_start, physical >> PAGE_SHIFT,
>                               vsize, vma->vm_page_prot);
> +#endif

remap_4k_pfn is defined in terms of remap_pfn_range if the base page
size if 4k, so you don't need this #ifdef afaics.

otherwise, the patch looks good.

	Arnd <><



More information about the Linuxppc-dev mailing list