linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3]nds32: Correct the cache operation for catch aliasing case
@ 2018-05-15  8:46 Vincent Chen
  2018-05-15  8:46 ` [PATCH 1/3] nds32: Correct flush_dcache_page function Vincent Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Vincent Chen @ 2018-05-15  8:46 UTC (permalink / raw)
  To: linux-kernel, green.hu, greentime, arnd; +Cc: deanbo422, vincentc

The following 3 issues are fixed in this patchset

1. In function flush_dacache_page and copy_user_highpage, the local irq is
enabled when the cache of the page at address page_address(page) is written
back to memory. It possibly causes data corruption. To fix this problem,
the local irq is disabled before executing d-cache write-back and
invalidate in this patchset.

2. According to Documentation/cachetlb.txt, the cache of the page at vmaddr
shall be flushed in flush_anon_page instead of the cache of the page at
page_address(page). We correct it and add the modification to this
patchset.

3. Removing unneeded cache invalidation in copy_user_highpage function.


Vincent Chen (3):
  nds32: Correct flush_dcache_page function
  nds32: Flush the cache of the page at vmaddr instead of kaddr in
    flush_anon_page
  nds32: Disable local irq before calling cpu_dcache_wb_page in
    copy_user_highpage

 arch/nds32/mm/cacheflush.c |   34 ++++++++++++++++++++--------------
 1 files changed, 20 insertions(+), 14 deletions(-)

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

end of thread, other threads:[~2018-05-17  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15  8:46 [PATCH 0/3]nds32: Correct the cache operation for catch aliasing case Vincent Chen
2018-05-15  8:46 ` [PATCH 1/3] nds32: Correct flush_dcache_page function Vincent Chen
2018-05-15  8:46 ` [PATCH 2/3] nds32: Flush the cache of the page at vmaddr instead of kaddr in flush_anon_page Vincent Chen
2018-05-15  8:46 ` [PATCH 3/3] nds32: Disable local irq before calling cpu_dcache_wb_page in copy_user_highpage Vincent Chen
2018-05-17  6:58 ` [PATCH 0/3]nds32: Correct the cache operation for catch aliasing case Greentime Hu

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).