From: Abdul Haleem <hidden> Date: 2018-07-09 09:51:45
Greeting's
Today's next fails to build on powerpc with below error
kernel/cpu.o:(.data.rel+0x18e0): undefined reference to
`lockup_detector_online_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
kernel/cpu.o:(.data.rel+0x18e8): undefined reference to
`lockup_detector_offline_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
Makefile:1005: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
gcc version: 6.4.1
kernel verion: 4.18.0-rc3-next-20180709
Machine: Power8 PowerVM LPAR
config: attached
binutils: binutils-2.26.1-1
Related commit looks to be:
commit 9cf57731b63e37ed995b46690adc604891a9a28f
Author: Peter Zijlstra [off-list ref]
Date: Thu Jun 7 10:52:03 2018 +0200
watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work
Oleg suggested to replace the "watchdog/%u" threads with
cpu_stop_work. That removes one thread per CPU while at the same
time
fixes softlockup vs SCHED_DEADLINE.
--
Regard's
Abdul Haleem
IBM Linux Technology Centre
From: Peter Zijlstra <peterz@infradead.org> Date: 2018-07-09 11:47:29
On Mon, Jul 09, 2018 at 03:21:23PM +0530, Abdul Haleem wrote:
Greeting's
Today's next fails to build on powerpc with below error
kernel/cpu.o:(.data.rel+0x18e0): undefined reference to
`lockup_detector_online_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
kernel/cpu.o:(.data.rel+0x18e8): undefined reference to
`lockup_detector_offline_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
Makefile:1005: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Urgh, sorry about that. I think the below should cure that.
I got confused by all the varioud CONFIG options here abour and
conflated CONFIG_LOCKUP_DETECTOR and CONFIG_SOFTLOCKUP_DETECTOR it
seems.
From: Abdul Haleem <hidden> Date: 2018-07-09 18:10:30
On Mon, 2018-07-09 at 13:47 +0200, Peter Zijlstra wrote:
quoted hunk
On Mon, Jul 09, 2018 at 03:21:23PM +0530, Abdul Haleem wrote:
quoted
Greeting's
Today's next fails to build on powerpc with below error
kernel/cpu.o:(.data.rel+0x18e0): undefined reference to
`lockup_detector_online_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
kernel/cpu.o:(.data.rel+0x18e8): undefined reference to
`lockup_detector_offline_cpu'
ld: BFD version 2.26.1-1.fc25 assertion fail elf64-ppc.c:14734
Makefile:1005: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Urgh, sorry about that. I think the below should cure that.
I got confused by all the varioud CONFIG options here abour and
conflated CONFIG_LOCKUP_DETECTOR and CONFIG_SOFTLOCKUP_DETECTOR it
seems.
Thanks Peter for the patch, build and boot is fine.
Reported-and-tested-by: Abdul Haleem <redacted>
--
Regard's
Abdul Haleem
IBM Linux Technology Centre
From: Peter Zijlstra <peterz@infradead.org> Date: 2018-07-10 11:42:33
On Mon, Jul 09, 2018 at 11:40:14PM +0530, Abdul Haleem wrote:
Thanks Peter for the patch, build and boot is fine.
Reported-and-tested-by: Abdul Haleem <redacted>
Excellent, Ingo can you stick this in?
---
Subject: watchdog/softlockup: Fix SOFTLOCKUP_DETECTOR=n build
From: Peter Zijlstra <peterz@infradead.org>
Date: Mon, 9 Jul 2018 13:47:16 +0200
I got confused by all the various CONFIG options here about and
conflated CONFIG_LOCKUP_DETECTOR and CONFIG_SOFTLOCKUP_DETECTOR. This
results in a build failure for:
CONFIG_LOCKUP_DETECTOR=y && CONFIG_SOFTLOCKUP_DETECTOR=n
As reported by Abdul.
Cc: Ingo Molnar <mingo@kernel.org>
Cc: stephen Rothwell <redacted>
Cc: linuxppc-dev <redacted>
Cc: sachinp <redacted>
Cc: mpe <mpe@ellerman.id.au>
Reported-and-tested-by: Abdul Haleem <redacted>
Fixes: 9cf57731b63e ("watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180709114716.GN2476@hirez.programming.kicks-ass.net
---
include/linux/nmi.h | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)