Bug 110631 - Starting up from bootcd cause kernel panic
Summary: Starting up from bootcd cause kernel panic
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Sparc64 Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-10 18:18 UTC by jeefoo
Modified: 2016-05-19 09:17 UTC (History)
2 users (show)

See Also:
Kernel Version: Linux version 4.1.8-15.1.el6uek.sparc64 (mockbuild@sparc-ol6-builder-01.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4.0.13) (GCC) ) #1 SMP Mon Oct 5 17:48:42 PDT 2015
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description jeefoo 2016-01-10 18:18:47 UTC
Hi,

I tried the newly erleased RHEL6 like linux on a SUN v890 sparc server.
I downloaded image from here: https://oss.oracle.com/linux-sparc/isos/

(In October 2015, ORACLE released a SPARC-sun4v distribucion based on RHEL-6: http://oss.oracle.com/projects/linux-sparc/)

And after booting the cd on my server I got the following error:


Boot device: cdrom  File and args: 
SILO Version 1.4.14 - Rel: 4.0.18.el6
\
Use <TAB> to see valid boot labels or <RETURN> for default action.
Alternatively, type 'halt' to drop back to the OpenBoot prompt.

boot: 
Allocated 64 Megs of memory at 0x40000000 for kernel
Loaded kernel version 4.1.8
Loading initial ramdisk (42887664 bytes at 0xD004000000 phys, 0x40C00000 virt)...
/
PROMLIB: Sun IEEE Boot Prom 'OBP 4.18.11 2006/05/03 07:41'
PROMLIB: Root node compatible: 
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.1.8-15.1.el6uek.sparc64 (mockbuild@sparc-ol6-builder-01.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4.0.13) (GCC) ) #1 SMP Mon Oct 5 17:48:42 PDT 2015
bootconsole [earlyprom0] enabled
ARCH: SUN4U
Ethernet address: 00:14:4f:4a:f7:3a
MM: PAGE_OFFSET is 0xfff0000000000000 (max_phys_bits == 42)
MM: VMALLOC [0x0000000100000000 --> 0x000c000000000000]
MM: VMEMMAP [0x000c000000000000 --> 0x0018000000000000]
Kernel: Using 4 locked TLB entries for main kernel image.
Remapping the kernel... done.
OF stdout device is: /pci@9,700000/ebus@1/rsc-console@1,3083f8
PROM: Built device tree with 314756 bytes of memory.
Top of RAM: 0xd1ffaf6000, Total RAM: 0x7ffae4000
Memory hole size: 827392MB
Allocated 8192 bytes for kernel page tables.
Zone ranges:
  DMA      [mem 0x000000a000000000-0xffffffffffffffff]
  Normal   [mem 0x0000000000000000-0x000000d1ffaf5fff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x000000a000000000-0x000000a1ffffffff]
  node   0: [mem 0x000000b000000000-0x000000b1ffffffff]
  node   0: [mem 0x000000c000000000-0x000000c1ffffffff]
  node   0: [mem 0x000000d000000000-0x000000d1feffdfff]
  node   0: [mem 0x000000d1ff000000-0x000000d1ffad7fff]
  node   0: [mem 0x000000d1ffae8000-0x000000d1ffaf5fff]
Initmem setup node 0 [mem 0x000000a000000000-0x000000d1ffaf5fff]
------------[ cut here ]------------
WARNING: CPU: 7 PID: 0 at mm/memblock.c:512 memblock_add_range+0x44/0x200()
Modules linked in:
CPU: 7 PID: 0 Comm: swapper Not tainted 4.1.8-15.1.el6uek.sparc64 #1
Call Trace:
 [000000000046c3b0] warn_slowpath_common+0x70/0xc0
 [000000000046c41c] warn_slowpath_null+0x1c/0x40
 [000000000058d064] memblock_add_range+0x44/0x200
 [000000000058d254] memblock_reserve+0x34/0x80
 [0000000000e418fc] memblock_virt_alloc_internal+0xf8/0x144
 [0000000000e41a30] memblock_virt_alloc_try_nid_nopanic+0x54/0x64
 [00000000009ac85c] zone_wait_table_init+0xfc/0x120
 [0000000000e5f4cc] init_currently_empty_zone+0xc/0x108
 [0000000000e5fb8c] free_area_init_core+0x3f4/0x450
 [0000000000e5fe98] free_area_init_node+0x2b0/0x2c0
 [0000000000e3cb38] free_area_init_nodes+0x2bc/0x318
 [0000000000e31578] paging_init+0x964/0x980
 [0000000000e2af58] setup_arch+0x2c8/0x2e0
 [0000000000e268b8] start_kernel+0x78/0x43c
 [0000000000e2b1d4] start_early_boot+0x264/0x274
 [00000000009aba38] tlb_fixup_done+0x4c/0x54
