Hi,

compiling a Loongson3a kernel with CONFIG_SMP=y on lemote's official
kernel (branch master, 7a7d4e7770) shows error messages during boot up
and in kernel log:

[   24.253906] modprobe: page allocation failure: order:0, mode:0x2000d1
[   24.402343] CPU: 3 PID: 135 Comm: modprobe Not tainted 3.15.0-rc5-dk2+ #3
[..]
[   24.992187] Call Trace:
[   24.992187] [<ffffffff8020c378>] show_stack+0x48/0x70
[   24.992187] [<ffffffff807e885c>] dump_stack+0x70/0x90
[   24.992187] [<ffffffff802f8a88>] warn_alloc_failed+0x110/0x134
[   24.992187] [<ffffffff802fb4f8>] __alloc_pages_nodemask+0x750/0x864
[   24.992187] [<ffffffff80339ee8>] new_slab+0xe0/0x348
[..]

I did not see these kinds of errors with same config and CONFIG_SMP
disabled.  This is still with the original PMON that came installed with
the Xinghuo.  I cross-compile all my kernels with with gcc 4.7.3.

Full output of dmesg attached below.

You can find the kernels in question, including kernel config here [1]
(-dk1: without SMP, -dk2: with SMP).  

Despite these errors, the system did not immediately crash.  However I
did not allow it to boot beyond the initrd for concerns about possibly
corrupting my system.

cheers,

David

[1] https://stech.muecke.pw/david/loongson/7a7d4e7770/
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk2.gpg
Fingerprint: B63B 6AF2 4EEB F033 46F7  7F1D 935E 6F08 E457 205F

