Cc: Mark Rutland
Reviewed-by: Robin Murphy
Signed-off-by: Kwangwoo Lee
---
v4)
add Reviewed-by: and Cc: lines
v3)
clean up in __dma_clean_area() based on 823066d9edcd dcache_by_line_op fix
v2)
change the names of __dma_* rountines to use area instead of range
fix to use __dma_flush_area() in
* routines
use start and size instead of using start and end.
As a consequence of using start and size, the name of __dma_* routines
has also been altered following the terminology below:
area: takes a start and size
range: takes a start and end
Signed-off-by: Kwangwoo Lee
---
v3)
clean up
() uses the end
address, but __clean_dcache_area_poc() uses the size to clean.
Thus, __clean_dcache_area_poc() has been revised with a fall through
function of __dma_clean_range() after the change that __dma_* routines
use start and size instead of using start and end.
Signed-off-by: Kwangwoo Lee
* routines
use start and size instead of using start and end.
Signed-off-by: Kwangwoo Lee
---
arch/arm64/include/asm/cacheflush.h | 1 +
arch/arm64/mm/cache.S | 53 +++--
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/arch/arm64
Ensure D-cache lines are cleaned to the PoC(Point of Coherency).
This function is called by arch_wb_cache_pmem() to clean the cache lines
and remain the data in cache for the next access.
Signed-off-by: Kwangwoo Lee
---
arch/arm64/include/asm/cacheflush.h | 1 +
arch/arm64/mm/cache.S
(pmem0): DAX enabled. Warning: EXPERIMENTAL, use at your
own risk
[ 29.308960] EXT4-fs (pmem0): mounted filesystem with ordered data mode.
Opts: dax
Signed-off-by: Kwangwoo Lee
---
arch/arm64/Kconfig| 1 +
arch/arm64/include/asm/pmem.h | 143
argument -
addr and size. Thus, it can be mapped with __flush_dcache_area().
Signed-off-by: Kwangwoo Lee
---
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/cacheflush.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 4f43622
.
fix some comments in pmem.h.
v2)
rewrite functions under the mapping information MEMREMAP_WB.
rewrite the comments for arm64 in pmem.h
add __clean_dcache_area() to clean the cache lines to the PoC.
v1)
add pmem support codes.
Kwangwoo Lee (3):
arm64: mm: add __clean_dcache_area()
arm64: mm
Available Use% Mounted on
...
/dev/pmem0 975.9M 1.3M907.4M 0% /mnt/mem
Signed-off-by: Kwangwoo Lee
---
arch/arm64/Kconfig | 2 +
arch/arm64/include/asm/cacheflush.h | 3 +
arch/arm64/include/asm/pmem.h | 151
=206300k,nr_inodes=51575)
...
/dev/pmem0 on /mnt/mem type ext4 (rw,relatime,dax,data=ordered)
$ df -h
FilesystemSize Used Available Use% Mounted on
...
/dev/pmem0 975.9M 1.3M907.4M 0% /mnt/mem
Signed-off-by: Kwangwoo Lee
---
arch/arm64/Kconfig
10 matches
Mail list logo