]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: mm: Fix incorrect ASID argument when flushing TLB
authorDylan Jhong <dylan@andestech.com>
Mon, 13 Mar 2023 03:49:06 +0000 (11:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:28 +0000 (12:49 +0200)
commitaa8a49b61007395c30c18a7478086c93945d1835
tree22d5b3e65d168d3ff84a02ba2f4c8236dc596703
parent75e10d7fb97906ddb641c7b09773a91693570f63
riscv: mm: Fix incorrect ASID argument when flushing TLB

commit 9a801afd3eb95e1a89aba17321062df06fb49d98 upstream.

Currently, we pass the CONTEXTID instead of the ASID to the TLB flush
function. We should only take the ASID field to prevent from touching
the reserved bit field.

Fixes: 3f1e782998cd ("riscv: add ASID-based tlbflushing methods")
Signed-off-by: Dylan Jhong <dylan@andestech.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Link: https://lore.kernel.org/r/20230313034906.2401730-1-dylan@andestech.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/include/asm/tlbflush.h
arch/riscv/mm/context.c
arch/riscv/mm/tlbflush.c