linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Delete flush cache all in arm64 platform.
@ 2016-03-21  8:07 Chen Feng
  2016-03-21 10:08 ` Mark Rutland
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Feng @ 2016-03-21  8:07 UTC (permalink / raw)
  To: mark.rutland, catalin.marinas
  Cc: akpm, mhocko, linux-mm, linux-kernel, labbott, xuyiping,
	suzhuangluan, saberlily.xia, dan.zhao

Hi Mark,

With 68234df4ea7939f98431aa81113fbdce10c4a84b
arm64: kill flush_cache_all()
The documented semantics of flush_cache_all are not possible to provide
for arm64 (short of flushing the entire physical address space by VA),
and there are currently no users; KVM uses VA maintenance exclusively,
cpu_reset is never called, and the only two users outside of arch code
cannot be built for arm64.

While cpu_soft_reset and related functions (which call flush_cache_all)
were thought to be useful for kexec, their current implementations only
serve to mask bugs. For correctness kexec will need to perform
maintenance by VA anyway to account for system caches, line migration,
and other subtleties of the cache architecture. As the extent of this
cache maintenance will be kexec-specific, it should probably live in the
kexec code.

This patch removes flush_cache_all, and related unused components,
preventing further abuse.


This patch delete the flush_cache_all interface.

But if we use VA to flush cache to do cache-coherency with other master(eg:gpu)

We must iterate over the sg-list to flush by va to pa.

In this way, the iterate of sg-list may cost too much time(sg-table to sg-list) if
the sglist is too long. Take a look at the ion_pages_sync_for_device in ion.

The driver(eg: ION) need to use this interface(flush cache all) to *improve the efficiency*.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-23 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21  8:07 Delete flush cache all in arm64 platform Chen Feng
2016-03-21 10:08 ` Mark Rutland
2016-03-21 15:58   ` Laura Abbott
2016-03-23  8:53     ` Chen Feng
2016-03-23 11:11     ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).