[PATCH v4] arm64: mm: convert __dma_* routines to use start, size

2016-08-09 Thread Kwangwoo Lee
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

[PATCH v3] arm64: mm: convert __dma_* routines to use start, size

2016-08-01 Thread Kwangwoo Lee
* 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

[PATCH v2] arm64: mm: convert __dma_* routines to use start, size

2016-07-26 Thread Kwangwoo Lee
() 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

[PATCH RFC] arm64: mm: convert __dma_* routines to use start, size

2016-07-25 Thread 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

[PATCH v3 1/3] arm64: mm: add __clean_dcache_area()

2016-07-14 Thread Kwangwoo Lee
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

[PATCH v3 3/3] arm64: pmem: add pmem support codes

2016-07-14 Thread Kwangwoo Lee
(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

[PATCH v3 2/3] arm64: mm: add mmio_flush_range() to support pmem

2016-07-14 Thread Kwangwoo Lee
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

[PATCH v3 0/3] support pmem on arm64

2016-07-14 Thread Kwangwoo Lee
. 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

[PATCH v2] pmem: add pmem support codes on ARM64

2016-07-08 Thread Kwangwoo Lee
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

[PATCH] [RFC] pmem: add pmem support codes on ARM64

2016-07-05 Thread Kwangwoo Lee
=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