Dear Support-Team,
there seems to be a problem regarding the sound card in the latest release.
Hardware: armstoneA9r3 Rev 2.00
Software: Buildroot Release fsimx6-B2024.04
Problem: In the "original" binary zImage-fsimx6-B2024.04 and the rootfs_min-fsimx6-B2024.04.ubifs (together with armstonea9r3dl-B2024.04.dtb) there will be:
- ALSA device list:
- No soundcards found.
Because we have to do some changes in the kernel (for our display and a few other things) and also using an for us optimized rootfs, we have to recompile kernel and rootfs anyway. In the new compiled kernel we have the same problem "No soundcards found." So I was looking for a solution and tried to include the SDMA driver directly into the kernel (not as module). This was working so far that while booting the "SGTL5000" soundcard will be found.
But when trying to start e.g. speaker-test for testing the output I get a kernel oops. I guess some problems with multiprocessing and the sdma driver.
Question: Can you confirm these problems or is this caused by some other changes I did on the Kernel / DevTree / RootFS?
Here the printout of speaker-test and Kernel debug:
- # speaker-test
- speaker-test 1.2.8
- Playback device is default
- Stream parameters are 48000Hz, S16_LE, 1 channels
- Using 16 octaves of pink noise
- Rate set to 48000Hz (requested 48000Hz)
- Buffer size range from 256 to 32768
- Period size range from 128 to 16384
- Using max b8<--- cut here ---
- uffer size 32768
- PeUrniaobdlse to handle kernel NULL pointer dereference at virtual address 000000034
- was set peprgido d=_ s3i9z5e421bc
- = 8192
- was set buf[f0e0r0_0s0i0z3] *pgd=00000000
- e = 32768
- 0 - FrontI nLteefrtn
- l error: Oops: 805 [#1] PREEMPT SMP ARM
- Modules linked in:
- CPU: 1 PID: 228 Comm: speaker-test Not tainted 5.15.148-F+S #5
- Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
- PC is at sdma_transfer_init+0x184/0x214
- LR is at 0x0
- pc : [<803ca6b4>] lr : [<00000000>] psr: 80030093
- sp : 81a57d18 ip : c0832280 fp : 81200040
- r10: 20030093 r9 : 81202ca0 r8 : 00000000
- r7 : 00000003 r6 : c0832200 r5 : 81e7e280 r4 : 8120041c
- r3 : 81202040 r2 : 00000001 r1 : 00000000 r0 : c0832200
- Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
- Control: 10c5387d Table: 11d1804a DAC: 00000051
- Register r0 information: 0-page vmalloc region starting at 0xc0820000 allocated at __devm_ioremap+0x9c/0xa8
- Register r1 information: NULL pointer
- Register r2 information: non-paged memory
- Register r3 information: non-slab/vmalloc memory
- Register r4 information: non-slab/vmalloc memory
- Register r5 information: slab kmalloc-128 start 81e7e280 pointer offset 0 size 128
- Register r6 information: 0-page vmalloc region starting at 0xc0820000 allocated at __devm_ioremap+0x9c/0xa8
- Register r7 information: non-paged memory
- Register r8 information: NULL pointer
- Register r9 information: non-slab/vmalloc memory
- Register r10 information: non-paged memory
- Register r11 information: non-slab/vmalloc memory
- Register r12 information: 0-page vmalloc region starting at 0xc0820000 allocated at __devm_ioremap+0x9c/0xa8
- Process speaker-test (pid: 228, stack limit = 0x8639cee5)
- Stack: (0x81a57d18 to 0x81a58000)
- 7d00: 00000000 00000000
- 7d20: 00000003 81202040 a29e2ae8 8120041c 00000001 00000000 00004000 00000004
- 7d40: 00010000 00000003 81200040 803ca8b0 00000000 81d32000 00000003 3c070000
- 7d60: 80faf000 00000000 81a55ac0 81a05000 803ca834 00000003 00000002 81af061c
- 7d80: 81a56000 805be918 00000001 00000003 81a33e0c 81a05000 00000001 81a33e0c
- 7da0: 81af0040 805c98f4 00000000 805ca79c 81a3d840 00000001 00000000 81a05000
- 7dc0: 8087b2c8 81af0040 00002000 81d740f4 81a56000 805cb1b0 00000000 81a05000
- 7de0: 00000003 8087b2c8 00000000 805b4634 8087b2c8 81a05000 00000000 00000003
- 7e00: 00000000 805b6630 81d74000 81a05000 00000000 00000000 00000000 805bcce8
- 7e20: 00004000 805b9fa4 805b9fa4 00000000 00002000 805b9c48 00000000 00006000
- 7e40: 022d3010 00006000 00000000 ffb66913 81a57ea8 00000051 81cd4840 28ef4386
- 7e60: 0000000c ffffe000 81a05000 7eb66908 00000051 81cd4840 81a55b00 00000036
- 7e80: 00000000 805b8a70 00000000 f7fbe58f 81a57ed0 00000000 022cbc0c 022cbc10
- 7ea0: 00000000 00000000 00000000 022d3010 00002000 00000000 00000008 801b6d64
- 7ec0: 81a57ee0 801b6e30 00000000 00000000 00000000 00000000 803e2690 00000010
- 7ee0: 00000000 00000000 00000000 00000000 00000000 28ef4386 00000000 819e3538
- 7f00: 81cd4840 7eb66908 400c4150 00000004 81cd4840 00000036 00000000 80215ea8
- 7f20: 819e3538 802167d0 00000000 81a57f40 ffffe000 00000000 00000000 80108e7c
- 7f40: 819e1a40 80156a44 81a57fb0 80110370 00000000 00000000 66c2ee10 28ef4386
- 7f60: 819fd000 00000007 76ed3f38 81a57fb0 80c0dd64 10c5387d 00495e98 28ef4386
- 7f80: 00000000 022cba78 022cba20 76f7a378 00000036 801002c4 81a56000 00000036
- 7fa0: 00000000 80100060 022cba78 022cba20 00000004 400c4150 7eb66908 7eb668f8
- 7fc0: 022cba78 022cba20 76f7a378 00000036 00496040 00495e98 00000000 00000000
- 7fe0: 76f7a878 7eb668e8 76ee7f88 76d81bb0 20030010 00000004 00000000 00000000
- [<803ca6b4>] (sdma_transfer_init) from [<803ca8b0>] (sdma_prep_dma_cyclic+0x7c/0x178)
- [<803ca8b0>] (sdma_prep_dma_cyclic) from [<805be918>] (snd_dmaengine_pcm_trigger+0xc0/0x150)
- [<805be918>] (snd_dmaengine_pcm_trigger) from [<805c98f4>] (soc_component_trigger+0x20/0x38)
- [<805c98f4>] (soc_component_trigger) from [<805ca79c>] (snd_soc_pcm_component_trigger+0x80/0xe8)
- [<805ca79c>] (snd_soc_pcm_component_trigger) from [<805cb1b0>] (soc_pcm_trigger+0x48/0x15c)
- [<805cb1b0>] (soc_pcm_trigger) from [<805b4634>] (snd_pcm_action_single+0x38/0x64)
- [<805b4634>] (snd_pcm_action_single) from [<805b6630>] (snd_pcm_action+0x5c/0x60)
- [<805b6630>] (snd_pcm_action) from [<805bcce8>] (__snd_pcm_lib_xfer+0x5fc/0x648)
- [<805bcce8>] (__snd_pcm_lib_xfer) from [<805b8a70>] (snd_pcm_ioctl+0x3a8/0x1270)
- [<805b8a70>] (snd_pcm_ioctl) from [<80215ea8>] (vfs_ioctl+0x20/0x38)
- [<80215ea8>] (vfs_ioctl) from [<802167d0>] (sys_ioctl+0xc0/0x944)
- [<802167d0>] (sys_ioctl) from [<80100060>] (ret_fast_syscall+0x0/0x58)
- Exception stack(0x81a57fa8 to 0x81a57ff0)
- 7fa0: 022cba78 022cba20 00000004 400c4150 7eb66908 7eb668f8
- 7fc0: 022cba78 022cba20 76f7a378 00000036 00496040 00495e98 00000000 00000000
- 7fe0: 76f7a878 7eb668e8 76ee7f88 76d81bb0
- Code: e5862018 e594210c e5862020 e3a02001 (e5c82003)
- ---[ end trace e9024d0c9fa51d7f ]---
- note: speaker-test[228] exited with preempt_count 2
- rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
- rcu: 1-...0: (1 GPs behind) idle=607/1/0x40000000 softirq=312/313 fqs=1050
- (detected by 0, t=2102 jiffies, g=-759, q=173)
- Sending NMI from CPU 0 to CPUs 1:
Display More
Thanks in advance
RSchubert