dma_ip_drivers icon indicating copy to clipboard operation
dma_ip_drivers copied to clipboard

随驱动附带的run_test.sh是否能满足测试要求?

Open renwinping opened this issue 6 months ago • 2 comments

在run_test.sh脚本中测试为“固定次数”的收发,如下命令 ./dma_streaming_test.sh $transferSize $transferCount $channelPairs 是不是不能满足长期运行测试的要求(都是指定循环次数)? 自己修改了dma_from_device.c(添加无限制循环写),对侧dma_to_device.c也作相似修改后,循环收发(读写)指定固定格式帧(为了校验)时,会存在误码问题(即几千次后的某一帧/包,会存在误码, 这个包越大出现的情况越大,小包长度2k以下好像未发现)。

renwinping avatar Jun 18 '25 08:06 renwinping

这与驱动相关否?是否在大页时,部分数据内容未被刷新?驱动是否存在限制?有没有相关文档?

renwinping avatar Jun 18 '25 08:06 renwinping

#当4通道并发读写导出驱动crash. 日志提示如下,这是否与硬件相关?还是驱动自身BUG?内核日志如下:

Jan 1 10:41:25 localhost kernel: [ 828.635494] xdma:eng_reg_dump: 0-RX2-ST: engine id missing, 0x00000000 exp. & 0xfff00000 = 0x80300000 Jan 1 10:41:25 localhost kernel: [ 828.645360] xdma:eng_status_read: Failed to dump register Jan 1 10:41:25 localhost kernel: [ 828.651413] xdma:xdma_eng_submit: Failed to read engine status Jan 1 10:41:26 localhost kernel: [ 829.772251] xdma:eng_reg_dump: 0-RX2-ST: engine id missing, 0x00000000 exp. & 0xfff00000 = 0x80300000 Jan 1 10:41:26 localhost kernel: [ 829.782116] xdma:eng_status_read: Failed to dump register Jan 1 10:41:26 localhost kernel: [ 829.788169] xdma:xdma_eng_submit: Failed to read engine status Jan 1 10:41:26 localhost kernel: [ 829.818408] ------------[ cut here ]------------ Jan 1 10:41:26 localhost kernel: [ 829.818411] list_add corruption. prev->next should be next (900000017d2cdd28), but was 0000000000000000. (prev=900000010f497878). Jan 1 10:41:26 localhost kernel: [ 829.818423] WARNING: CPU: 6 PID: 3340 at lib/list_debug.c:32 __list_add_valid_or_report+0xd8/0xe4 Jan 1 10:41:26 localhost kernel: [ 829.818433] Modules linked in: xdma(OE) xt_MASQUERADE nf_conntrack_netlink xt_addrtype xt_conntrack br_netfilter bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat rfkill ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables bpfilter irigb_drv(OE) snd_hda_codec_hdmi rtc_efi efi_pstore pstore snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep sg snd_pcm snd_timer nls_cp936 gpio_loongson i2c_ls2x vfat fat cpu_temperature(OE) fuse ky_gpio(OE) sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 rnpm(OE) ngbe(OE) loongson dm_mirror dm_region_hash dm_log dm_mod ipv6 crc_ccitt Jan 1 10:41:26 localhost kernel: [ 829.818552] CPU: 6 PID: 3340 Comm: fpga_xdma_test Kdump: loaded Tainted: G OE 6.6.0-85.0.0.90.kb1.ky3_5.loongarch64 #1 Jan 1 10:41:26 localhost kernel: [ 829.818556] Hardware name: Loongson Loongson-3A6000-7A2000-1w-V0.1-EVB/Loongson-3A6000-7A2000-1w-EVB-V1.21, BIOS Loongson-UDK2018-V4.0.05823-stable202408 Jan 1 10:41:26 localhost kernel: [ 829.818714] Call Trace: Jan 1 10:41:26 localhost kernel: [ 829.818716] [<9000000000223e14>] show_stack+0x3c/0x150 Jan 1 10:41:26 localhost kernel: [ 829.818723] [<900000000133ea70>] dump_stack_lvl+0x60/0x88 Jan 1 10:41:26 localhost kernel: [ 829.818728] [<900000000023bb18>] __warn+0x8c/0x13c Jan 1 10:41:26 localhost kernel: [ 829.818734] [<90000000012cc78c>] __report_bug+0xac/0x148 Jan 1 10:41:26 localhost kernel: [ 829.818740] [<90000000012cc850>] report_bug+0x28/0x70 Jan 1 10:41:26 localhost kernel: [ 829.818744] [<900000000133f2a4>] do_bp+0x25c/0x338 Jan 1 10:41:26 localhost kernel: [ 829.818749] [<0000000000000000>] 0x0 Jan 1 10:41:26 localhost kernel: [ 829.818752] [<9000000000abf02c>] __list_add_valid_or_report+0xd8/0xe4 Jan 1 10:41:26 localhost kernel: [ 829.818759] [] trans_queue+0x10c/0x290 [xdma] Jan 1 10:41:26 localhost kernel: [ 829.818774] [] xdma_eng_submit+0x270/0x898 [xdma] Jan 1 10:41:26 localhost kernel: [ 829.818787] [] dev_sgdma_read_write.isra.0+0x11c/0x1e0 [xdma] Jan 1 10:41:26 localhost kernel: [ 829.818801] [<9000000000537418>] vfs_read+0xec/0x2f0 Jan 1 10:41:26 localhost kernel: [ 829.818807] [<9000000000537f1c>] ksys_read+0x7c/0x114 Jan 1 10:41:26 localhost kernel: [ 829.818812] [<900000000133fa50>] do_syscall+0x8c/0xb4 Jan 1 10:41:26 localhost kernel: [ 829.818815] [<9000000000221c1c>] handle_syscall+0xbc/0x158

renwinping avatar Jun 20 '25 02:06 renwinping