powerpc/mm: Disable kcov for SLB routines
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Mon, 4 Mar 2019 08:25:51 +0000 (13:55 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 12 Mar 2019 03:06:12 +0000 (14:06 +1100)
The kcov instrumentation inside SLB routines causes duplicate SLB
entries to be added resulting into SLB multihit machine checks.
Disable kcov instrumentation on slb.o

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/Makefile

index d52ec118e09db842283a1bd9607f727711a92f35..3c1bd9fa23cd9610c7e8013771119913167bf1ef 100644 (file)
@@ -52,3 +52,6 @@ obj-$(CONFIG_PPC_MEM_KEYS)    += pkeys.o
 # This is necessary for booting with kcov enabled on book3e machines
 KCOV_INSTRUMENT_tlb_nohash.o := n
 KCOV_INSTRUMENT_fsl_booke_mmu.o := n
+
+# Instrumenting the SLB fault path can lead to duplicate SLB entries
+KCOV_INSTRUMENT_slb.o := n