mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* imx7d enable second core
@ 2019-10-15 11:29 Giorgio Dal Molin
  2019-10-15 11:37 ` Ahmad Fatoum
  0 siblings, 1 reply; 14+ messages in thread
From: Giorgio Dal Molin @ 2019-10-15 11:29 UTC (permalink / raw)
  To: barebox

Hi,

can anyone please confirm that a recent barebox version (v2019.10 or v2019.09)
is able to boot a linux kernel so that it can enable the second cpu core ?
It actually used to work in the past but now I only get one core running:

Loading ARM Linux zImage '/mnt/boot/kernel.img'
Loading devicetree from '/mnt/boot/devtree.dtb'
commandline: console=ttymxc0,115200n8 ip=11.0.0.4::11.0.0.2:255.0.0.0:armgdm:eth0: root=PARTUUID=abd2f9f6-88e5-4657-a5fb-aeb2cc6fde7e rootwait video=HDMI-A-1:1024x768M@60 console=tty1
Starting kernel in nonsecure mode
[    0.000000] 000: Booting Linux on physical CPU 0x0
[    0.000000] 000: Linux version 5.2.19-rt11-00268-g0308d71d8410-dirty (giorgio@BVblfs) (gcc version 9.2.1 20190813 (OSELAS.Toolchain 9.2.1)) #1 SMP PREEMPT RT Thu Oct 10 07:50:01 CEST 2019
[    0.000000] 000: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] 000: CPU: div instructions available: patching division code
[    0.000000] 000: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] 000: OF: fdt: Machine model: Freescale i.MX7 SabreSD Board
[    0.000000] 000: Memory policy: Data cache writealloc
[    0.000000] 000: cma: Reserved 64 MiB at 0xac000000
[    0.000000] 000: percpu: Embedded 10 pages/cpu s19296 r0 d21664 u40960
[    0.000000] 000: Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] 000: Kernel command line: console=ttymxc0,115200n8 ip=11.0.0.4::11.0.0.2:255.0.0.0:armgdm:eth0: root=PARTUUID=abd2f9f6-88e5-4657-a5fb-aeb2cc6fde7e rootwait video=HDMI-A-1:1024x768M@60 console=tty1
[    0.000000] 000: Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] 000: Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] 000: Memory: 958252K/1048576K available (9216K kernel code, 403K rwdata, 2308K rodata, 1024K init, 719K bss, 24788K reserved, 65536K cma-reserved, 261700K highmem)
[    0.000000] 000: SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] 000: rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 000: rcu:        RCU priority boosting: priority 1 delay 500 ms.
[    0.000000] 000: rcu:        RCU_SOFTIRQ processing moved to rcuc kthreads.
[    0.000000] 000:     No expedited grace period (rcu_normal_after_boot).
[    0.000000] 000:     Tasks RCU enabled.
[    0.000000] 000: rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] 000: NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] 000: rcu:        Offload RCU callbacks from CPUs: (none).
[    0.000000] 000: arch_timer: cp15 timer(s) running at 8.00MHz (virt).
[    0.000000] 000: clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000001] 000: sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000012] 000: Switching to timer-based delay loop, resolution 125ns
[    0.000433] 000: Switching to timer-based delay loop, resolution 41ns
[    0.000445] 000: sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000456] 000: clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001625] 000: Console: colour dummy device 80x30
[    0.001638] 000: printk: console [tty1] enabled
[    0.001673] 000: Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001680] 000: pid_max: default: 32768 minimum: 301
[    0.001816] 000: Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001833] 000: Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002543] 000: CPU: Testing write buffer coherency: ok
[    0.002896] 000: CPU0: update cpu_capacity 1024
[    0.002908] 000: CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060000] 000: Setting up static identity map for 0x80100000 - 0x8010003c
[    0.079971] 000: rcu: Hierarchical SRCU implementation.
[    0.160105] 000: smp: Bringing up secondary CPUs ...
[    0.280352] 000: smp: Brought up 1 node, 1 CPU
[    0.280362] 000: SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.280370] 000: CPU: All CPU(s) started in SVC mode.
[    0.281280] 000: devtmpfs: initialized

giorgio

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread
* imx7d enable second core
@ 2018-07-18  7:27 Giorgio Dal Molin
  2018-07-18  7:56 ` Oleksij Rempel
  2018-07-18 16:54 ` Andrey Smirnov
  0 siblings, 2 replies; 14+ messages in thread
From: Giorgio Dal Molin @ 2018-07-18  7:27 UTC (permalink / raw)
  To: barebox

Hi all,

I'm currently working with the imx7d sabre board from NXP.

I have now a running barebox bootloader and a booting kernel.

My problem is now that, apparently, only one core is active:

...
commandline: console=ttymxc0,115200n8 ip=11.0.0.4::11.0.0.2:255.0.0.0::eth0: root=/dev/mmcblk0p2 rootdelay=1
Starting kernel in secure mode
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.17.7 (giorgio@BV_blfs) (gcc version 8.1.0 (OSELAS.Toolchain-2018.02.0)) #1 SMP Wed Jul 18 07:44:41 CEST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX7 SabreSD Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 64 MiB at 0xba000000
[    0.000000] percpu: Embedded 14 pages/cpu @(ptrval) s36392 r0 d20952 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttymxc0,115200n8 ip=11.0.0.4::11.0.0.2:255.0.0.0::eth0: root=/dev/mmcblk0p2 rootdelay=1
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 950804K/1048576K available (10240K kernel code, 450K rwdata, 2188K rodata, 1024K init, 7788K bss, 32236K reserved, 65536K cma-reserved, 196196K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 451 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   (7789 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Running RCU self tests
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU lockdep checking is enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000]  Offload RCU callbacks from CPUs: (none).
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000009] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000033] Switching to timer-based delay loop, resolution 125ns
[    0.000545] Switching to timer-based delay loop, resolution 41ns
[    0.000574] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000601] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001981] Console: colour dummy device 80x30
[    0.002013] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.002032] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.002050] ... MAX_LOCK_DEPTH:          48
[    0.002068] ... MAX_LOCKDEP_KEYS:        8191
[    0.002086] ... CLASSHASH_SIZE:          4096
[    0.002104] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.002122] ... MAX_LOCKDEP_CHAINS:      65536
[    0.002140] ... CHAINHASH_SIZE:          32768
[    0.002158]  memory used by lock dependency info: 4655 kB
[    0.002176]  per task-struct memory footprint: 1536 bytes
[    0.002230] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002264] pid_max: default: 32768 minimum: 301
[    0.002590] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002622] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004407] CPU: Testing write buffer coherency: ok
[    0.005308] CPU0: update cpu_capacity 1024
[    0.005335] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.006792] Setting up static identity map for 0x80100000 - 0x80100060
[    0.007218] Hierarchical SRCU implementation.
[    0.008853] smp: Bringing up secondary CPUs ...
[    0.010740] smp: Brought up 1 node, 1 CPU
[    0.010766] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.010786] CPU: All CPU(s) started in SVC mode.
[    0.012748] devtmpfs: initialized
...

I was expecting both cores to be enabled at least by the kernel.

Does anyone had the same problem ?

giorgio

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-10-15 12:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 11:29 imx7d enable second core Giorgio Dal Molin
2019-10-15 11:37 ` Ahmad Fatoum
2019-10-15 11:51   ` Ahmad Fatoum
2019-10-15 12:11   ` Giorgio Dal Molin
2019-10-15 12:47     ` Ahmad Fatoum
  -- strict thread matches above, loose matches on Subject: below --
2018-07-18  7:27 Giorgio Dal Molin
2018-07-18  7:56 ` Oleksij Rempel
2018-07-18 16:54 ` Andrey Smirnov
2018-07-19  7:16   ` Giorgio Dal Molin
2018-07-19 16:02     ` Andrey Smirnov
2018-07-19 16:16       ` Giorgio Dal Molin
2018-07-19 15:52   ` Giorgio Dal Molin
2018-07-19 16:09     ` Andrey Smirnov
2018-07-19 16:18       ` Giorgio Dal Molin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox