[PATCH] Disable kcov for slb routines.

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2728d

6 messages, 5 authors, 2019-03-20 · open the first message on its own page

[PATCH] Disable kcov for slb routines.

From: Mahesh J Salgaonkar <hidden>
Date: 2019-03-04 08:28:26

From: Mahesh Salgaonkar <redacted>

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 <redacted>
---
 arch/powerpc/mm/Makefile |    1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile
index d4d32e229ace..f9cb40684746 100644
--- a/arch/powerpc/mm/Makefile
+++ b/arch/powerpc/mm/Makefile
@@ -60,3 +60,4 @@ 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
+KCOV_INSTRUMENT_slb.o := n

Re: [PATCH] Disable kcov for slb routines.

From: Andrew Donnellan <hidden>
Date: 2019-03-05 03:33:03

On 4/3/19 7:25 pm, Mahesh J Salgaonkar wrote:
From: Mahesh Salgaonkar <redacted>

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 <redacted>
Summary line needs a powerpc:
quoted hunk
---
  arch/powerpc/mm/Makefile |    1 +
  1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile
index d4d32e229ace..f9cb40684746 100644
--- a/arch/powerpc/mm/Makefile
+++ b/arch/powerpc/mm/Makefile
@@ -60,3 +60,4 @@ 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
+KCOV_INSTRUMENT_slb.o := n
The SLB stuff isn't related to the book3e issues, I'd appreciate a 
separate comment here.

Otherwise

Acked-by: Andrew Donnellan <redacted>



-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com  IBM Australia Limited

Re: [PATCH] Disable kcov for slb routines.

From: Satheesh Rajendran <hidden>
Date: 2019-03-07 04:39:23

On Mon, Mar 04, 2019 at 01:55:51PM +0530, Mahesh J Salgaonkar wrote:
From: Mahesh Salgaonkar <redacted>

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 <redacted>
---
 arch/powerpc/mm/Makefile |    1 +
 1 file changed, 1 insertion(+)
Fixes: https://github.com/linuxppc/issues/issues/230

Tested-by: Satheesh Rajendran <redacted>
quoted hunk
diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile
index d4d32e229ace..f9cb40684746 100644
--- a/arch/powerpc/mm/Makefile
+++ b/arch/powerpc/mm/Makefile
@@ -60,3 +60,4 @@ 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
+KCOV_INSTRUMENT_slb.o := n

Re: Disable kcov for slb routines.

From: Michael Ellerman <hidden>
Date: 2019-03-14 11:50:15

On Mon, 2019-03-04 at 08:25:51 UTC, Mahesh J Salgaonkar wrote:
From: Mahesh Salgaonkar <redacted>

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 <redacted>
Acked-by: Andrew Donnellan <redacted>
Tested-by: Satheesh Rajendran <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/19d6907521b04206676741b26e05a152

cheers

Re: Disable kcov for slb routines.

From: Mahesh Jagannath Salgaonkar <hidden>
Date: 2019-03-15 05:07:56

On 3/14/19 5:13 PM, Michael Ellerman wrote:
On Mon, 2019-03-04 at 08:25:51 UTC, Mahesh J Salgaonkar wrote:
quoted
From: Mahesh Salgaonkar <redacted>

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 <redacted>
Acked-by: Andrew Donnellan <redacted>
Tested-by: Satheesh Rajendran <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/19d6907521b04206676741b26e05a152

cheers
There was a v2 at http://patchwork.ozlabs.org/patch/1051718/, looks like
v1 got picked up. But I see the applied commit does address Andrew's
comments.

Thanks,
-Mahesh.

Re: Disable kcov for slb routines.

From: Michael Ellerman <hidden>
Date: 2019-03-20 12:53:42

Mahesh Jagannath Salgaonkar [off-list ref] writes:
On 3/14/19 5:13 PM, Michael Ellerman wrote:
quoted
On Mon, 2019-03-04 at 08:25:51 UTC, Mahesh J Salgaonkar wrote:
quoted
From: Mahesh Salgaonkar <redacted>

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 <redacted>
Acked-by: Andrew Donnellan <redacted>
Tested-by: Satheesh Rajendran <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/19d6907521b04206676741b26e05a152

cheers
There was a v2 at http://patchwork.ozlabs.org/patch/1051718/, looks like
v1 got picked up. But I see the applied commit does address Andrew's
comments.
Sorry not sure how I missed v2.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help