linux/arch/loongarch
Huacai Chen 0c2a9b7ba1 LoongArch: Fix hw_breakpoint_control() for watchpoints
commit 9730870b48 upstream.

In hw_breakpoint_control(), encode_ctrl_reg() has already encoded the
MWPnCFG3_LoadEn/MWPnCFG3_StoreEn bits in info->ctrl. We don't need to
add (1 << MWPnCFG3_LoadEn | 1 << MWPnCFG3_StoreEn) unconditionally.

Otherwise we can't set read watchpoint and write watchpoint separately.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-08-30 14:52:37 +02:00
..
boot loongarch: efi: enable generic EFI compressed boot 2022-09-20 09:50:31 +02:00
configs ixgb: Remove ixgb driver 2023-03-19 10:51:07 +00:00
crypto LoongArch: crypto: Add crc32 and crc32c hw acceleration 2023-05-01 17:19:43 +08:00
include loongarch/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:48 +02:00
kernel LoongArch: Fix hw_breakpoint_control() for watchpoints 2023-08-30 14:52:37 +02:00
lib LoongArch: Fix return value underflow in exception path 2023-08-03 10:26:11 +02:00
mm mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:12:39 +02:00
net LoongArch: BPF: Fix check condition to call lu32id in move_imm() 2023-08-03 10:26:11 +02:00
pci LoongArch: Add FDT booting support from efi system table 2022-12-14 08:41:53 +08:00
power LoongArch: Enable PG when wakeup from suspend 2023-04-18 19:38:58 +08:00
vdso vdso: Improve cmd_vdso_check to check all dynamic relocations 2023-03-21 21:15:34 +01:00
Kbuild LoongArch: Add BPF JIT support 2022-10-12 16:36:20 +08:00
Kconfig loongarch/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:04:48 +02:00
Kconfig.debug LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
Makefile LoongArch: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation 2023-07-19 16:37:00 +02:00