Kernel paging fault?

Hi there,

I’ve a tx2 connected to a 4K camera via a tosh bridge. Have had this setup working ok on a difrent carrier board but I seem to be encountering a weird crash that I’m struggling to understand the root cause of.

here’s a few syslog snippets of the fault:

Oct 13 20:23:27 myTx2-Host kernel: page:ffffffbf06b41c00 count:0 mapcount:-16711935 mapping:0000000000000004 index:0x0
Oct 13 20:23:27 myTx2-Host kernel: flags: 0x4004000400000000()
Oct 13 20:23:27 myTx2-Host kernel: page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)
Oct 13 20:23:30 myTx2-Host kernel: ------------[ cut here ]------------
Oct 13 20:23:30 myTx2-Host kernel: kernel BUG at /home/hannaBarbera/Jetson_R32_Kernel_4.9/linux-tegra-4.9/include/linux/mm.h:455!
Oct 13 20:23:30 myTx2-Host kernel: Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
-- Reboot --
Oct 13 20:24:45 myTx2-Host kernel: Booting Linux on physical CPU 0x100

Sep 24 14:09:20 myTx2-Host systemd[1]: dev-mmcblk2p1.device: Job dev-mmcblk2p1.device/start timed out.
Sep 24 14:09:20 myTx2-Host systemd[1]: Timed out waiting for device dev-mmcblk2p1.device.
Sep 24 14:09:20 myTx2-Host systemd[1]: Dependency failed for /media/mySdCard.
Sep 24 14:09:20 myTx2-Host systemd[1]: media-internal\x2dstorage\x2d1.mount: Job media-internal\x2dstorage\x2d1.mount/start failed with result 'dependency'.
Sep 24 14:09:20 myTx2-Host systemd[1]: Startup finished in 3.807s (kernel) + 1min 30.594s (userspace) = 1min 34.402s.
Sep 24 14:09:20 myTx2-Host systemd[1]: dev-mmcblk2p1.device: Job dev-mmcblk2p1.device/start failed with result 'timeout'.
Sep 24 14:09:24 myTx2-Host kernel: [   97.926873] Unable to handle kernel paging request at virtual address 80ff80c100470248
Sep 24 14:09:24 myTx2-Host kernel: [   97.926961] Mem abort info:
Sep 24 14:09:24 myTx2-Host kernel: [   97.926991]   ESR = 0x96000004
Sep 24 14:09:24 myTx2-Host kernel: [   97.927025]   Exception class = DABT (current EL), IL = 32 bits
Sep 24 14:09:24 myTx2-Host kernel: [   97.927077]   SET = 0, FnV = 0
Sep 24 14:09:24 myTx2-Host kernel: [   97.927108]   EA = 0, S1PTW = 0
Sep 24 14:09:24 myTx2-Host kernel: [   97.927139] Data abort info:
Sep 24 14:09:24 myTx2-Host kernel: [   97.927169]   ISV = 0, ISS = 0x00000004
Sep 24 14:09:24 myTx2-Host kernel: [   97.927204]   CM = 0, WnR = 0
Sep 24 14:09:24 myTx2-Host kernel: [   97.927235] [80ff80c100470248] address between user and kernel address ranges
Sep 24 14:09:24 myTx2-Host kernel: [   97.927298] Internal error: Oops: 96000004 [#1] PREEMPT SMP
Sep 24 14:09:24 myTx2-Host kernel: [   97.927348] Modules linked in: 88XXau(O) zram bma400_i2c bma400_core bcmdhd cfg80211 spidev bluedroid_pm ip_tables x_tables
Sep 24 14:09:24 myTx2-Host kernel: [   97.927522] CPU: 5 PID: 17316 Comm: lsblk Tainted: G           O    4.9.140_v0.01.03-g147e705dde7e #243
Sep 24 14:09:24 myTx2-Host kernel: [   97.927597] Hardware name: quill (DT)
Sep 24 14:09:24 myTx2-Host kernel: [   97.927635] task: ffffffc1cd670000 task.stack: ffffffc19cc90000
Sep 24 14:09:24 myTx2-Host kernel: [   97.927694] PC is at __ll_sc_atomic_add+0x4/0x18
Sep 24 14:09:24 myTx2-Host kernel: [   97.927740] LR is at __remove_shared_vm_struct+0x3c/0x88
Sep 24 14:09:24 myTx2-Host kernel: [   97.927788] pc : [<ffffff800846cda4>] lr : [<ffffff8008204ccc>] pstate: 60400045
Sep 24 14:09:24 myTx2-Host kernel: [   97.927849] sp : ffffffc19cc93c80
Sep 24 14:09:24 myTx2-Host kernel: [   97.927881] x29: ffffffc19cc93c80 x28: ffffffc1cd670000 
Sep 24 14:09:24 myTx2-Host kernel: [   97.927940] x27: ffffff8008ff2000 x26: 000000000000005e 
Sep 24 14:09:24 myTx2-Host kernel: [   97.927997] x25: ffffffc1e0d1ce68 x24: 0000000000000000 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928054] x23: 0000000000000000 x22: ffffffc1cc478260 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928110] x21: ffffffc1b1a5e700 x20: ffffffc1b434f580 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928166] x19: ffffffc1cc478260 x18: 00000000000005c3 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928222] x17: ffffffff00000001 x16: 0000000000000000 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928278] x15: 0000007fa4ebfe08 x14: 0000007fa4ecd308 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928334] x13: 0000007fa517c400 x12: 0000007fa517a060 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928390] x11: 0000000000000000 x10: 0101010101010101 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928446] x9 : 0000007fa5179b60 x8 : 000000000000005e 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928502] x7 : 0000008002377000 x6 : 00000041ed7a4000 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928558] x5 : 00000041ed7a4000 x4 : 00000000ffffffd6 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928614] x3 : 0000000000000000 x2 : 80ff80c1004700e8 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928670] x1 : 80ff80c100470248 x0 : 0000000000000001 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928726] 
Sep 24 14:09:24 myTx2-Host kernel: [   97.928747] Process lsblk (pid: 17316, stack limit = 0xffffffc19cc90000)
Sep 24 14:09:24 myTx2-Host kernel: [   97.928803] Call trace:
Sep 24 14:09:24 myTx2-Host kernel: [   97.928834] [<ffffff800846cda4>] __ll_sc_atomic_add+0x4/0x18
Sep 24 14:09:24 myTx2-Host kernel: [   97.928885] [<ffffff8008205704>] unlink_file_vma+0x44/0x60
Sep 24 14:09:24 myTx2-Host kernel: [   97.928937] [<ffffff80081fce68>] free_pgtables+0x48/0x100
Sep 24 14:09:24 myTx2-Host kernel: [   97.928986] [<ffffff800820750c>] exit_mmap+0xac/0x118
Sep 24 14:09:24 myTx2-Host kernel: [   97.929034] [<ffffff80080af968>] mmput+0x60/0x130
Sep 24 14:09:24 myTx2-Host kernel: [   97.929078] [<ffffff80080b8a2c>] do_exit+0x26c/0xa08
Sep 24 14:09:24 myTx2-Host kernel: [   97.929124] [<ffffff80080b9258>] do_group_exit+0x40/0xa8
Sep 24 14:09:24 myTx2-Host kernel: [   97.929172] [<ffffff80080b92e0>] __wake_up_parent+0x0/0x40
Sep 24 14:09:24 myTx2-Host kernel: [   97.929222] [<ffffff80080838c0>] el0_svc_naked+0x34/0x38
Sep 24 14:09:24 myTx2-Host kernel: [   97.929272] ---[ end trace 976c59c3ce2640ad ]---
Sep 24 14:09:24 myTx2-Host kernel: [   97.949052] Fixing recursive fault but reboot is needed!

