Re: Problem with remap_page_range
From: Dmytro Bablinyuk
Date: Tue Sep 09 2003 - 16:54:08 EST
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.
Thank you very much
-
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/