diff options
| author | Alexandre Ghiti <[email protected]> | 2024-06-24 08:21:41 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-06-26 14:37:27 +0000 |
| commit | edf2d546bfd6f5c4d143715cef1b1e7ce5718c4e (patch) | |
| tree | 28de2ca8ffa63df562d1a0038633d1f6b9a91bcf /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | RISC-V: fix vector insn load/store width mask (diff) | |
| download | kernel-edf2d546bfd6f5c4d143715cef1b1e7ce5718c4e.tar.gz kernel-edf2d546bfd6f5c4d143715cef1b1e7ce5718c4e.zip | |
riscv: patch: Flush the icache right after patching to avoid illegal insns
We cannot delay the icache flush after patching some functions as we may
have patched a function that will get called before the icache flush.
The only way to completely avoid such scenario is by flushing the icache
as soon as we patch a function. This will probably be costly as we don't
batch the icache maintenance anymore.
Fixes: 6ca445d8af0e ("riscv: Fix early ftrace nop patching")
Reported-by: Conor Dooley <[email protected]>
Closes: https://lore.kernel.org/linux-riscv/20240613-lubricant-breath-061192a9489a@wendy/
Signed-off-by: Alexandre Ghiti <[email protected]>
Reviewed-by: Andy Chiu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions
