mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
arm64: Provide dcache_clean_poc_nosync helper
dcache_clean_poc_nosync does not wait for the data cache clean to complete. Later, we wait for completion of all scatter-gather entries together. Cc: Leon Romanovsky <leon@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Ada Couprie Diaz <ada.coupriediaz@arm.com> Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Marc Zyngier <maz@kernel.org> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Tangquan Zheng <zhengtangquan@oppo.com> Tested-by: Xueyuan Chen <xueyuan.chen21@gmail.com> Signed-off-by: Barry Song <baohua@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20260228221239.59903-1-21cnbao@gmail.com
This commit is contained in:
parent
2c92eff008
commit
1c3a7f9e6b
|
|
@ -74,6 +74,7 @@ extern void icache_inval_pou(unsigned long start, unsigned long end);
|
|||
extern void dcache_clean_inval_poc(unsigned long start, unsigned long end);
|
||||
extern void dcache_inval_poc(unsigned long start, unsigned long end);
|
||||
extern void dcache_clean_poc(unsigned long start, unsigned long end);
|
||||
extern void dcache_clean_poc_nosync(unsigned long start, unsigned long end);
|
||||
extern void dcache_clean_pop(unsigned long start, unsigned long end);
|
||||
extern void dcache_clean_pou(unsigned long start, unsigned long end);
|
||||
extern long caches_clean_inval_user_pou(unsigned long start, unsigned long end);
|
||||
|
|
|
|||
|
|
@ -178,6 +178,21 @@ SYM_FUNC_START(__pi_dcache_clean_poc)
|
|||
SYM_FUNC_END(__pi_dcache_clean_poc)
|
||||
SYM_FUNC_ALIAS(dcache_clean_poc, __pi_dcache_clean_poc)
|
||||
|
||||
/*
|
||||
* dcache_clean_poc_nosync(start, end)
|
||||
*
|
||||
* Issue the instructions of D-cache lines for the interval [start, end).
|
||||
* not necessarily cleaned to the PoC till an explicit dsb sy afterward.
|
||||
*
|
||||
* - start - virtual start address of region
|
||||
* - end - virtual end address of region
|
||||
*/
|
||||
SYM_FUNC_START(__pi_dcache_clean_poc_nosync)
|
||||
dcache_by_line_op_nosync cvac, x0, x1, x2, x3
|
||||
ret
|
||||
SYM_FUNC_END(__pi_dcache_clean_poc_nosync)
|
||||
SYM_FUNC_ALIAS(dcache_clean_poc_nosync, __pi_dcache_clean_poc_nosync)
|
||||
|
||||
/*
|
||||
* dcache_clean_pop(start, end)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user