diff options
author | John David Anglin <dave.anglin@bell.net> | 2022-05-16 17:32:00 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-05-17 21:52:59 +0200 |
commit | 798082be69fea995a475ca1db8f9873589e207d9 (patch) | |
tree | 3a2ee444f694e42df926c0b54d9a75e37c76be36 /Documentation/core-api | |
parent | parisc: Rewrite cache flush code for PA8800/PA8900 (diff) | |
download | linux-798082be69fea995a475ca1db8f9873589e207d9.tar.xz linux-798082be69fea995a475ca1db8f9873589e207d9.zip |
parisc: Fix patch code locking and flushing
This change fixes the following:
1) The flags variable is not initialized. Always use raw_spin_lock_irqsave
and raw_spin_unlock_irqrestore to serialize patching.
2) flush_kernel_vmap_range is primarily intended for DMA flushes.
The whole cache flush in flush_kernel_vmap_range is only possible
when interrupts are enabled on SMP machines. Since __patch_text_multiple
calls flush_kernel_vmap_range with interrupts disabled, it is better
to directly call flush_kernel_dcache_range_asm and
flush_kernel_icache_range_asm.
3) The final call to flush_icache_range is unnecessary.
Tested with `[PATCH, V3] parisc: Rewrite cache flush code for
PA8800/PA8900' change on rp3440, c8000 and c3750 (32 and 64-bit).
Note by Helge:
This patch had been temporarily reverted shortly before v5.18-rc6 in order
to fix boot issues. Now it can be re-applied.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'Documentation/core-api')
0 files changed, 0 insertions, 0 deletions