---[ end trace dc8fa200cb88537f ]---
Booting Linux...
CPU CAPS: [flush,stbar,swap,muldiv,v9,ultra3,mul32,div32]
CPU CAPS: [v8plus,popc,vis,vis2]
kernel BUG at mm/memblock.c:441!
              \|/ ____ \|/
              "@'/ .. \`@"
              /_| \__/ |_\
                 \__U_/
swapper(0): Kernel bad sw trap 5 [#1]
CPU: 7 PID: 0 Comm: swapper Tainted: G        W       4.1.8-15.1.el6uek.sparc64 #1
task: 0000000000d66d88 ti: 0000000000c58000 task.ti: 0000000000c58000
TSTATE: 0000004480e01600 TPC: 000000000058ca08 TNPC: 000000000058ca0c Y: 00000004    Tainted: G        W      
TPC: <memblock_merge_regions+0xe8/0x100>
g0: 0000000000000002 g1: 0000000000d83778 g2: 0000000000d83778 g3: 000000000000003c
g4: 0000000000d66d88 g5: 0000000000000000 g6: 0000000000c58000 g7: 0000000000000080
o0: 0000000000baa8c8 o1: 00000000000001b9 o2: 0000000000000000 o3: 0000000000f70038
o4: 0000000000001067 o5: 000000d1ffac0000 sp: 0000000000c5b191 ret_pc: 000000000058ca00
RPC: <memblock_merge_regions+0xe0/0x100>
l0: 0000000000000000 l1: 0000000000000000 l2: 0000000000020ce0 l3: 000000000000003b
l4: 0000000000f70024 l5: 0000000000f6f6cd l6: 000000000000000e l7: 0000000000f70008
i0: 0000000000da6818 i1: 0000000000001067 i2: 000000d1ffaf5fc0 i3: 0000000000018003
i4: 0000000000000010 i5: 0000000000000000 i6: 0000000000c5b241 i7: 000000000058d1e0
I7: <memblock_add_range+0x1c0/0x200>
Call Trace:
 [000000000058d1e0] memblock_add_range+0x1c0/0x200
 [000000000058d254] memblock_reserve+0x34/0x80
 [0000000000e418fc] memblock_virt_alloc_internal+0xf8/0x144
 [0000000000e4199c] memblock_virt_alloc_try_nid+0x54/0x94
 [0000000000e26230] setup_command_line+0x28/0xa0
 [0000000000e268d4] start_kernel+0x94/0x43c
 [0000000000e2b1d4] start_early_boot+0x264/0x274
 [00000000009aba38] tlb_fixup_done+0x4c/0x54
 [0000000000000000]           (null)
Disabling lock debugging due to kernel taint
Caller[000000000058d1e0]: memblock_add_range+0x1c0/0x200
Caller[000000000058d254]: memblock_reserve+0x34/0x80
Caller[0000000000e418fc]: memblock_virt_alloc_internal+0xf8/0x144
Caller[0000000000e4199c]: memblock_virt_alloc_try_nid+0x54/0x94
Caller[0000000000e26230]: setup_command_line+0x28/0xa0
Caller[0000000000e268d4]: start_kernel+0x94/0x43c
Caller[0000000000e2b1d4]: start_early_boot+0x264/0x274
Caller[00000000009aba38]: tlb_fixup_done+0x4c/0x54
Caller[0000000000000000]:           (null)
Instruction DUMP: 921021b9  7ffa78c8  901220c8 <91d02005> 30680005  01000000  01000000  01000000  01000000 
Kernel panic - not syncing: Fatal exception
Press Stop-A (L1-A) to return to the boot prom
---[ end Kernel panic - not syncing: Fatal exception


Thank you for any help, 

cheers
Comment 1 Anatoly Pugachev 2016-05-19 09:17:47 UTC
Can you please try with a more recent kernel ? There's was some fix on early boot in arch/sparc tree ( see http://www.spinics.net/lists/sparclinux/msg15659.html ). Or if it just for fun, try debian sparc64 unofficial images. Thanks.

Note You need to log in before you can comment on or make changes to this bug.