Regarding MPC8640D second core initialization
Hi denx,
I am using 2009-06 u-boot for MPC8640D based board. i just want to
know whether the second core of MPC8640D is kicked off automatically or will it required by the user to kick. Also if am enabling the CONFIG_MP macro and CONFIG_NUM_CPUS as 2, then the reset command of the target is not working(means board is getting hanged). I have mentioned the value of CONFIG_SYS_SCRATCH_VA as 0xf5000000.
Kindly suggest me what might be the error.
Thank you,
T.
Dear "Thirumalai",
Quoted 9 lines · In message <37EF3A462AFE4B5090E87F6B7F3F330F@itd210> you wrote:
Hi denx,
I am using 2009-06 u-boot for MPC8640D based board. i just want to
know whether the second core of MPC8640D is kicked off automatically or will it required by the user to kick. Also if am enabling theCONFIG_MPmacro andCONFIG_NUM_CPUSas 2, then the reset command of the target is not working(means board is getting hanged). I have mentioned the value ofCONFIG_SYS_SCRATCH_VAas0xf5000000.Kindly suggest me what might be the error.
Which "MPC8640D based board" is this exactly?
At the moment we have 3 MPC86xx boards in mainline, and the MAINTAINERS file will tell you who is responsible for these.
If you have a custom board with an out-of-tree port you will have to ask those who provided the port to you.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Alles Gescheite ist schon gedacht worden, man mu? nur versuchen, es noch einmal zu denken. -- Goethe, Maximen und Reflexionen
Thank you denx.
Hi Jon,
I am using 2009-06 u-boot for MPC8640D based custom board. i just
want to know whether the second core of MPC8640D is kicked off automatically or will it required by the user to kick using cpu command like mpc85xx/mp.c. Also if am enabling the CONFIG_MP macro and CONFIG_NUM_CPUS as 2, then the reset command of the target is not working(means board is getting hanged). I have mentioned the value of CONFIG_SYS_SCRATCH_VA as 0xf5000000.
Thank you
T.
Quoted 3 lines · Thirumalai
Thank you denx.
Hi Jon,
The email address you used for Jon is invalid (we need to update the maintainers file - Jon should weigh in here).
Quoted 5 lines
I am using 2009-06 u-boot for MPC8640D based custom board. i just
want to know whether the second core of MPC8640D is kicked off automatically or will it required by the user to kick using cpu command
If you have U-boot configured as you say below, and an SMP linux, then the second CPU will automatically come up. You don't need to do anything special.
Quoted 4 lines
like
mpc85xx/mp.c. Also if am enabling theCONFIG_MPmacro andCONFIG_NUM_CPUSas 2, then the reset command of the target is not working(means board is getting hanged). I have mentioned the value ofCONFIG_SYS_SCRATCH_VAas0xf5000000.
As far as your reset problem, I'm running a MPC8641D board using the latest u-boot, and I am able to reset it just fine when booted SMP. You're going to have to provide more information or look into this yourself.
I can't tell you if your SCRATCH_VA is valid without knowing the entire memory map of your system.......
Cheers,
Becky
PATCH 1/1 Jon Loeliger is not maintaining any Freescale board.
From: Jon Loeliger <[email protected]>
---
Quoted 8 lines · Becky
Quoted 3 lines · Thirumalai
Thank you denx.
Hi Jon,
The email address you used for Jon is invalid (we need to update the maintainers file - Jon should weigh in here).
MAINTAINERS | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-)
MAINTAINERS +0 -9
@@ -277,15 +277,6 @@ Nye Liu <[email protected]> ZUMA MPC7xx_74xx -Jon Loeliger <[email protected]> - - MPC8540ADS MPC8540 - MPC8560ADS MPC8560 - MPC8541CDS MPC8541 - MPC8555CDS MPC8555 - - MPC8641HPCN MPC8641D - Ron Madrid <[email protected]> SIMPC8313 MPC8313
Signature · 1 line
1.6.2.rc0.90.g0753
PATCH 1/1 Jon Loeliger is not maintaining any Freescale board.
Dear Jon,
Quoted 3 lines · In message <[email protected]> you wrote:
MAINTAINERS | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-)
Thanks a lot, but I will ignore this patch as Kumar "volunteered" to inherit this stuff.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "...one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." - Robert Firth
Quoted 25 lines · Thirumalai
Quoted 4 lines
Thank you denx.
Hi Jon,
The email address you used for Jon is invalid (we need to update the maintainers file - Jon should weigh in here).
Quoted 4 lines
I am using 2009-06 u-boot for MPC8640D based custom board. i just
want to know whether the second core of MPC8640D is kicked off automatically or will it required by the user to kick using cpu commandIf you have U-boot configured as you say below, and an SMP linux, then the second CPU will automatically come up. You don't need to do anything special.
Quoted 4 lines
like
mpc85xx/mp.c. Also if am enabling theCONFIG_MPmacro andCONFIG_NUM_CPUSas 2, then the reset command of the target is not working(means board is getting hanged). I have mentioned the value ofCONFIG_SYS_SCRATCH_VAas0xf5000000.
Quoted 7 lines
As far as your reset problem, I'm running a MPC8641D board using the latest u-boot, and I am able to reset it just fine when booted SMP. You're going to have to provide more information or look into this yourself.
I can't tell you if your
SCRATCH_VAis valid without knowing the entire memory map of your system.......
Thank you. I will just check and tell you.
Quoted 4 lines
Cheers,
Becky
Hi Becky,
Thank you for your reply. But when i boot smp-linux on this
configuration i got into kernel panic. The log is attached with this mail. I am using linux-2.6.30 downloaded from kernel.org and my dts entry for cpu is like this.
cpus {
#address-cells = <1>;
#size-cells = <0>;
PowerPC,8641 at 0 {
device_type = "cpu";
reg = <0>;
d-cache-line-size = <32>;
i-cache-line-size = <32>;
d-cache-size = <32768>; // L1
i-cache-size = <32768>; // L1
timebase-frequency = <0>; // From uboot
bus-frequency = <0>; // From uboot
clock-frequency = <0>; // From uboot
};
PowerPC,8641 at 1 {
device_type = "cpu";
reg = <1>;
d-cache-line-size = <32>;
i-cache-line-size = <32>;
d-cache-size = <32768>;
i-cache-size = <32768>;
timebase-frequency = <0>; // From uboot
bus-frequency = <0>; // From uboot
clock-frequency = <0>; // From uboot
};
};--------------
Kernel Log
--------------
## Current stack ends at 0x3fa91a08
## Booting kernel from Legacy Image at 00400000 ...
Image Name: Linux-2.6.30-dpvpx0689 Created: 2009-12-01 4:45:09 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2307361 Bytes = 2.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 04000000
Booting using the fdt blob at 0x4000000
Uncompressing Kernel Image ... OK
Loading Device Tree to 007fa000, end 007ff150 ... OK
## Transferring control to Linux (at address 00000000) ...
Booting using OF flat tree...
Using DPVPX0689 machine description
Total memory = 1024MB; using 2048kB for hash table (at afe00000) Linux version 2.6.30-dpvpx0689 (root at localhost.localdomain) (gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)) #70 SMP Tue Dec 1 10:14:07 IST 2009 Found legacy serial port 0 for /soc at f6000000/serial at 4500
mem=f6004500, taddr=f6004500, irq=0, clk=400000000, speed=0
Found legacy serial port 1 for /soc at f6000000/serial at 4600
mem=f6004600, taddr=f6004600, irq=0, clk=400000000, speed=0
CPU maps initialized for 1 thread per core
(thread shift is 0)
console [udbg0] enabledsetup_arch: bootmemdpvpx0689_setup_arch()
Found FSL PCI host bridge at 0x00000000f6008000. Firmware bus number: 0->15 PCI host bridge /pcie at f6008000 ranges:
MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
IO 0x00000000f8000000..0x00000000fbffffff -> 0x0000000000000000
Single Board Computers from Data Patterns
Ported & Developed By COTS DIVISION
arch: exit
Top of RAM: 0x40000000, Total RAM: 0x40000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0x00000000 -> 0x00030000
Normal 0x00030000 -> 0x00030000
HighMem 0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00040000On node 0 totalpages: 262144free_area_init_node: node 0, pgdat a047d1c0, node_mem_map a07fd000
DMA zone: 1536 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 195072 pages, LIFO batch:31
HighMem zone: 512 pages used for memmap
HighMem zone: 65024 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096 Kernel command line: root=/dev/nfs rw nfsroot=10.5.18.3:/ppc/netfs/fc5fs/ ip=10.5.18.230:10.5.18.3:10.5.18.3:255.0.0.0:DPVPX0689:eth0:off console=ttyS0,115200
NR_IRQS:512
mpic: Setting up MPIC " MPIC " version 1.2 at f6040000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
PID hash table entries: 4096 (order: 12, 16384 bytes)time_init: decrementer frequency = 100.000000 MHztime_init: processor frequency = 800.000000 MHz
clocksource: timebase mult[2800000] shift[22] registered
clockevent: decrementer mult[1999] shift[16] cpu[0]
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) High memory: 262140k
Memory: 1031504k/1048576k available (4444k kernel code, 16252k reserved, 160k data, 169k bss, 200k init)
Kernel virtual memory layout:
* 0xfffe0000..0xfffff000 : fixmap * 0xff800000..0xffc00000 : highmem PTEs * 0xfe7ed000..0xff800000 : early ioremap * 0xd1000000..0xfe7ed000 : vmalloc & ioremap
Calibrating delay loop... 199.68 BogoMIPS (lpj=99840) Mount-cache hash table entries: 512
mpic: requesting IPIs ...
Processor 1 found.
clockevent: decrementer mult[1999] shift[16] cpu[1] Brought up 2 CPUs
Unable to handle kernel paging request for data at address 0x00000004 Faulting instruction address: 0xa0023e10 Oops: Kernel access of bad area, sig: 11 [#1] SMP NR_CPUS=2 DPVPX0689 Modules linked in: NIP: a0023e10 LR: a0023dd0 CTR: 00000000 REGS: cf841e90 TRAP: 0300 Not tainted (2.6.30-dpvpx0689) MSR: 00009032 <EE,ME,IR,DR> CR: 24004028 XER: 20000000 DAR: 00000004, DSISR: 40000000
TASK = cf83f930[1] 'swapper' THREAD: cf840000 CPU: 0
GPR00: 00000000 cf841f40 cf83f930 00000000 00000000 00000000 cf841f50 00000000
GPR08: 00000000 00000000 00000002 a10018f4 22004082 ffffffff 3fee6c00 3ff94000
GPR16: ffffffbf ffbf7bff 00000000 00000000 00000000 cf83a800 a10018e8 a0491224
GPR24: a0490000 a04558f8 00000000 cf801f20 a1006070 a10018e8 a10018f8 00000000
NIP [a0023e10] __build_sched_domains+0x354/0x464
LR [a0023dd0] __build_sched_domains+0x314/0x464
Call Trace: [cf841f40] [a0023b98] __build_sched_domains+0xdc/0x464 (unreliable) [cf841f90] [a04326ec] sched_init_smp+0x88/0x1e8 [cf841fc0] [a0425a40] kernel_init+0x148/0x1f0 [cf841ff0] [a00131f8] kernel_thread+0x4c/0x68 Instruction dump: 813e0008 2f9c0000 90090004 419e00d4 801e0034 70090100 40820010 801c0034 70090280 408200bc 83fc0008 83be0008 <807f0004> 801d0004 7c630214 907d0004 ---[ end trace 31fd0ba7d8756001 ]--- Kernel panic - not syncing: Attempted to kill init!
Rebooting in 180 seconds..
Quoted 7 lines · Thirumalai
Thank you for your reply. But when i boot smp-linux on this
configuration i got into kernel panic. The log is attached with this mail. I
am using linux-2.6.30 downloaded from kernel.org and my dts entry for cpu is
like this.
<snip>
Quoted 32 lines
Calibrating delay loop... 199.68 BogoMIPS (lpj=99840) Mount-cache hash table entries: 512
mpic: requesting IPIs ...
Processor 1 found.
clockevent: decrementer mult[1999] shift[16] cpu[1] Brought up 2 CPUsUnable to handle kernel paging request for data at address 0x00000004 Faulting instruction address: 0xa0023e10 Oops: Kernel access of bad area, sig: 11 [#1] SMP NR_CPUS=2 DPVPX0689 Modules linked in: NIP: a0023e10 LR: a0023dd0 CTR: 00000000 REGS: cf841e90 TRAP: 0300 Not tainted (2.6.30-dpvpx0689) MSR: 00009032 <EE,ME,IR,DR> CR: 24004028 XER: 20000000 DAR: 00000004, DSISR: 40000000TASK = cf83f930[1] 'swapper' THREAD:
cf840000CPU: 0
GPR00: 00000000cf841f40cf83f93000000000 00000000 00000000cf841f5000000000
GPR08: 00000000 00000000 00000002a10018f422004082 ffffffff3fee6c003ff94000
GPR16: ffffffbfffbf7bff00000000 00000000 00000000cf83a800a10018e8a0491224
GPR24:a0490000a04558f800000000cf801f20a1006070a10018e8a10018f800000000
NIP [a0023e10]__build_sched_domains+0x354/0x464
LR [a0023dd0]__build_sched_domains+0x314/0x464Call Trace: [cf841f40] [a0023b98] __build_sched_domains+0xdc/0x464 (unreliable) [cf841f90] [a04326ec] sched_init_smp+0x88/0x1e8 [cf841fc0] [a0425a40] kernel_init+0x148/0x1f0 [cf841ff0] [a00131f8] kernel_thread+0x4c/0x68
Quoted 5 lines
Instruction dump:
813e00082f9c000090090004419e00d4801e003470090100 40820010801c0034
70090280408200bc83fc000883be0008<807f0004>801d00047c630214907d0004
You took this panic because you tried to access 0x00000004, which is probably not correct. I would also not generally expect to be seeing all these 0xaxxxxxxx addresses in your panic. Can you explain exactly what you've done to this kernel, and send a copy of the entire .dts and the .config?
FYI, 2.6.30 boots SMP just fine on my 8641HPCN board.
Cheers,
Becky
Quoted 3 lines
---[ end trace 31fd0ba7d8756001 ]--- Kernel panic - not syncing: Attempted to kill init!Rebooting in 180 seconds..