linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'
@ 2018-06-14 10:06 Christophe LEROY
  2018-06-14 10:25 ` Nicholas Piggin
  2018-06-19 11:58 ` Michael Ellerman
  0 siblings, 2 replies; 5+ messages in thread
From: Christophe LEROY @ 2018-06-14 10:06 UTC (permalink / raw)
  To: Michael Ellerman, linuxppc-dev, Nicholas Piggin

See http://kisskb.ellerman.id.au/kisskb/buildresult/13395345/ for details

Seems like that function only exists when CONFIG_NMI_IPI is defined.

Problem introduced by commit 5cc05910f26e6fd6da15f052f86f6150e4b91664 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/kernel/stacktrace.c?h=next-20180614&id=5cc05910f26e6fd6da15f052f86f6150e4b91664


What do you recommend to fix that ?


Christophe

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'
  2018-06-14 10:06 stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi' Christophe LEROY
@ 2018-06-14 10:25 ` Nicholas Piggin
  2018-06-14 10:51   ` Christophe LEROY
  2018-06-19 11:58 ` Michael Ellerman
  1 sibling, 1 reply; 5+ messages in thread
From: Nicholas Piggin @ 2018-06-14 10:25 UTC (permalink / raw)
  To: Christophe LEROY; +Cc: Michael Ellerman, linuxppc-dev

On Thu, 14 Jun 2018 12:06:51 +0200
Christophe LEROY <christophe.leroy@c-s.fr> wrote:

> See http://kisskb.ellerman.id.au/kisskb/buildresult/13395345/ for details
> 
> Seems like that function only exists when CONFIG_NMI_IPI is defined.
> 
> Problem introduced by commit 5cc05910f26e6fd6da15f052f86f6150e4b91664 
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/kernel/stacktrace.c?h=next-20180614&id=5cc05910f26e6fd6da15f052f86f6150e4b91664
> 
> 
> What do you recommend to fix that ?

We could just do smp_call_function in the case we have no NMI_IPI?

Thanks,
Nick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'
  2018-06-14 10:25 ` Nicholas Piggin
@ 2018-06-14 10:51   ` Christophe LEROY
  2018-06-14 11:46     ` Nicholas Piggin
  0 siblings, 1 reply; 5+ messages in thread
From: Christophe LEROY @ 2018-06-14 10:51 UTC (permalink / raw)
  To: Nicholas Piggin; +Cc: Michael Ellerman, linuxppc-dev



Le 14/06/2018 à 12:25, Nicholas Piggin a écrit :
> On Thu, 14 Jun 2018 12:06:51 +0200
> Christophe LEROY <christophe.leroy@c-s.fr> wrote:
> 
>> See http://kisskb.ellerman.id.au/kisskb/buildresult/13395345/ for details
>>
>> Seems like that function only exists when CONFIG_NMI_IPI is defined.
>>
>> Problem introduced by commit 5cc05910f26e6fd6da15f052f86f6150e4b91664
>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/kernel/stacktrace.c?h=next-20180614&id=5cc05910f26e6fd6da15f052f86f6150e4b91664
>>
>>
>> What do you recommend to fix that ?
> 
> We could just do smp_call_function in the case we have no NMI_IPI?

???

Can you detail what you have in mind ? Do smp_call_function() to call 
what ? Instead of the call to smp_send_safe_nmi_ipi() ?

Thanks
Christophe

> 
> Thanks,
> Nick
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'
  2018-06-14 10:51   ` Christophe LEROY
@ 2018-06-14 11:46     ` Nicholas Piggin
  0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Piggin @ 2018-06-14 11:46 UTC (permalink / raw)
  To: Christophe LEROY; +Cc: Michael Ellerman, linuxppc-dev

On Thu, 14 Jun 2018 12:51:28 +0200
Christophe LEROY <christophe.leroy@c-s.fr> wrote:

> Le 14/06/2018 =C3=A0 12:25, Nicholas Piggin a =C3=A9crit=C2=A0:
> > On Thu, 14 Jun 2018 12:06:51 +0200
> > Christophe LEROY <christophe.leroy@c-s.fr> wrote:
> >  =20
> >> See http://kisskb.ellerman.id.au/kisskb/buildresult/13395345/ for deta=
ils
> >>
> >> Seems like that function only exists when CONFIG_NMI_IPI is defined.
> >>
> >> Problem introduced by commit 5cc05910f26e6fd6da15f052f86f6150e4b91664
> >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/co=
mmit/arch/powerpc/kernel/stacktrace.c?h=3Dnext-20180614&id=3D5cc05910f26e6f=
d6da15f052f86f6150e4b91664
> >>
> >>
> >> What do you recommend to fix that ? =20
> >=20
> > We could just do smp_call_function in the case we have no NMI_IPI? =20
>=20
> ???
>=20
> Can you detail what you have in mind ? Do smp_call_function() to call=20
> what ? Instead of the call to smp_send_safe_nmi_ipi() ?

Yes I was thinking that but now I take a better look there's places that
call it with irqs off so that might be a bit risky. I guess just making
it depend on NMI_IPI for now is the minimum fix.

Thanks,
Nick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi'
  2018-06-14 10:06 stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi' Christophe LEROY
  2018-06-14 10:25 ` Nicholas Piggin
@ 2018-06-19 11:58 ` Michael Ellerman
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2018-06-19 11:58 UTC (permalink / raw)
  To: Christophe LEROY, linuxppc-dev, Nicholas Piggin

Christophe LEROY <christophe.leroy@c-s.fr> writes:

> See http://kisskb.ellerman.id.au/kisskb/buildresult/13395345/ for details
>
> Seems like that function only exists when CONFIG_NMI_IPI is defined.
>
> Problem introduced by commit 5cc05910f26e6fd6da15f052f86f6150e4b91664 
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/kernel/stacktrace.c?h=next-20180614&id=5cc05910f26e6fd6da15f052f86f6150e4b91664
>
>
> What do you recommend to fix that ?

It should just use CONFIG_NMI_IPI instead of CONFIG_PPC_BOOK3S_64 I
think.

I'll do a patch.

cheers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-19 11:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 10:06 stacktrace.c:(.text+0x1b0): undefined reference to `.smp_send_safe_nmi_ipi' Christophe LEROY
2018-06-14 10:25 ` Nicholas Piggin
2018-06-14 10:51   ` Christophe LEROY
2018-06-14 11:46     ` Nicholas Piggin
2018-06-19 11:58 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).