Hi everyone,

I receive a kernel panic when rebooting my am335x based board.
The system is running weston and an qt-kiosk-browser (from meta-qt5) instance. 
Both are running as systemd services.
On reboot I receive a kernel panic (see below).

The kernel panic can be prevented if the qt-kiosk-browser service depends on 
rc-pvr.service and adds a "sleep 5" as ExecStopPost.
I.e. the rc.pvr.service is stopped 5 seconds after qt-kiosk-browser has been 
stopped.
However the sleep feels like a hack.
Anybody has an idea what could be the root cause?

The build is based upon the latest kirkstone of meta-ti, meta-arago.
libgles and weston recipes are taken from latest dunfell as the sgx of the 
am335x is not supported in the latest kirkstone.

BRANCH = "ti-img-sgx/dunfell/${PV}"

SRC_URI = 
"git://git.ti.com/git/graphics/omap5-sgx-ddk-um-linux.git;protocol=https;branch=${BRANCH}"
SRCREV = "742cf38aba13e1ba1a910cf1f036a1a212c263b6"


The  kernel panic I receive if the sleep 5 is not in place is below.

Any ideas would be appreciated.

Matthias

[ 6530.070411] PVRLinuxFenceDeInit: 4 fences leaked
[  OK  ] Stopped User Manager for UID 1201.
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped rc.pvr.service.
         Stopping User Runtime Directory /run/user/0...
         Stopping User Runtime Directory /run/user/1201...
