diff options
author | John David Anglin <dave.anglin@bell.net> | 2022-03-11 20:22:54 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-03-11 21:48:06 +0300 |
commit | f839e5f1cef36ce268950c387129b1bfefdaebc9 (patch) | |
tree | 0dc2ddb873e15f5af1ea81b74e992d8ef3fab8c8 /arch/parisc/mm | |
parent | ffb217a13a2eaf6d5bd974fc83036a53ca69f1e2 (diff) | |
download | linux-f839e5f1cef36ce268950c387129b1bfefdaebc9.tar.xz |
parisc: Fix non-access data TLB cache flush faults
When a page is not present, we get non-access data TLB faults from
the fdc and fic instructions in flush_user_dcache_range_asm and
flush_user_icache_range_asm. When these occur, the cache line is
not invalidated and potentially we get memory corruption. The
problem was hidden by the nullification of the flush instructions.
These faults also affect performance. With pa8800/pa8900 processors,
there will be 32 faults per 4 KB page since the cache line is 128
bytes. There will be more faults with earlier processors.
The problem is fixed by using flush_cache_pages(). It does the flush
using a tmp alias mapping.
The flush_cache_pages() call in flush_cache_range() flushed too
large a range.
V2: Remove unnecessary preempt_disable() and preempt_enable() calls.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/mm')
0 files changed, 0 insertions, 0 deletions