llce-core debugfs issue based on BSP38 release on S32G RDB3

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

llce-core debugfs issue based on BSP38 release on S32G RDB3

Jump to solution
633 Views
hittzt
Senior Contributor I

Hi,

 

I tested llce related features recectly based on SDK BSP38 release, but the following issue happened when I followed section "12.3.4.1 Fault detection counters" of the BSP38 user manual for S32G3 platforms:

root@s32g399ardb3:~# ls /sys/kernel/debug/llce_core/core1_ts
/sys/kernel/debug/llce_core/core1_ts
root@s32g399ardb3:~# cat /sys/kernel/debug/llce_core/core1_ts
[ 8.904090] s32cc-dwmac 4033c000.ethernet eth0: PHY [stmmac-0:01] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL)
[ 8.905089] s32cc-dwmac 4033c000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 8.907652] s32cc-dwmac 4033c000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-1
[ 8.910500] s32cc-dwmac 4033c000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-2
[ 8.913133] s32cc-dwmac 4033c000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-3
[ 8.915952] s32cc-dwmac 4033c000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-4
[ 8.925449] s32cc-dwmac 4033c000.ethernet eth0: Enabling Safety Features
[ 8.925551] s32cc-dwmac 4033c000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 8.925832] s32cc-dwmac 4033c000.ethernet eth0: registered PTP clock
[ 8.926250] s32cc-dwmac 4033c000.ethernet eth0: FPE workqueue start
[ 8.926259] s32cc-dwmac 4033c000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 8.929065] 8021q: adding VLAN 0 to HW filter on device eth0
[ 26.275118] Unable to handle kernel paging request at virtual address ffffffc00bb50870
[ 26.371260] Mem abort info:
[ 26.374038] ESR = 0x0000000096000007
[ 26.377763] EC = 0x25: DABT (current EL), IL = 32 bits
[ 26.383060] SET = 0, FnV = 0
[ 26.386094] EA = 0, S1PTW = 0
[ 26.389204] FSC = 0x07: level 3 translation fault
[ 26.394076] Data abort info:
[ 26.396930] ISV = 0, ISS = 0x00000007
[ 26.400765] CM = 0, WnR = 0
[ 26.403711] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000080bc4000
[ 26.410394] [ffffffc00bb50870] pgd=10000008dffff003, p4d=10000008dffff003, pud=10000008dffff003, pmd=1000000880964003, pte=0000000000000000
[ 26.422895] Internal error: Oops: 96000007 [#1] PREEMPT SMP
[ 26.428439] Modules linked in: sja1110(O) llce_can llce_mailbox llce_core
[ 26.435211] CPU: 5 PID: 332 Comm: cat Tainted: G O 5.15.119-rt65+ge18f05316cd9 #1
[ 26.443977] Hardware name: NXP S32G399A-RDB3 (DT)
[ 26.448664] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 26.455606] pc : debugfs_readl_get+0x4/0x30 [llce_core]
[ 26.460814] lr : simple_attr_read+0x6c/0x11c
[ 26.465068] sp : ffffffc00beb3d00
[ 26.468366] x29: ffffffc00beb3d00 x28: ffffff8801509040 x27: 0000000000000000
[ 26.475483] x26: 0000000000000000 x25: 0000000000000000 x24: 0000007f9e81f000
[ 26.482601] x23: 0000000000020000 x22: ffffff8805422250 x21: 0000000000000000
[ 26.489719] x20: ffffffc00beb3df0 x19: ffffff8805422200 x18: 0000000000000000
[ 26.496836] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 26.503954] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 26.511071] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[ 26.518189] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
[ 26.525306] x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffffff8805422250
[ 26.532424] x2 : ffffffc0008d0000 x1 : ffffffc00beb3d40 x0 : ffffffc00bb50870
[ 26.539542] Call trace:
[ 26.541975] debugfs_readl_get+0x4/0x30 [llce_core]
[ 26.546833] debugfs_attr_read+0x4c/0x94
[ 26.550740] vfs_read+0x90/0x1b0
[ 26.553951] ksys_read+0x68/0xf4
[ 26.557162] __arm64_sys_read+0x1c/0x2c
[ 26.560982] invoke_syscall+0x48/0x114
[ 26.564714] el0_svc_common.constprop.0+0x44/0xfc
[ 26.569401] do_el0_svc+0x28/0xa0
[ 26.572699] el0_svc+0x28/0x80
[ 26.575737] el0t_64_sync_handler+0xa4/0x130
[ 26.579991] el0t_64_sync+0x1a0/0x1a4
[ 26.583642] Code: bad PC value
[ 26.586678] ---[ end trace cd1c0c2028b64c60 ]---
[ 26.591374] printk: console [ttyLF0]: printing thread stopped

Message from syslogd@ at Thu Apr 28 17:42:45 2022 ...
: Code: bad PC value
Segmentation fault

Message from syslogd@ at Thu Apr 28 17:42:45 2022 ...
: Internal error: Oops: 96000007 [#1] PREEMPT SMP
root@s32g399ardb3:~#

 

I attached the whole log.

And the LLCE firmware are v1.0.7.

 

Would you please help to check the issue?

 

Thanks,

Zhantao

0 Kudos
Reply
1 Solution
621 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

This seems to be a known issue. The following workaround is being shown:

"CORES_TS_OFFSET must be set to 0x13730."

Please, let us know.

View solution in original post

0 Kudos
Reply
2 Replies
622 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

This seems to be a known issue. The following workaround is being shown:

"CORES_TS_OFFSET must be set to 0x13730."

Please, let us know.

0 Kudos
Reply
616 Views
hittzt
Senior Contributor I

Hi @Daniel-Aguirre,

 

Thanks for your reply.

Yes, you are right, it it a known issue, and the 0x13730 value can fix it.

 

Thanks,

Zhantao

0 Kudos
Reply