It seems LS1028A_BSPv0.2_Rev0.pdf needs to update, thanks

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

It seems LS1028A_BSPv0.2_Rev0.pdf needs to update, thanks

Jump to solution
769 Views
zumengchen
Contributor III

Hi experts,

I'm working on ls1028a-rdb board with Layerscape LS1028A BSP v0.2, and I run into the following crash when did a test on caam_dma:

root@nxp-ls1028a:/sys/kernel/debug/8000000.crypto/ctl# cd /
root@nxp-ls1028a:/# ls
bin dev home lib64 media opt root sbin tmp var
boot etc lib lost+found mnt proc run sys usr
root@nxp-ls1028a:/# echo 1 > /sys/module/dmatest/parameters/max_channels
4 > /sys/module/dmatest/parameters/threads_per_chan
echo 0 > /sys/module/dmatest/parameters/dmatest
echo 1 > /sys/module/dmatest/parameters/iterations
echo 2000 > /sys/module/dmatest/parameters/test_buf_size
root@nxp-ls1028a:/# echo 2000 > /sys/module/dmatest/parameters/timeout
root@nxp-ls1028a:/# echo 0 > /sys/module/dmatest/parameters/noverify
root@nxp-ls1028a:/# echo 4 > /sys/module/dmatest/parameters/threads_per_chan
root@nxp-ls1028a:/# echo 0 > /sys/module/dmatest/parameters/dmatest
root@nxp-ls1028a:/# echo 1 > /sys/module/dmatest/parameters/iterations
root@nxp-ls1028a:/# echo 2000 > /sys/module/dmatest/parameters/test_buf_size
root@nxp-ls1028a:/#
root@nxp-ls1028a:/#
root@nxp-ls1028a:/# ls -l /sys/class/dma
total 0
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan0 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan0
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan1 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan1
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan10 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan10
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan11 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan11
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan12 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan12
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan13 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan13
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan14 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan14
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan15 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan15
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan16 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan16
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan17 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan17
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan18 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan18
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan19 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan19
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan2 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan2
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan20 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan20
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan21 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan21
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan22 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan22
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan23 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan23
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan24 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan24
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan25 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan25
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan26 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan26
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan27 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan27
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan28 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan28
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan29 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan29
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan3 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan3
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan30 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan30
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan31 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan31
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan4 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan4
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan5 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan5
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan6 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan6
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan7 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan7
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan8 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan8
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma0chan9 -> ../../devices/platform/soc/22c0000.edma/dma/dma0chan9
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan0 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan0
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan1 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan1
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan2 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan2
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan3 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan3
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan4 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan4
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan5 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan5
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan6 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan6
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma1chan7 -> ../../devices/platform/soc/8380000.qdma/dma/dma1chan7
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma2chan0 -> ../../devices/platform/soc/8000000.crypto/caam-dma/dma/dma2chan0
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma2chan1 -> ../../devices/platform/soc/8000000.crypto/caam-dma/dma/dma2chan1
lrwxrwxrwx 1 root root 0 Mar 28 03:06 dma2chan2 -> ../../devices/platform/soc/8000000.crypto/caam-dma/dma/dma2chan2
root@nxp-ls1028a:/# echo dma2chan0 > /sys/module/dmatest/parameters/channel
root@nxp-ls1028a:/# echo 1 > /sys/module/dmatest/parameters/run
[ 377.257886] arm-smmu 5000000.iommu: Unhandled context fault: fsr=0x402, iova=0xf6840f00, fsynr=0x130000, cb=6
[ 377.267842] caam_jr 8010000.jr: job ring error: irqstate: 00180103
[ 377.274042] caam_jr 8010000.jr: FAR = f6840f00, FAICIDR = 3, FADR = 90008830
[ 377.281136] ------------[ cut here ]------------
[ 377.285764] kernel BUG at drivers/crypto/caam/jr.c:162!
[ 377.291003] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 377.296503] Modules linked in: crc32_ce crct10dif_ce ina2xx lm90
[ 377.302537] CPU: 0 PID: 2 Comm: kthreadd Not tainted 4.14.47 #5
[ 377.308473] Hardware name: LS1028A RDB Board (DT)
[ 377.313189] task: ffff80207b342040 task.stack: ffff000008078000
[ 377.319133] PC is at caam_jr_interrupt+0x1c4/0x1f8
[ 377.323936] LR is at caam_jr_interrupt+0x1c4/0x1f8
[ 377.328738] pc : [<ffff000008954aac>] lr : [<ffff000008954aac>] pstate: 800001c5
[ 377.336156] sp : ffff000008003e40
[ 377.339475] x29: ffff000008003e40 x28: ffff80207b342040
[ 377.344804] x27: 0000000000000001 x26: ffff000008e7c4b0
[ 377.350132] x25: ffff000009142e13 x24: ffff80207a765c00
[ 377.355461] x23: 0000000000000077 x22: ffff000008003f0c
[ 377.360789] x21: ffff000009236000 x20: ffff80207a7c2c10
[ 377.366116] x19: ffff80207a765618 x18: 0000000000000010
[ 377.371444] x17: 0000000000000005 x16: ffff000008c00618
[ 377.376772] x15: ffffffffffffffff x14: 3033383830303039
[ 377.382099] x13: 203d205244414620 x12: ffff00000907a970
[ 377.387427] x11: ffff00000862dc78 x10: 663034383666203d
[ 377.392754] x9 : 0000000000000016 x8 : 2e30303030313038
[ 377.398082] x7 : 20726a5f6d616163 x6 : 0000000000000218
[ 377.403410] x5 : 0000000000000000 x4 : 0000000000000001
[ 377.408738] x3 : 0000000000000007 x2 : 0000000000000007
[ 377.414066] x1 : ffff80207b342040 x0 : 0000000000000040
[ 377.419395] Process kthreadd (pid: 2, stack limit = 0xffff000008078000)
[ 377.426028] Call trace:
[ 377.428476] Exception stack(0xffff000008003d00 to 0xffff000008003e40)
[ 377.434937] 3d00: 0000000000000040 ffff80207b342040 0000000000000007 0000000000000007
[ 377.442793] 3d20: 0000000000000001 0000000000000000 0000000000000218 20726a5f6d616163
[ 377.450648] 3d40: 2e30303030313038 0000000000000016 663034383666203d ffff00000862dc78
[ 377.458503] 3d60: ffff00000907a970 203d205244414620 3033383830303039 ffffffffffffffff
[ 377.466358] 3d80: ffff000008c00618 0000000000000005 0000000000000010 ffff80207a765618
[ 377.474213] 3da0: ffff80207a7c2c10 ffff000009236000 ffff000008003f0c 0000000000000077
[ 377.482067] 3dc0: ffff80207a765c00 ffff000009142e13 ffff000008e7c4b0 0000000000000001
[ 377.489922] 3de0: ffff80207b342040 ffff000008003e40 ffff000008954aac ffff000008003e40
[ 377.497776] 3e00: ffff000008954aac 00000000800001c5 00000000f6840f00 0000000000000003
[ 377.505631] 3e20: 0000ffffffffffff 0000000000000000 ffff000008003e40 ffff000008954aac
[ 377.513486] [<ffff000008954aac>] caam_jr_interrupt+0x1c4/0x1f8
[ 377.519339] [<ffff000008120324>] __handle_irq_event_percpu+0x5c/0x148
[ 377.525799] [<ffff00000812042c>] handle_irq_event_percpu+0x1c/0x58
[ 377.531997] [<ffff0000081204b0>] handle_irq_event+0x48/0x78
[ 377.537586] [<ffff000008124188>] handle_fasteoi_irq+0xa8/0x180
[ 377.543435] [<ffff00000811f45c>] generic_handle_irq+0x24/0x38
[ 377.549198] [<ffff00000811fadc>] __handle_domain_irq+0x5c/0xb0
[ 377.555047] [<ffff0000080817c4>] gic_handle_irq+0x7c/0x180
[ 377.560547] Exception stack(0xffff00000807b8f0 to 0xffff00000807ba30)
[ 377.567006] b8e0: 0000000000000000 0000000000001c16
[ 377.574860] b900: ffff80207ffdaf40 0000000000000001 0000000000000001 0000000000073682
[ 377.582714] b920: 0000000001ffffff ffff00000907a728 ffff8020767cd580 0000000000000022
[ 377.590568] b940: 0000000000000900 0000000000000000 00000057c9781a38 0000000000000000
[ 377.598423] b960: ffff802079399548 ffffffffffffffff ffff000008c00618 0000000000000005
[ 377.606277] b980: 0000000000000000 ffff00000807bbf0 0000000000000000 ffff80207ffdaf40
[ 377.614132] b9a0: 0000000000000000 00e8000000000f13 00000000015002c2 ffff8020767cd540
[ 377.621986] b9c0: 0000000000000001 ffff80207ffda240 ffff80207ac41040 ffff00000807ba30
[ 377.629840] b9e0: ffff0000081970a0 ffff00000807ba30 ffff0000081961cc 0000000020000145
[ 377.637693] ba00: 0000000000000000 ffff80207ffda240 ffffffffffffffff 0000000000000000
[ 377.645547] ba20: ffff00000807ba30 ffff0000081961cc
[ 377.650436] [<ffff000008083130>] el1_irq+0xb0/0x124
[ 377.655329] [<ffff0000081961cc>] get_page_from_freelist+0xfc/0xa10
[ 377.661528] [<ffff0000081970a0>] __alloc_pages_nodemask+0xd8/0xbe0
[ 377.667727] [<ffff0000081e9284>] alloc_pages_current+0x7c/0xe0
[ 377.673577] [<ffff0000081d54d4>] __vmalloc_node_range+0x12c/0x2a8
[ 377.679690] [<ffff0000080cbde8>] copy_process.isra.5.part.6+0x510/0x1750
[ 377.686410] [<ffff0000080cd1ac>] _do_fork+0xbc/0x330
[ 377.691388] [<ffff0000080cd468>] kernel_thread+0x30/0x38
[ 377.696714] [<ffff0000080ee158>] kthreadd+0x158/0x1d8
[ 377.701778] [<ffff000008084cf0>] ret_from_fork+0x10/0x18
[ 377.707106] Code: aa1403e0 90002e41 913a0021 97f55118 (d4210000)
[ 377.713219] ---[ end trace 37cc7644c2190195 ]---
[ 377.717847] Kernel panic - not syncing: Fatal exception in interrupt
[ 377.724218] SMP: stopping secondary CPUs
[ 377.728152] Kernel Offset: disabled
[ 377.731646] CPU features: 0x1802008
[ 377.735140] Memory Limit: none
[ 377.738200] ---[ end Kernel panic - not syncing: Fatal exception in interrupt

Hope you guys can help me out there, thanks~

Cheers,

Zumeng

0 Kudos
1 Solution
634 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zumeng,

There is problem to probe CAAM-DMA driver when setting up the system.

root@TinyDistro:~# dmesg | grep caam-dma
[   18.793876] caam-dma caam-dma: Defer probing after JR driver probing
[   19.131795] caam-dma caam-dma: caam dma support with 3 job rings

This problem has already been addressed in QLINUX-10747 in BSP 0.2 document, this problem has not been fixed so far.

pastedImage_1.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

2 Replies
634 Views
zumengchen
Contributor III

Thanks Yiping, my bad, I acked.

0 Kudos
635 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zumeng,

There is problem to probe CAAM-DMA driver when setting up the system.

root@TinyDistro:~# dmesg | grep caam-dma
[   18.793876] caam-dma caam-dma: Defer probing after JR driver probing
[   19.131795] caam-dma caam-dma: caam dma support with 3 job rings

This problem has already been addressed in QLINUX-10747 in BSP 0.2 document, this problem has not been fixed so far.

pastedImage_1.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------