Re: Problem with remap_page_range

From: Matt Porter
Date: Tue Sep 09 2003 - 17:07:42 EST


On Wed, Sep 10, 2003 at 09:54:20AM +1200, Dmytro Bablinyuk wrote:
> >
> >
> >> if (remap_page_range(vma->vm_start,
> >> DSP_ADDR,
> >> size,
> >> vma->vm_page_prot
> >> ))
> >>
> >>
> >
> >Your remap call isn't adding _PAGE_NO_CACHE and _PAGE_GUARDED flags
> >like ioremap_nocache()/ioremap() do on PPC. You'll get bad results
> >because of the ordering and cache issues resulting from not using
> >these PTE flags. In 2.6, these can be added using pgprot_noncached()
> >that is defined per-arch.
> >
> >
> >
> Thank you Matt,
>
> Coud you please give me en example on how to add these flags to remap in
> kernel 2.4.21 (powerpc).
> It seems I could not find these flags available in my kernel.

They're defined in include/asm-ppc/pgtable.h

-Matt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/