mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dma-direct: provide generic support for uncached kernel segments
A few architectures support uncached kernel segments. In that case we get an uncached mapping for a given physica address by using an offset in the uncached segement. Implement support for this scheme in the generic dma-direct code instead of duplicating it in arch hooks. Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
67f30ad19c
commit
c30700db9e
3 changed files with 26 additions and 2 deletions
|
|
@ -260,6 +260,14 @@ config ARCH_HAS_SET_MEMORY
|
|||
config ARCH_HAS_SET_DIRECT_MAP
|
||||
bool
|
||||
|
||||
#
|
||||
# Select if arch has an uncached kernel segment and provides the
|
||||
# uncached_kernel_address / cached_kernel_address symbols to use it
|
||||
#
|
||||
config ARCH_HAS_UNCACHED_SEGMENT
|
||||
select ARCH_HAS_DMA_PREP_COHERENT
|
||||
bool
|
||||
|
||||
# Select if arch init_task must go in the __init_task_data section
|
||||
config ARCH_TASK_STRUCT_ON_STACK
|
||||
bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue