Support for non cached memory mappings
Quoted 2 lines · Gilles Chanteperdrix
This patch adds architecture independent support for non cached memory mappings. This is necessary on ARM architecture with VIVT cache to
share a
Quoted 1 line
mapping between kernel and user-space, but may be used in other
situations
Quoted 1 line
(who knows).
So, the difference between H_DMA and H_NONCACHED would be that H_NONCACHED
may not be physically contiguous, while H_DMA (that is physically contiguous)
may still be cached on cache coherent systems. Is that correct?
Signature · 3 lines
Stephane PS: any plan on a H_HUGETLB one of those days?
Quoted 5 lines · Fillod Stephane
Quoted 2 lines · Gilles Chanteperdrix
This patch adds architecture independent support for non cached memory mappings. This is necessary on ARM architecture with VIVT cache to
share a
Quoted 1 line
mapping between kernel and user-space, but may be used in other
Quoted 8 lines
situations
Quoted 1 line
(who knows).
So, the difference between
H_DMAandH_NONCACHEDwould be thatH_NONCACHED
may not be physically contiguous, whileH_DMA(that is physically contiguous)
may still be cached on cache coherent systems. Is that correct?
The memory allocated with kmalloc is mapped at boot time, and mapped with cache enabled, so if we want to get non cached memory, we have to remap it with vmalloc. So yes, it will probably not be contiguous.
Quoted 1 line
PS: any plan on a
H_HUGETLBone of those days?
What would this do ?
Signature · 1 line
Gilles