IPCF kernel panic

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPCF kernel panic

922 Views
Quentin2022
Contributor III

Hi NXP:

hardware:s32g399

ipcf branch:bsp32.0

I downloaded the ipcf code from source codeaurora.Then I built the code with reference to readnme.but when i   insmod ipc-shm-sample.ko,then there was the kernel panic.

root@s32g399ardb3:~# insmod ipc-shm-dev.ko
root@s32g399ardb3:~# insmod ipc-shm-sample.ko
[ 1238.737196] SError Interrupt on CPU2, code 0xbf000002 -- SError
[ 1238.737203] CPU: 2 PID: 419 Comm: insmod Tainted: G O 5.10.90-rt60 #5
[ 1238.737210] Hardware name: Freescale S32G399A (DT)
[ 1238.737213] pstate: 40000005 (nZcv daif -PAN -UAO -TCO BTYPE=--)
[ 1238.737219] pc : ipc_shm_init+0x408/0x860 [ipc_shm_dev]
[ 1238.737237] lr : ipc_shm_init+0x7f4/0x860 [ipc_shm_dev]
[ 1238.737247] sp : ffffffc01412b890
[ 1238.737250] x29: ffffffc01412b890 x28: ffffffc0088f7380
[ 1238.737258] x27: 0000000000000100 x26: ffffffc0088ff080
[ 1238.737264] x25: ffffffc0100c8620 x24: 000000000000002f
[ 1238.737271] x23: ffffffc0088f7388 x22: ffffffc01412ba50
[ 1238.737277] x21: 0000000000000000 x20: ffffffc01412ba10
[ 1238.737284] x19: ffffffc0088f5108 x18: ffffffc010ca83f0
[ 1238.737293] x17: 0000000000000001 x16: 0000000034100000
[ 1238.737299] x15: 0000000000000050 x14: ffffffffffffffff
[ 1238.737304] x13: ffffffc010d3b051 x12: fffffffffffe6967
[ 1238.737311] x11: ffffffc010ca8408 x10: ffffffc010cb0c90
[ 1238.737317] x9 : ffffffc01412b890 x8 : 756f635f78745f6c
[ 1238.737324] x7 : 61636f6c2a2a2a2a x6 : 00000000fffff98d
[ 1238.737331] x5 : ffffff885f866888 x4 : 0000000000000003
[ 1238.737337] x3 : 0000000000000027 x2 : 7858ea17e0618f00
[ 1238.737344] x1 : 0000000000000000 x0 : 0000000000000001
[ 1238.737350] Kernel panic - not syncing:
[ 1238.737353] Asynchronous SError Interrupt
[ 1239.737466] SMP: stopping secondary CPUs
[ 1239.881750] Kernel Offset: disabled
[ 1239.885216] CPU features: 0x0040022,2000200c
[ 1239.889469] Memory Limit: none
[ 1239.892513] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---

0 Kudos
5 Replies

897 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We assume you are trying to run the IPCF example provided from NXP. Have you done the u-boot configurations explained in the "description.txt" provided in the example?

Please, let us know.

0 Kudos

894 Views
Quentin2022
Contributor III

Hi,

The uboot is not configurations .

I have a question, do I have to start M core to run sample on linux? I just want to see if I can run on linux, I don't care if I can communicate with M core.

 

Tags (1)
0 Kudos

892 Views
Quentin2022
Contributor III

Hi,

I disable dcach and cleare sram.then i can run sample in linux.

very thanks.

Tags (1)
0 Kudos

886 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Good to know you got it working.

Regards

0 Kudos

904 Views
Quentin2022
Contributor III

I tried to use ipcf_shem_us, but it also failed, and kernel panic occurred. Also used is a branch of bsp32, which is version-dependent or other dependent. I refer to readme build.

root@s32g399ardb3:/lib/modules/5.10.90-rt60/extra# ./ipc-shm-sample.elf
[ 819.361925] ipc-shm-uio 40198000.mscm: GIC Rx IRQ = 26
[ 819.362209] ipc-shm-uio 40198000.mscm: device ready
[ 819.363185] SError Interrupt on CPU3, code 0xbf000002 -- SError
[ 819.363195] CPU: 3 PID: 406 Comm: ipc-shm-sample. Tainted: G O 5.10.90-rt60 #7
[ 819.363201] Hardware name: Freescale S32G399A (DT)
[ 819.363205] pstate: 60000000 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 819.363211] pc : 00000000004028ec
[ 819.363213] lr : 0000000000402850
[ 819.363216] sp : 0000007fd6e89e60
[ 819.363218] x29: 0000007fd6e89e60 x28: 0000000000000000
[ 819.363229] x27: 0000000000000000 x26: 0000000000000000
[ 819.363235] x25: 0000000000000000 x24: 0000000000000000
[ 819.363241] x23: 0000000000000000 x22: 0000000000000000
[ 819.363250] x21: 00000000004011d0 x20: 0000000000000000
[ 819.363256] x19: 00000000004046f8 x18: 0000000000000080
[ 819.363262] x17: 0000007fba31a2c0 x16: 0000007fba3faf18
[ 819.363268] x15: 0000000000000000 x14: 0000000000000120
[ 819.363275] x13: 0000007fba3b7108 x12: 0000007fba048150
[ 819.363281] x11: 00000000003d0f00 x10: 0000007fba3d7e80
[ 819.363287] x9 : 000000003c0da470 x8 : 0000000000000087
[ 819.363293] x7 : 0000000000000000 x6 : 0000007fba048220
[ 819.363299] x5 : 0000007fba0488e0 x4 : 00000000004161c8
[ 819.363305] x3 : 0000007fba049008 x2 : 0000000000000000
[ 819.363311] x1 : 0000000000000000 x0 : 0000000000000048
[ 819.363319] Kernel panic - not syncing:
[ 819.363321] Asynchronous SError Interrupt
[ 820.363445] SMP: stopping secondary CPUs
[ 820.499222] Kernel Offset: disabled
[ 820.502688] CPU features: 0x0040022,2000200c
[ 820.506940] Memory Limit: none
[ 820.509984] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---

0 Kudos