[   24.042968] r8169 0000:04:00.0 eth0: jumbo features [frames: 9200 bytes, tx 
checksumming: ko]
[   24.253906] modprobe: page allocation failure: order:0, mode:0x2000d1
[   24.402343] CPU: 3 PID: 135 Comm: modprobe Not tainted 3.15.0-rc5-dk2+ #3
[   24.546875] Stack : 000000007000cce3 0000000000000000 0000000000000008 
000000000000003d
[   24.546875]    000000005000c000 ffffffff804afd98 0000000000000000 
ffffffff81310000
[   24.546875]    ffffffff8094e308 ffffffff80a246b7 ffffffff813111d0 
9800000179166900
[   24.546875]    0000000000000087 0000000000000003 0000000000000000 
ffffffff812a12a0
[   24.546875]    0000000000000000 ffffffff807e4e28 980000017f7177b8 
ffffffffffffffff
[   24.546875]    9800000179166460 ffffffff802885e4 ffffffffffffffff 
ffffffff8094e308
[   24.546875]    0000000000000003 0000000000000087 0000000000000000 
0000000000000000
[   24.546875]    0000000000000000 980000017f717700 0000000000000000 
ffffffff807e885c
[   24.546875]    0000000000000000 0000000000000000 0000000000000000 
0000000000000000
[   24.546875]    0000000000000000 ffffffff8020c378 00000000002000d1 
ffffffff807e885c
[   24.546875]    ...
[   24.992187] Call Trace:
[   24.992187] [<ffffffff8020c378>] show_stack+0x48/0x70
[   24.992187] [<ffffffff807e885c>] dump_stack+0x70/0x90
[   24.992187] [<ffffffff802f8a88>] warn_alloc_failed+0x110/0x134
[   24.992187] [<ffffffff802fb4f8>] __alloc_pages_nodemask+0x750/0x864
[   24.992187] [<ffffffff80339ee8>] new_slab+0xe0/0x348
[   24.992187] [<ffffffff807e6bc8>] __slab_alloc.constprop.49+0x240/0x3b8
[   24.992187] [<ffffffff8033d03c>] __kmalloc+0x180/0x2c4
[   24.992187] [<ffffffffc009cf7c>] sr_probe+0x230/0x728 [sr_mod]
[   24.992187] [<ffffffff80649380>] driver_probe_device+0xdc/0x254
[   24.992187] [<ffffffff80649574>] __driver_attach+0x7c/0xb4
[   24.992187] [<ffffffff8064767c>] bus_for_each_dev+0x58/0xac
[   24.992187] [<ffffffff806489c4>] bus_add_driver+0xf0/0x1f8
[   24.992187] [<ffffffff80649dc8>] driver_register+0xac/0xfc
[   24.992187] [<ffffffffc00a8040>] init_sr+0x40/0x74 [sr_mod]
[   24.992187] [<ffffffff80200518>] do_one_initcall+0x88/0x140
[   24.992187] [<ffffffff802a82c4>] load_module+0x1c48/0x1f34
[   24.992187] [<ffffffff802a870c>] SyS_finit_module+0x70/0x94
[   24.992187] [<ffffffff802197a8>] handle_sys+0x128/0x14c
[   24.992187] 
[   24.992187] Mem-Info:
[   24.992187] DMA per-cpu:
[   24.992187] CPU    0: hi:    0, btch:   1 usd:   0
[   24.992187] CPU    1: hi:    0, btch:   1 usd:   0
[   24.992187] CPU    2: hi:    0, btch:   1 usd:   0
[   24.992187] CPU    3: hi:    0, btch:   1 usd:   0
[   24.992187] DMA32 per-cpu:
[   24.992187] CPU    0: hi:    6, btch:   1 usd:   2
[   24.992187] CPU    1: hi:    6, btch:   1 usd:   5
[   24.992187] CPU    2: hi:    6, btch:   1 usd:   2
[   24.992187] CPU    3: hi:    6, btch:   1 usd:   5
[   24.992187] Normal per-cpu:
[   24.992187] CPU    0: hi:   42, btch:   7 usd:  32
[   24.992187] CPU    1: hi:   42, btch:   7 usd:  39
[   24.992187] CPU    2: hi:   42, btch:   7 usd:  17
[   24.992187] CPU    3: hi:   42, btch:   7 usd:  29
[   24.992187] active_anon:403 inactive_anon:9 isolated_anon:0
[   24.992187]  active_file:2782 inactive_file:84 isolated_file:0
[   24.992187]  unevictable:0 dirty:0 writeback:0 unstable:0
[   24.992187]  free:120334 slab_reclaimable:241 slab_unreclaimable:482
[   24.992187]  mapped:255 shmem:10 pagetables:67 bounce:0
[   24.992187]  free_cma:0
[   24.992187] DMA free:0kB min:0kB low:0kB high:0kB active_anon:0kB 
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:14336kB managed:0kB mlocked:0kB 
dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB 
slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB 
free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[   24.992187] lowmem_reserve[]: 0 40 488 488
[   24.992187] DMA32 free:160736kB min:464kB low:576kB high:688kB 
active_anon:816kB inactive_anon:16kB active_file:0kB inactive_file:32kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:245760kB 
managed:165872kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:16kB 
slab_reclaimable:80kB slab_unreclaimable:864kB kernel_stack:64kB 
pagetables:64kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
[   24.992187] lowmem_reserve[]: 0 0 447 447
[   24.992187] Normal free:1764608kB min:5168kB low:6448kB high:7744kB 
active_anon:5632kB inactive_anon:128kB active_file:44512kB inactive_file:1312kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:1835008kB 
managed:1834992kB mlocked:0kB dirty:0kB writeback:0kB mapped:4080kB shmem:144kB 
slab_reclaimable:3776kB slab_unreclaimable:6848kB kernel_stack:1408kB 
pagetables:1008kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
[   24.992187] lowmem_reserve[]: 0 0 0 0
[   24.992187] DMA: 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB 0*8192kB 0*16384kB = 0kB
[   24.992187] DMA32: 11*16kB (UEM) 6*32kB (UM) 2*64kB (UM) 2*128kB (EM) 
3*256kB (UEM) 3*512kB (UEM) 4*1024kB (UEM) 3*2048kB (UEM) 4*4096kB (EM) 
2*8192kB (UE) 7*16384kB (MR) = 160752kB
[   24.992187] Normal: 11*16kB (UEM) 6*32kB (UEM) 2*64kB (UM) 1*128kB (M) 
1*256kB (M) 1*512kB (U) 2*1024kB (UM) 0*2048kB 2*4096kB (UE) 4*8192kB (UEM) 
105*16384kB (UMR) = 1764720kB
[   24.992187] 2878 total pagecache pages
[   24.992187] 0 pages in swap cache
[   24.992187] Swap cache stats: add 0, delete 0, find 0/0
[   24.992187] Free swap  = 0kB
[   24.992187] Total swap = 0kB
[   24.992187] 130944 pages RAM
[   24.992187] 0 pages HighMem/MovableOnly
[   24.992187] 1 pages reserved
[   24.992187] SLUB: Unable to allocate memory on node -1 (gfp=0xd1)
[   24.992187]   cache: dma-kmalloc-512, object size: 512, buffer size: 512, 
default order: 0, min order: 0
[   24.992187]   node 0: slabs: 0, objs: 0, free: 0
[   24.992187] sr: out of memory.
[   24.992187] cdrom: Uniform CD-ROM driver Revision: 3.20
[   24.992187] sr 4:0:0:0: Attached scsi CD-ROM sr0
[   28.429687] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   28.679687] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   28.679687] sr 4:0:0:0: Attached scsi generic sg2 type 5
[   36.269531] device-mapper: uevent: version 1.0.3
[   36.425781] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: 
dm-de...@redhat.com
[  175.359375] uhci_hcd: USB Universal Host Controller Interface driver
[  189.894531] usb 1-2: new high-speed USB device number 2 using ehci-pci
[  190.023437] usb 1-2: New USB device found, idVendor=0781, idProduct=5408
[  190.023437] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  190.023437] usb 1-2: Product: U3 Titanium
[  190.023437] usb 1-2: Manufacturer: SanDisk
[  190.023437] usb 1-2: SerialNumber: 0877801DC342C9AF
[  190.023437] usb-storage 1-2:1.0: USB Mass Storage device detected
[  190.023437] scsi5 : usb-storage 1-2:1.0
[  191.027343] scsi 5:0:0:0: Direct-Access     SanDisk  U3 Titanium      8.01 
PQ: 0 ANSI: 0 CCS
[  191.027343] scsi 5:0:0:1: CD-ROM            SanDisk  U3 Titanium      8.01 
PQ: 0 ANSI: 0
[  191.027343] sd 5:0:0:0: Attached scsi generic sg3 type 0
[  191.035156] kworker/u8:2: page allocation failure: order:0, mode:0x2000d1
[  191.035156] CPU: 3 PID: 60 Comm: kworker/u8:2 Not tainted 3.15.0-rc5-dk2+ #3
[  191.035156] Workqueue: events_unbound async_run_entry_fn
[  191.035156] Stack : 0000000000000002 ffffffff80287210 0000000000000000 
0000000000000001
[  191.035156]    980000017f58a900 ffffffff8094e308 0000000000000000 
0000000000000000
[  191.035156]    0000000000000000 0000000000000000 0000000000000000 
ffffffff812a12a0
[  191.035156]    0000000000000000 ffffffff807e4e28 980000017f5937b8 
ffffffff812a12a0
[  191.035156]    0000000000000000 ffffffff802532f8 980000017f5937d8 
000000005400cce0
[  191.035156]    0000000000000000 0000000000000002 0000000000000003 
7972746e655f6e75
[  191.035156]    6e665f7972746e65 ffffffff80203278 0000000000000000 
0000000000000000
[  191.035156]    0000000000000000 980000017f593720 0000646e756f626e 
ffffffff807e885c
[  191.035156]    980000017f010400 980000017f071300 ffffffff8025dc5c 
0000000000000000
[  191.035156]    0000000000000000 ffffffff8020c378
[  191.035156] sd 5:0:0:0: [sdc] 15682559 512-byte logical blocks: (8.02 
GB/7.47 GiB)
[  191.035156]  00000000002000d1 ffffffff807e885c
[  191.035156]    ...
[  191.035156] Call Trace:
[  191.035156] [<ffffffff8020c378>] show_stack+0x48/0x70
[  191.035156] [<ffffffff807e885c>] dump_stack+0x70/0x90
[  191.035156] [<ffffffff802f8a88>] warn_alloc_failed+0x110/0x134
[  191.035156] [<ffffffff802fb4f8>] __alloc_pages_nodemask+0x750/0x864
[  191.035156] [<ffffffff80339ee8>] new_slab+0xe0/0x348
[  191.035156] [<ffffffff807e6bc8>] __slab_alloc.constprop.49+0x240/0x3b8
[  191.035156] [<ffffffff8033d03c>] __kmalloc+0x180/0x2c4
[  191.035156] [<ffffffffc009cf7c>] sr_probe+0x230/0x728 [sr_mod]
[  191.035156] [<ffffffff80649380>] driver_probe_device+0xdc/0x254
[  191.035156] [<ffffffff806475c4>] bus_for_each_drv+0x54/0xb4
[  191.035156] [<ffffffff80649250>] device_attach+0x7c/0xb0
[  191.035156] [<ffffffff80648728>] bus_probe_device+0x3c/0xcc
[  191.035156] [<ffffffff806467e0>] device_add+0x3b4/0x55c
[  191.035156] [<ffffffff80673644>] scsi_sysfs_add_sdev+0x104/0x280
[  191.035156] [<ffffffff80671bfc>] do_scan_async+0x1e8/0x21c
[  191.035156] [<ffffffff8025dcd0>] async_run_entry_fn+0x74/0x160
[  191.035156] [<ffffffff80250874>] process_one_work+0x2d0/0x478
[  191.035156] [<ffffffff802514a4>] worker_thread+0x274/0x41c
[  191.035156] [<ffffffff8025789c>] kthread+0xe4/0xf0
[  191.035156] [<ffffffff80206e08>] ret_from_kernel_thread+0x14/0x1c
[  191.035156] 
[  191.035156] Mem-Info:
[  191.035156] DMA per-cpu:
[  191.035156] CPU    0: hi:    0, btch:   1 usd:   0
[  191.035156] CPU    1: hi:    0, btch:   1 usd:   0
[  191.035156] CPU    2: hi:    0, btch:   1 usd:   0
[  191.035156] CPU    3: hi:    0, btch:   1 usd:   0
[  191.035156] DMA32 per-cpu:
[  191.035156] CPU    0: hi:    6, btch:   1 usd:   3
[  191.035156] CPU    1: hi:    6, btch:   1 usd:   5
[  191.035156] CPU    2: hi:    6, btch:   1 usd:   3
[  191.035156] CPU    3: hi:    6, btch:   1 usd:   4
[  191.035156] Normal per-cpu:
[  191.035156] CPU    0: hi:   42, btch:   7 usd:  22
[  191.035156] CPU    1: hi:   42, btch:   7 usd:   4
[  191.035156] CPU    2: hi:   42, btch:   7 usd:  20
[  191.035156] CPU    3: hi:   42, btch:   7 usd:  32
[  191.035156] active_anon:107 inactive_anon:21 isolated_anon:0
[  191.035156]  active_file:2571 inactive_file:77 isolated_file:0
[  191.035156]  unevictable:216 dirty:0 writeback:0 unstable:0
[  191.035156]  free:120693 slab_reclaimable:254 slab_unreclaimable:545
[  191.035156]  mapped:225 shmem:34 pagetables:17 bounce:0
[  191.035156]  free_cma:0
[  191.035156] DMA free:0kB min:0kB low:0kB high:0kB active_anon:0kB 
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:14336kB managed:0kB mlocked:0kB 
dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB 
slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB 
free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[  191.035156] lowmem_reserve[]: 0 40 488 488
[  191.035156] DMA32 free:161280kB min:464kB low:576kB high:688kB 
active_anon:80kB inactive_anon:32kB active_file:0kB inactive_file:0kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:245760kB 
managed:165872kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:48kB 
slab_reclaimable:112kB slab_unreclaimable:1008kB kernel_stack:64kB 
pagetables:16kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? yes
[  191.035156] lowmem_reserve[]: 0 0 447 447
[  191.035156] Normal free:1769808kB min:5168kB low:6448kB high:7744kB 
active_anon:1632kB inactive_anon:304kB active_file:41136kB inactive_file:1232kB 
unevictable:3456kB isolated(anon):0kB isolated(file):0kB present:1835008kB 
managed:1834992kB mlocked:0kB dirty:0kB writeback:0kB mapped:3600kB shmem:496kB 
slab_reclaimable:3952kB slab_unreclaimable:7712kB kernel_stack:1232kB 
pagetables:256kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
[  191.035156] lowmem_reserve[]: 0 0 0 0
[  191.035156] DMA: 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 
0*2048kB 0*4096kB 0*8192kB 0*16384kB = 0kB
[  191.035156] DMA32: 
[  191.035156] sd 5:0:0:0: [sdc] Write Protect is off
[  191.035156] 2*16kB (UE) 7*32kB 
[  191.035156] sd 5:0:0:0: [sdc] Mode Sense: 45 00 00 08
[  191.035156] (UM) 8*64kB (UM) 6*128kB (UEM) 2*256kB (EM) 3*512kB (UEM) 
4*1024kB (UEM) 3*2048kB (UEM) 4*4096kB (EM) 2*8192kB (UE) 7*16384kB (MR) = 
161280kB
[  191.035156] Normal: 12*16kB (UEM) 45*32kB (UEM) 40*64kB (UEM) 17*128kB (UEM) 
8*256kB (UEM) 2*512kB (EM) 1*1024kB (E) 1*2048kB (E) 1*4096kB (U) 4*8192kB 
(UEM) 105*16384kB (UMR) = 1769696kB
[  191.035156] 2898 total pagecache pages
[  191.035156] 0 pages in swap cache
[  191.035156] Swap cache stats: add 0, delete 0, find 0/0
[  191.035156] Free swap  = 0kB
[  191.035156] Total swap = 0kB
[  191.035156] 130944 pages RAM
[  191.035156] 0 pages HighMem/MovableOnly
[  191.035156] 1 pages reserved
[  191.035156] SLUB: Unable to allocate memory on node -1 (gfp=0xd1)
[  191.035156]   cache: dma-kmalloc-512, object size: 512, buffer size: 512, 
default order: 0, min order: 0
[  191.035156]   node 0: slabs: 0, objs: 0, free: 0
[  191.035156] sr: out of memory.
[  191.035156] sr 5:0:0:1: Attached scsi CD-ROM sr1
[  191.035156] sr 5:0:0:1: Attached scsi generic sg4 type 5
[  191.039062] sd 5:0:0:0: [sdc] No Caching mode page found
[  191.039062] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[  191.062500]  sdc: sdc1
[  191.066406] sd 5:0:0:0: [sdc] Attached SCSI removable disk
[  263.824218] EXT4-fs (sda1): mounting ext3 file system using the ext4 
subsystem
[  263.847656] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: 
(null)

Attachment: pgp4GFhebGM5F.pgp
Description: PGP signature

Reply via email to