Linux-RISC-V Archive on lore.kernel.org
 help / Atom feed
* Boot stuck at "smp: Bringing up secondary CPUs ..."
@ 2019-02-05 15:27 Andreas Schwab
       [not found] ` <F77EA382-959C-4142-9A00-F1EBB58D37F8@wdc.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-02-05 15:27 UTC (permalink / raw)
  To: linux-riscv

What does it mean when the boot hangs during smp bringup (on the
hifive-u)?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
       [not found] ` <F77EA382-959C-4142-9A00-F1EBB58D37F8@wdc.com>
@ 2019-02-06  9:16   ` Andreas Schwab
  2019-02-06  9:33     ` Anup Patel
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-02-06  9:16 UTC (permalink / raw)
  To: Atish Patra; +Cc: linux-riscv

On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:

> Are you loading Linux from U-Boot and openSBI ?

No.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06  9:16   ` Andreas Schwab
@ 2019-02-06  9:33     ` Anup Patel
  2019-02-06 10:04       ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Anup Patel @ 2019-02-06  9:33 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Atish Patra, linux-riscv

On Wed, Feb 6, 2019 at 2:47 PM Andreas Schwab <schwab@suse.de> wrote:
>
> On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
>
> > Are you loading Linux from U-Boot and openSBI ?
>
> No.

We requite Atish's SMP fixes to boot upstream kernel on Unleashed board.

I have applied Atish's v2 patches on  "v5.0-rc5_unleashed" branch of
https://github.com/avpatel/linux.git

Regards,
Anup

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06  9:33     ` Anup Patel
@ 2019-02-06 10:04       ` Andreas Schwab
  2019-02-06 10:17         ` Anup Patel
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-02-06 10:04 UTC (permalink / raw)
  To: Anup Patel; +Cc: Atish Patra, linux-riscv

On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:

> On Wed, Feb 6, 2019 at 2:47 PM Andreas Schwab <schwab@suse.de> wrote:
>>
>> On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
>>
>> > Are you loading Linux from U-Boot and openSBI ?
>>
>> No.
>
> We requite Atish's SMP fixes to boot upstream kernel on Unleashed board.

The same boot image has booted sucessfully before.  The problem with SMP
bringup only started when I started experimenting with openSBI and
U-Boot.  Coincidence?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06 10:04       ` Andreas Schwab
@ 2019-02-06 10:17         ` Anup Patel
  2019-02-06 10:33           ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Anup Patel @ 2019-02-06 10:17 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Atish Patra, linux-riscv

On Wed, Feb 6, 2019 at 3:34 PM Andreas Schwab <schwab@suse.de> wrote:
>
> On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:
>
> > On Wed, Feb 6, 2019 at 2:47 PM Andreas Schwab <schwab@suse.de> wrote:
> >>
> >> On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
> >>
> >> > Are you loading Linux from U-Boot and openSBI ?
> >>
> >> No.
> >
> > We requite Atish's SMP fixes to boot upstream kernel on Unleashed board.
>
> The same boot image has booted sucessfully before.  The problem with SMP
> bringup only started when I started experimenting with openSBI and
> U-Boot.  Coincidence?

Lot of kernel bugs are hidden due to FDT fixups done by BBL at boot-time.

This particular issue is seen because BBL updates /cpus DT node whereas
OpenSBI does not. In fact, OpenSBI only does minimal possible changes to
DTB passed by previous booting stages.

Regards,
Anup

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06 10:17         ` Anup Patel
@ 2019-02-06 10:33           ` Andreas Schwab
  2019-02-06 10:37             ` Anup Patel
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-02-06 10:33 UTC (permalink / raw)
  To: Anup Patel; +Cc: Atish Patra, linux-riscv

On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:

> On Wed, Feb 6, 2019 at 3:34 PM Andreas Schwab <schwab@suse.de> wrote:
>>
>> On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:
>>
>> > On Wed, Feb 6, 2019 at 2:47 PM Andreas Schwab <schwab@suse.de> wrote:
>> >>
>> >> On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
>> >>
>> >> > Are you loading Linux from U-Boot and openSBI ?
>> >>
>> >> No.
>> >
>> > We requite Atish's SMP fixes to boot upstream kernel on Unleashed board.
>>
>> The same boot image has booted sucessfully before.  The problem with SMP
>> bringup only started when I started experimenting with openSBI and
>> U-Boot.  Coincidence?
>
> Lot of kernel bugs are hidden due to FDT fixups done by BBL at boot-time.

Then why does it fail with BBL?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06 10:33           ` Andreas Schwab
@ 2019-02-06 10:37             ` Anup Patel
  2019-02-06 10:44               ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Anup Patel @ 2019-02-06 10:37 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Atish Patra, linux-riscv

On Wed, Feb 6, 2019 at 4:03 PM Andreas Schwab <schwab@suse.de> wrote:
>
> On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:
>
> > On Wed, Feb 6, 2019 at 3:34 PM Andreas Schwab <schwab@suse.de> wrote:
> >>
> >> On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:
> >>
> >> > On Wed, Feb 6, 2019 at 2:47 PM Andreas Schwab <schwab@suse.de> wrote:
> >> >>
> >> >> On Feb 05 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
> >> >>
> >> >> > Are you loading Linux from U-Boot and openSBI ?
> >> >>
> >> >> No.
> >> >
> >> > We requite Atish's SMP fixes to boot upstream kernel on Unleashed board.
> >>
> >> The same boot image has booted sucessfully before.  The problem with SMP
> >> bringup only started when I started experimenting with openSBI and
> >> U-Boot.  Coincidence?
> >
> > Lot of kernel bugs are hidden due to FDT fixups done by BBL at boot-time.
>
> Then why does it fail with BBL?

Not sure what case you referring with BBL.

Please review Atish's SMP fix patches.

Regards,
Anup

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: Boot stuck at "smp: Bringing up secondary CPUs ..."
  2019-02-06 10:37             ` Anup Patel
@ 2019-02-06 10:44               ` Andreas Schwab
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2019-02-06 10:44 UTC (permalink / raw)
  To: Anup Patel; +Cc: Atish Patra, linux-riscv

On Feb 06 2019, Anup Patel <anup@brainfault.org> wrote:

> Not sure what case you referring with BBL.

I don't refer anything.  It just doesn't boot any more.

> Please review Atish's SMP fix patches.

The very same image has booted previously without any issues.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05 15:27 Boot stuck at "smp: Bringing up secondary CPUs ..." Andreas Schwab
     [not found] ` <F77EA382-959C-4142-9A00-F1EBB58D37F8@wdc.com>
2019-02-06  9:16   ` Andreas Schwab
2019-02-06  9:33     ` Anup Patel
2019-02-06 10:04       ` Andreas Schwab
2019-02-06 10:17         ` Anup Patel
2019-02-06 10:33           ` Andreas Schwab
2019-02-06 10:37             ` Anup Patel
2019-02-06 10:44               ` Andreas Schwab

Linux-RISC-V Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-riscv/0 linux-riscv/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-riscv linux-riscv/ https://lore.kernel.org/linux-riscv \
		linux-riscv@lists.infradead.org infradead-linux-riscv@archiver.kernel.org
	public-inbox-index linux-riscv


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-riscv


AGPL code for this site: git clone https://public-inbox.org/ public-inbox