Wind River Support Network

HomeDefectsLINCD-141
Fixed

LINCD-141 : intel-x86-64: Capture kernel can not boot up with call trace under kdump sometimes

Created: Jul 30, 2019    Updated: Jun 23, 2020
Resolved Date: Jun 23, 2020
Previous ID: LIN1019-1983
Found In Version: 10.20.3.0
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

build with feature/kexec, feature/kdump


CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.3.0-rc1-yoctodev-standard #1
Hardware name: Intel Corporation NUC7i5DNKE/NUC7i5DNB, BIOS DNKBLi5v.86A.0044.2018.0528.1719 05/28/2018
RIP: 0010:iommu_need_mapping+0x2d/0xd0
Code: 00 00 48 8b 87 68 02 00 00 48 83 f8 ff 74 60 48 8d 50 ff 41 b8 01 00 00 00 48 83 fa fd 76 04 44 89 c0 c3 48 8b 0d db d0 41 01 <48> 39 48 58 75 ef 55 48 89 e5 41 54 49 89 fc 53 48 8b 87 28 02 00
RSP: 0000:ffffaadfc0037a40 EFLAGS: 00010246
RAX: fffffffffffffffe RBX: 0000000000000000 RCX: ffff8f12ccf78000
RDX: fffffffffffffffd RSI: 0000000000016500 RDI: ffff8f12ccf280b0
RBP: ffffaadfc0037a78 R08: 0000000000000001 R09: ffffffffffffffff
R10: ffff8f12cdb98380 R11: 0000000000000000 R12: ffff8f12ccf280b0
R13: 0000000000016500 R14: 0000000000000cc0 R15: ffffaadfc0037ad8
FS:  0000000000000000(0000) GS:ffff8f12e1000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000056 CR3: 000000002360a001 CR4: 00000000003606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ? intel_alloc_coherent+0x2b/0x180
 dma_alloc_attrs+0x4d/0x60
 dmam_alloc_attrs+0x62/0xc0
 ahci_port_start+0xcb/0x1f0
 ata_host_start.part.0+0xe3/0x1b0
 ? ahci_handle_port_intr+0xb0/0xb0
 ata_host_activate+0xef/0x140
 ahci_host_activate+0x144/0x150
 ahci_init_one+0x85a/0xa6b
 local_pci_probe+0x48/0x80
 pci_device_probe+0x104/0x1c0
 really_probe+0xf6/0x290
 driver_probe_device+0x56/0xd0
 device_driver_attach+0x5d/0x70
 __driver_attach+0x51/0xc0
 ? device_driver_attach+0x70/0x70
 bus_for_each_dev+0x7c/0xc0
 ? kmem_cache_alloc_trace+0x156/0x2b0
 driver_attach+0x1e/0x20
 bus_add_driver+0x176/0x1c0
 driver_register+0x74/0xc0
 ? ata_sff_init+0x31/0x31
 __pci_register_driver+0x5a/0x60
 ahci_pci_driver_init+0x1e/0x20
 do_one_initcall+0x53/0x21a
 kernel_init_freeable+0x1fc/0x291
 ? rest_init+0xcc/0xcc
 kernel_init+0xe/0x104
 ret_from_fork+0x35/0x40
Modules linked in:
CR2: 0000000000000056
---[ end trace 726a6b87519d277f ]---
RIP: 0010:iommu_need_mapping+0x2d/0xd0
Code: 00 00 48 8b 87 68 02 00 00 48 83 f8 ff 74 60 48 8d 50 ff 41 b8 01 00 00 00 48 83 fa fd 76 04 44 89 c0 c3 48 8b 0d db d0 41 01 <48> 39 48 58 75 ef 55 48 89 e5 41 54 49 89 fc 53 48 8b 87 28 02 00
RSP: 0000:ffffaadfc0037a40 EFLAGS: 00010246
RAX: fffffffffffffffe RBX: 0000000000000000 RCX: ffff8f12ccf78000
RDX: fffffffffffffffd RSI: 0000000000016500 RDI: ffff8f12ccf280b0
RBP: ffffaadfc0037a78 R08: 0000000000000001 R09: ffffffffffffffff
R10: ffff8f12cdb98380 R11: 0000000000000000 R12: ffff8f12ccf280b0
R13: 0000000000016500 R14: 0000000000000cc0 R15: ffffaadfc0037ad8
FS:  0000000000000000(0000) GS:ffff8f12e1000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000056 CR3: 000000002360a001 CR4: 00000000003606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:38
in_atomic(): 0, irqs_disabled(): 1, pid: 1, name: swapper/0
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G      D           5.3.0-rc1-yoctodev-standard #1
Hardware name: Intel Corporation NUC7i5DNKE/NUC7i5DNB, BIOS DNKBLi5v.86A.0044.2018.0528.1719 05/28/2018
Call Trace:
 dump_stack+0x4d/0x6a
 ___might_sleep.cold+0x80/0x91
 __might_sleep+0x4b/0x80
 exit_signals+0x21/0x190
 do_exit+0xc0/0xb10
 ? kernel_init_freeable+0x1fc/0x291
 rewind_stack_do_exit+0x17/0x20
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Kernel Offset: 0x2d800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---
logWrite/*T*//*T*/logWrite/*tc*//*tc*/

Full logs:
http://pek-lpgtest3.wrs.com/lpg-build/cdc/publiclog/WRLinuxCDNext/lx10.19---S10/Week3/GIT_20190727/BSP/intel-x86-64_standard_glibc-std/NUC7i5DNK1E_OE_systemd/kdump_smp_up_systemd/target_28554.platform_B1E1R0_20190726_234530.log

Reference right log:
http://pek-lpgtest3.wrs.com/lpg-build/cdc/publiclog/WRLinuxCDNext/lx10.19---S10/Week3/GIT_20190729/BSP/intel-x86-64_standard_glibc-std/NUC7i5DNK1E_OE_systemd_768M@64M/kdump_smp_up_systemd/kdump_smp_up_systemd-768M@64M.log

Steps to Reproduce

build with feature/kexec, feature/kdump
Live chat
Online