* Booting p4080ds on non-0 cpu
[not found] <DBDC8B5977CFF7429A9DBC6C51C7ADE701E81C32@EU1-MAIL.mgc.mentorg.com>
@ 2011-05-25 12:16 ` Gabbasov, Andrew
2011-05-25 18:52 ` McClintock Matthew-B29882
0 siblings, 1 reply; 2+ messages in thread
From: Gabbasov, Andrew @ 2011-05-25 12:16 UTC (permalink / raw)
To: Matthew Mcclintock - Freescale; +Cc: linuxppc-dev, Blanchard, Hollis
[-- Attachment #1: Type: text/plain, Size: 2760 bytes --]
Hello Matthew,
You have made a patch "powerpc/fsl_booke: Add support to boot from core other than 0" some time ago, so you probably worked with booting the kernel on a cpu subset, particularly on the core other than 0.
Could you please describe any details how you ran the kernel from u-boot on a non-0 cpu?
I have a problem trying to boot linux on p4080ds platform on any non-0 cpu (as a first step to running AMP or mixed AMP/SMP configuration). I'm trying to run 2.6.34.6 kernel with some Freescale patches in SMP configuration with full original device tree and device tree with some cpu nodes removed. I'm using the u-boot script, shown at the bottom of this message.
If I run "bootm go" after the script commands (thus running the kernel on cpu 0), the kernel runs fine.
When I'm trying to run the SMP kernel with full device tree on cpu 1 using the following commands after the script:
fdt boot 1
cpu 1 release 0 1 c00000 -
the kernel begins to run, but soon crashes. Possible reasons are: "Unrecoverable FP Unavailable Exception", at nearly random place; memory allocation errors somewhere in DPAA code and then segmentation fault (sig 11); unknown exception (sig 4). Sometimes it doesn't even show anything on the console (too early exception?), but sometimes it boots successfully up to the shell prompt.
When I'm trying to run the SMP kernel with the device tree with cpu 0 stripped out (commented out the whole cpu0 node and all properties referring to it with &cpu0), using the following commands after the script:
fdt boot 1
cpu 1 release 0 0 c00000 -
[Note the difference in the parameter to 'cpu 1 release' command,
it should be a logical cpu number, which is different]
the result is almost the same, the kernel crashes too. The reasons are similar to the above, with more often "Unrecoverable FP Unavailable Exception".
Can you give any advise why can this happen, and what I could be doing wrong?
Thanks in advance,
Best regards,
Andrew
setenv kernel_base 00000000
setenv kernel_size 30000000
# Helper variables
setenv kernel_load_offset 01000000
setenv dtb_load_offset 00c00000
setexpr kernel_load_addr $kernel_base + $kernel_load_offset
setexpr dtb_load_addr $kernel_base + $dtb_load_offset
tftp $kernel_load_addr $tftpdir/uImage-p4080ds.bin
tftp $dtb_load_addr $tftpdir/uImage-p4080ds.dtb
setenv bootargs root=/dev/nfs rw nfsroot=$serverip:/tftpboot/$tftpdir/rootfs-4080ds ip=dhcp console=ttyS0,115200 debug
setenv bootm_low $kernel_base
setenv bootm_size $kernel_size
interrupts off
bootm start $kernel_load_addr - $dtb_load_addr
bootm loados
bootm fdt
fdt boardsetup
fdt chosen
bootm prep
# cpu 1 release $kernel_base - $dtb_load_addr -
[-- Attachment #2: Type: text/html, Size: 4813 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Booting p4080ds on non-0 cpu
2011-05-25 12:16 ` Booting p4080ds on non-0 cpu Gabbasov, Andrew
@ 2011-05-25 18:52 ` McClintock Matthew-B29882
0 siblings, 0 replies; 2+ messages in thread
From: McClintock Matthew-B29882 @ 2011-05-25 18:52 UTC (permalink / raw)
To: Gabbasov, Andrew; +Cc: linuxppc-dev@lists.ozlabs.org, Blanchard, Hollis
On Wed, May 25, 2011 at 7:16 AM, Gabbasov, Andrew
<Andrew_Gabbasov@mentor.com> wrote:
> Hello Matthew,
>
> You have made a patch
> "powerpc/fsl_booke:=A0Add=A0support=A0to=A0boot=A0from=A0core=A0other=A0t=
han=A00" some time
> ago, so you probably worked with booting the kernel on a cpu subset,
> particularly on the core other than 0.
>
> Could you please describe any details how you ran the kernel from u-boot =
on
> a non-0 cpu?
I did this via kexec not via u-boot. In this method I would reboot on
any one of the cores and it would bring up the other cores.
> I have a problem trying to boot linux on p4080ds platform on any non-0 cp=
u
> (as a first step to running AMP or mixed AMP/SMP configuration). I'm tryi=
ng
> to run 2.6.34.6 kernel with some Freescale patches in SMP configuration w=
ith
> full original device tree and device tree with some cpu nodes removed. I'=
m
> using the u-boot script, shown at the bottom of this message.
>
> If I run "bootm go" after the script commands (thus running the kernel on
> cpu 0), the kernel runs fine.
>
> When I'm trying to run the SMP kernel with full device tree on cpu 1 usin=
g
> the following commands after the script:
> =A0 fdt boot 1
> =A0 cpu 1 release 0 1 c00000 -
> the kernel begins to run, but soon crashes. Possible reasons
> are:=A0"Unrecoverable FP Unavailable Exception", at nearly random
> place;=A0memory allocation errors somewhere in DPAA=A0code and then segme=
ntation
> fault (sig 11); unknown exception (sig 4).=A0Sometimes it doesn't even sh=
ow
> anything on the console (too early exception?), but sometimes it boots
> successfully up to the shell prompt.
Is the single core boot stable at this point?
> When I'm trying to run the SMP kernel with the device tree with cpu 0
> stripped out (commented out the whole cpu0 node and all properties referr=
ing
> to it with &cpu0), using the following commands after the script:
> =A0 fdt boot 1
> =A0 cpu 1 release 0 0 c00000 -
> =A0 [Note the difference in the parameter to 'cpu 1 release' command,
> =A0=A0=A0 it should be a logical cpu number, which is different]
> the result is almost the same, the kernel crashes too. The reasons are
> similar to the above, with more often "Unrecoverable FP Unavailable
> Exception".
Can you send me the kernel boot logs and kernel defconfig? (off list perhap=
s)
>
> Can you give any advise why can this happen, and what I could be doing
> wrong?
Did you build your kernel relocatable? Did you use the -b option when
compiling your device tree? We do have a hypervisor for this part
which might be a more suitable and tested solution depending on what
you are trying to accomplish. I'm not sure that anyone has explicitly
tested AMP on a p4080.
-M=
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-25 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <DBDC8B5977CFF7429A9DBC6C51C7ADE701E81C32@EU1-MAIL.mgc.mentorg.com>
2011-05-25 12:16 ` Booting p4080ds on non-0 cpu Gabbasov, Andrew
2011-05-25 18:52 ` McClintock Matthew-B29882
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).