Sep 25 00:33:06 myTx2-Host kernel: [  269.620145] Unable to handle kernel paging request at virtual address 74ff74c100d300c0
Sep 25 00:33:06 myTx2-Host kernel: [  269.620238] Mem abort info:
Sep 25 00:33:06 myTx2-Host kernel: [  269.620268]   ESR = 0x96000004
Sep 25 00:33:06 myTx2-Host kernel: [  269.620302]   Exception class = DABT (current EL), IL = 32 bits
Sep 25 00:33:06 myTx2-Host kernel: [  269.620352]   SET = 0, FnV = 0
Sep 25 00:33:06 myTx2-Host kernel: [  269.620382]   EA = 0, S1PTW = 0
Sep 25 00:33:06 myTx2-Host kernel: [  269.620412] Data abort info:
Sep 25 00:33:06 myTx2-Host kernel: [  269.620441]   ISV = 0, ISS = 0x00000004
Sep 25 00:33:06 myTx2-Host kernel: [  269.620475]   CM = 0, WnR = 0
Sep 25 00:33:06 myTx2-Host kernel: [  269.620506] [74ff74c100d300c0] address between user and kernel address ranges
Sep 25 00:33:06 myTx2-Host kernel: [  269.620567] Internal error: Oops: 96000004 [#1] PREEMPT SMP
Sep 25 00:33:06 myTx2-Host kernel: [  269.620616] Modules linked in: 88XXau(O) zram bcmdhd bma400_i2c bma400_core cfg80211 spidev bluedroid_pm ip_tables x_tables
Sep 25 00:33:06 myTx2-Host kernel: [  269.620780] CPU: 4 PID: 6845 Comm: lsblk Tainted: G           O    4.9.140_v0.01.03-g147e705dde7e #243
Sep 25 00:33:06 myTx2-Host kernel: [  269.620853] Hardware name: quill (DT)
Sep 25 00:33:06 myTx2-Host kernel: [  269.620889] task: ffffffc1d52b0e00 task.stack: ffffffc1b0668000
Sep 25 00:33:06 myTx2-Host kernel: [  269.620947] PC is at unmap_page_range+0x5c/0x290
Sep 25 00:33:06 myTx2-Host kernel: [  269.620991] LR is at unmap_single_vma+0x7c/0x90
Sep 25 00:33:06 myTx2-Host kernel: [  269.621032] pc : [<ffffff80081feadc>] lr : [<ffffff80081fed8c>] pstate: 80400045
Sep 25 00:33:06 myTx2-Host kernel: [  269.621091] sp : ffffffc1b066bc30
Sep 25 00:33:06 myTx2-Host kernel: [  269.621123] x29: ffffffc1b066bc30 x28: ffffffc1d52b0e00 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621179] x27: ffffff8008ff2000 x26: 0000007f8afd1000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621235] x25: ffffffc1dfd374e8 x24: 0000007f8afe0000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621291] x23: 0000000000000000 x22: ffffffc1b066bd48 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621346] x21: 00000000000001fe x20: ffffffc1b071b840 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621400] x19: 0000000000000000 x18: 00000000000005c3 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621455] x17: 0000000000000214 x16: 0000000000000000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621509] x15: 0000007f8b033e08 x14: 0000007f8b041308 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621564] x13: 0000007f8b2f0400 x12: 0000007f8b2ee060 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621618] x11: 0000000000000000 x10: 0101010101010101 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621673] x9 : 0000007f8b2edb60 x8 : 000000000000005e 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621728] x7 : 0000007fcafba000 x6 : 00000041ed78b000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621782] x5 : 0000000000000000 x4 : 0000000000000000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621836] x3 : 0000007f8afe0000 x2 : 0000007f8afd1000 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621891] x1 : 0000007f8afdffff x0 : 74ff74c100d30080 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621945] 
Sep 25 00:33:06 myTx2-Host kernel: [  269.621966] Process lsblk (pid: 6845, stack limit = 0xffffffc1b0668000)
Sep 25 00:33:06 myTx2-Host kernel: [  269.622020] Call trace:
Sep 25 00:33:06 myTx2-Host kernel: [  269.622050] [<ffffff80081feadc>] unmap_page_range+0x5c/0x290
Sep 25 00:33:06 myTx2-Host kernel: [  269.622100] [<ffffff80081fed8c>] unmap_single_vma+0x7c/0x90
Sep 25 00:33:06 myTx2-Host kernel: [  269.622149] [<ffffff80081ff0a8>] unmap_vmas+0x70/0xe0
Sep 25 00:33:06 myTx2-Host kernel: [  269.622195] [<ffffff80082074f8>] exit_mmap+0x98/0x118
Sep 25 00:33:06 myTx2-Host kernel: [  269.622241] [<ffffff80080af968>] mmput+0x60/0x130
Sep 25 00:33:06 myTx2-Host kernel: [  269.622284] [<ffffff80080b8a2c>] do_exit+0x26c/0xa08
Sep 25 00:33:06 myTx2-Host kernel: [  269.622330] [<ffffff80080b9258>] do_group_exit+0x40/0xa8
Sep 25 00:33:06 myTx2-Host kernel: [  269.622377] [<ffffff80080b92e0>] __wake_up_parent+0x0/0x40
Sep 25 00:33:06 myTx2-Host kernel: [  269.622426] [<ffffff80080838c0>] el0_svc_naked+0x34/0x38
Sep 25 00:33:06 myTx2-Host kernel: [  269.622474] ---[ end trace 6f84b39c808e4d39 ]---
Sep 25 00:33:06 myTx2-Host kernel: [  269.631085] Fixing recursive fault but reboot is needed!
Sep 25 00:33:24 myTx2-Host kernel: [  287.273637] Unable to handle kernel paging request at virtual address ff00c100f60080
Sep 25 00:33:24 myTx2-Host kernel: [  287.273902] Mem abort info:
Sep 25 00:33:24 myTx2-Host kernel: [  287.274007]   ESR = 0x96000004
Sep 25 00:33:24 myTx2-Host kernel: [  287.274118]   Exception class = DABT (current EL), IL = 32 bits
Sep 25 00:33:24 myTx2-Host kernel: [  287.274295]   SET = 0, FnV = 0
Sep 25 00:33:24 myTx2-Host kernel: [  287.274400]   EA = 0, S1PTW = 0
Sep 25 00:33:24 myTx2-Host kernel: [  287.274504] Data abort info:
Sep 25 00:33:24 myTx2-Host kernel: [  287.274588]   ISV = 0, ISS = 0x00000004
Sep 25 00:33:24 myTx2-Host kernel: [  287.274673]   CM = 0, WnR = 0
Sep 25 00:33:24 myTx2-Host kernel: [  287.274745] [00ff00c100f60080] address between user and kernel address ranges
Sep 25 00:33:24 myTx2-Host kernel: [  287.274894] Internal error: Oops: 96000004 [#2] PREEMPT SMP
Sep 25 00:33:24 myTx2-Host kernel: [  287.275012] Modules linked in: 88XXau(O) zram bcmdhd bma400_i2c bma400_core cfg80211 spidev bluedroid_pm ip_tables x_tables
Sep 25 00:33:24 myTx2-Host kernel: [  287.275389] CPU: 0 PID: 6873 Comm: free Tainted: G      D    O    4.9.140_v0.01.03-g147e705dde7e #243
Sep 25 00:33:24 myTx2-Host kernel: [  287.275571] Hardware name: quill (DT)
Sep 25 00:33:24 myTx2-Host kernel: [  287.275658] task: ffffffc1dc3ae200 task.stack: ffffffc1dcae0000
Sep 25 00:33:24 myTx2-Host kernel: [  287.275792] PC is at __rb_insert_augmented+0x2c/0x220
Sep 25 00:33:24 myTx2-Host kernel: [  287.275907] LR is at vma_interval_tree_insert+0x94/0xa0
Sep 25 00:33:24 myTx2-Host kernel: [  287.276020] pc : [<ffffff8008477bfc>] lr : [<ffffff80081f757c>] pstate: 604001c5
Sep 25 00:33:24 myTx2-Host kernel: [  287.276166] sp : ffffffc1dcae3af0
Sep 25 00:33:24 myTx2-Host kernel: [  287.276243] x29: ffffffc1dcae3af0 x28: ffffffc1dc477480 
Sep 25 00:33:24 myTx2-Host kernel: [  287.276381] x27: 0000007f85dab000 x26: ffffffc1e4bb6700 
Sep 25 00:33:24 myTx2-Host kernel: [  287.276516] x25: 0000000000000000 x24: ffffffc1e4bb66e0 
Sep 25 00:33:24 myTx2-Host kernel: [  287.276649] x23: 0000000000000000 x22: ffffffc1e4bb6700 
Sep 25 00:33:24 myTx2-Host kernel: [  287.276781] x21: ffffff80081f7298 x20: ffffffc1e4bb6700 
Sep 25 00:33:24 myTx2-Host kernel: [  287.276913] x19: 00ff00c100f60078 x18: 000000000004098c 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277044] x17: ffffffff00000001 x16: 0000000000000000 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277175] x15: 7fffffffffffffff x14: ffffffc1a11d06a8 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277306] x13: 000000000000002b x12: 0000000000000000 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277437] x11: 0000000000000000 x10: ffffffc1a11d0948 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277568] x9 : 0000000000000075 x8 : 0000000000000026 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277699] x7 : ffffffc1a11d0688 x6 : 0000000000000010 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277830] x5 : ffffffc1a11d0948 x4 : ffffffc1a11d0948 
Sep 25 00:33:24 myTx2-Host kernel: [  287.277960] x3 : ffffffc1a11d0688 x2 : ffffffc1a84df318 
Sep 25 00:33:24 myTx2-Host kernel: [  287.278092] x1 : ffffffc1b071b898 x0 : ffffffc1a11d0948 
Sep 25 00:33:24 myTx2-Host kernel: [  287.278222] 
Sep 25 00:33:24 myTx2-Host kernel: [  287.278272] Process free (pid: 6873, stack limit = 0xffffffc1dcae0000)
Sep 25 00:33:24 myTx2-Host kernel: [  287.278404] Call trace:
Sep 25 00:33:24 myTx2-Host kernel: [  287.278475] [<ffffff8008477bfc>] __rb_insert_augmented+0x2c/0x220
Sep 25 00:33:24 myTx2-Host kernel: [  287.278606] [<ffffff80081f757c>] vma_interval_tree_insert+0x94/0xa0
Sep 25 00:33:24 myTx2-Host kernel: [  287.278740] [<ffffff8008204d7c>] __vma_link_file+0x64/0x90
Sep 25 00:33:24 myTx2-Host kernel: [  287.278858] [<ffffff8008205a18>] __vma_adjust+0x168/0x7d0
Sep 25 00:33:24 myTx2-Host kernel: [  287.278973] [<ffffff800820618c>] __split_vma.isra.4+0x10c/0x1c0
Sep 25 00:33:24 myTx2-Host kernel: [  287.279099] [<ffffff80082063c8>] do_munmap+0x188/0x3a8
Sep 25 00:33:24 myTx2-Host kernel: [  287.279211] [<ffffff800820863c>] mmap_region+0x1ac/0x560
Sep 25 00:33:24 myTx2-Host kernel: [  287.279324] [<ffffff8008208bf0>] do_mmap+0x200/0x3c0
Sep 25 00:33:24 myTx2-Host kernel: [  287.279436] [<ffffff80081e7d94>] vm_mmap_pgoff+0xac/0xd0
Sep 25 00:33:24 myTx2-Host kernel: [  287.279549] [<ffffff8008206ae0>] SyS_mmap_pgoff+0x78/0x110
Sep 25 00:33:24 myTx2-Host kernel: [  287.279670] [<ffffff800808b710>] sys_mmap+0x58/0x78
Sep 25 00:33:24 myTx2-Host kernel: [  287.279778] [<ffffff80080838c0>] el0_svc_naked+0x34/0x38
Sep 25 00:33:24 myTx2-Host kernel: [  287.279895] ---[ end trace 6f84b39c808e4d3a ]---
Sep 25 00:33:24 myTx2-Host kernel: [  287.299910] note: free[6873] exited with preempt_count 1

Any ideas would be appreciated, thanks.

hello hannaBarbera,

there’s kernel panic reported from device tree, assume you’re having invalid access.
please also refer to Sensor Software Driver Programming Guide and review your device tree property settings.
thanks

Thanks Jerry, please excuse the amateurish question, but which line from the snippet points you towards the device-tree?