[ 6530.705184] 8<--- cut here ---
[ 6530.712786] Unable to handle kernel paging request at virtual address 
bf1c40c4
[ 6530.748573] pgd = e1827896
[ 6530.768238] [bf1c40c4] *pgd=82b5b811, *pte=00000000, *ppte=00000000
[ 6530.778853] Internal error: Oops: 7 [#1] PREEMPT ARM
[ 6530.784013] Modules linked in: cfg80211 bluetooth ecdh_generic ecc qcserial 
usb_wwan qmi_wwan cdc_wdm usbserial usbnet omap_aes_driver omap_sham 
omap_crypto crypto_engine libaes pm33xx ti_emif_sram musb_dsps musb_hdrc 
udc_core usbcore phy_am335x phy_generic usb_common omap_wdt rtc_omap 
wkup_m3_ipc phy_am335x_control wkup_m3_rproc rtc_tps65910 edt_ft5x06 
snd_soc_tlv320aic3x sch_fq_codel cryptodev(O) [last unloaded: pvrsrvkm]
[ 6530.822692] CPU: 0 PID: 1 Comm: systemd Tainted: G           O      
5.10.168-g991c5ce91e #1
[ 6530.831253] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 6530.837538] PC is at dma_fence_release+0xd0/0x124
[ 6530.842368] LR is at dma_resv_fini+0xe0/0xf0
[ 6530.846744] pc : [<c06ec9f4>]    lr : [<c06ee8cc>]    psr: 00000113
[ 6530.853166] sp : c186fe70  ip : c186d9f4  fp : c100404c
[ 6530.858524] r10: 00000000  r9 : 5ac3c35a  r8 : c182e310
[ 6530.863891] r7 : c226f6e8  r6 : c3a72c88  r5 : c3a72c80  r4 : c3a72ca4
[ 6530.870578] r3 : bf1c40ac  r2 : 00000003  r1 : 00000000  r0 : c3a72ca4
[ 6530.877272] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[ 6530.884585] Control: 10c5387d  Table: 829d4019  DAC: 00000051
[ 6530.890489] Process systemd (pid: 1, stack limit = 0x04818d15)
[ 6530.896469] Stack: (0xc186fe70 to 0xc1870000)
[ 6530.900946] fe60:                                     00000000 c02704fc 
c5235ec0 f2179000
[ 6530.909328] fe80: c5235ec0 c01138f8 c2801500 c2e18b9c 00000000 c25a7e10 
c226f6e8 c182e310
[ 6530.917711] fea0: 5ac3c35a c06ee8cc c2e18b00 00000000 c25a7e10 c063d924 
c2e18b00 c066f7d4
[ 6530.926093] fec0: 00000004 c017c9fc c2808000 c064e108 c3879080 c06eb1c4 
c226f6e8 c02a0310
[ 6530.934500] fee0: c34ea3c0 00080005 c25a7e10 c0287344 00000000 c25a7e10 
00000000 c186e000
[ 6530.942885] ff00: c186d640 c3663cc0 c186d9f4 c186e000 c186d640 c108e4c0 
5ac3c35a c014824c
[ 6530.954518] ff20: c186e000 c186ffb0 c01002c4 fffffe30 c01002c4 c0109bf8 
00000000 00000000
[ 6530.966169] ff40: 00000000 1e3a4e69 64cb9b0b 00000002 00000004 0000007e 
c186ff78 c01002c4
[ 6530.977823] ff60: c186e000 000000fb 000e62e4 c02da4bc 00000000 c186e000 
c2fdec00 00000000
[ 6530.989462] ff80: c1839b40 1e3a4e69 c2fdec00 0000007e b6f7cda0 00000000 
00000006 c01002c4
[ 6531.001100] ffa0: c186e000 00000006 000e62e4 c01000cc 00000000 b6f7c8a4 
00000000 00000000
[ 6531.012751] ffc0: 0000007e b6f7cda0 00000000 00000006 0025b1e0 000e4377 
000e6620 000e62e4
[ 6531.024357] ffe0: 00000006 bedd6d88 b6c20ef5 b6ba1ae6 800c0030 0000007e 
00000000 00000000
[ 6531.035902] [<c06ec9f4>] (dma_fence_release) from [<c06ee8cc>] 
(dma_resv_fini+0xe0/0xf0)
[ 6531.047335] [<c06ee8cc>] (dma_resv_fini) from [<c063d924>] 
(drm_gem_object_release+0x2c/0x5c)
[ 6531.059172] [<c063d924>] (drm_gem_object_release) from [<c066f7d4>] 
(drm_gem_cma_free_object+0x40/0x7c)
[ 6531.074954] [<c066f7d4>] (drm_gem_cma_free_object) from [<c064e108>] 
(drm_gem_dmabuf_release+0x4c/0x64)
[ 6531.090885] [<c064e108>] (drm_gem_dmabuf_release) from [<c06eb1c4>] 
(dma_buf_release+0x44/0xa8)
[ 6531.103099] [<c06eb1c4>] (dma_buf_release) from [<c02a0310>] 
(__dentry_kill+0x134/0x224)
[ 6531.114736] [<c02a0310>] (__dentry_kill) from [<c0287344>] 
(__fput+0xc0/0x26c)
[ 6531.125494] [<c0287344>] (__fput) from [<c014824c>] (task_work_run+0x94/0xd4)
[ 6531.136199] [<c014824c>] (task_work_run) from [<c0109bf8>] 
(do_work_pending+0x56c/0x58c)
[ 6531.147916] [<c0109bf8>] (do_work_pending) from [<c01000cc>] 
(slow_work_pending+0xc/0x20)
[ 6531.159789] Exception stack(0xc186ffb0 to 0xc186fff8)
[ 6531.168482] ffa0:                                     00000000 b6f7c8a4 
00000000 00000000
[ 6531.180400] ffc0: 0000007e b6f7cda0 00000000 00000006 0025b1e0 000e4377 
000e6620 000e62e4
[ 6531.192332] ffe0: 00000006 bedd6d88 b6c20ef5 b6ba1ae6 800c0030 0000007e
[ 6531.202682] Code: e5873004 e3530000 0a000010 e5143020 (e5933018)
[ 6531.241953] ---[ end trace 2ee20c6f470eae8d ]---
[ 6531.251011] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0000000b
[ 6531.262502] ---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0000000b ]---

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16869): 
https://lists.yoctoproject.org/g/meta-ti/message/16869
Mute This Topic: https://lists.yoctoproject.org/mt/100524582/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to