Skip to contentSkip to conversation

driver-tests/event_dma_adapter_autotest test hang when do ABI testing

DPDK/eventdev Bug 1497 [email protected] 1 participant 1 message Jul 18, 2024

lore
Share & tools
lore

[email protected]

author Acked-by Amit Prakash Shukla
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1497

            Bug ID: 1497
           Summary: [dpdk-24.07] [ABI][meson test]
                    driver-tests/event_dma_adapter_autotest test hang when
                    do ABI testing
           Product: DPDK
           Version: 24.07
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: eventdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

[Environment]

DPDK version: 24.07.0-rc2
DPDK ABI version: 23.11.0
OS: RHEL9.0/5.14.0-70.13.1.el9_0.x86_64
Compiler: gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) Hardware platform: Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz

[Test Setup]
Steps to reproduce
List the steps to reproduce the issue.

1, Build latest main dpdk24.03-rc1
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=shared x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
rm -rf /root/tmp/dpdk_share_lib /root/shared_lib_dpdk DESTDIR=/root/tmp/dpdk_share_lib ninja -C x86_64-native-linuxapp-gcc -j 110 install
mv /root/tmp/dpdk_share_lib/usr/local/lib /root/shared_lib_dpdk ll /root/shared_lib_dpdk
cat /root/.bashrc | grep LD_LIBRARY_PATH
sed -i 's#export LD_LIBRARY_PATH=.*#export LD_LIBRARY_PATH=/root/shared_lib_dpdk#g' /root/.bashrc

2, Build LTS dpdk23.11.0
rm /root/dpdk
tar zxvf dpdk_abi.tar.gz -C ~
cd ~/dpdk/
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=shared x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
rm -rf x86_64-native-linuxapp-gcc/lib
rm -rf x86_64-native-linuxapp-gcc/drivers

3, Launch dpdk-test and run event_dma_adapter_autotest MALLOC_PERTURB_=132 DPDK_TEST=event_dma_adapter_autotest /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-test -c 0xff -d /root/shared_lib_dpdk --vdev=dma_skeleton

Show the output from the previous commands.
[root@ABI-80 dpdk]# MALLOC_PERTURB_=132 DPDK_TEST=event_dma_adapter_autotest /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-test -c 0xff -d /root/shared_lib_dpdk --vdev=dma_skeleton
EAL: Detected CPU lcores: 112
EAL: Detected NUMA nodes: 2
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
skeldma_probe(): Create dma_skeleton dmadev with lcore-id -1
APP: HPET is not enabled, using TSC as default timer RTE>>event_dma_adapter_autotest
+ ------------------------------------------------------- +
+ Test Suite : Event dma adapter test suite
+ ------------------------------------------------------- +
+ TestCase [ 0] : test_dma_adapter_create succeeded
+ TestCase [ 1] : test_dma_adapter_vchan_add_del succeeded
+------------------------------------------------------+
+ DMA adapter stats for instance 0:

 + Event port poll count         0x0
 + Event dequeue count           0x0
 + DMA dev enqueue count         0x0
 + DMA dev enqueue failed count  0x0
 + DMA dev dequeue count         0x0
 + Event enqueue count           0x0
 + Event enqueue retry count     0x0
 + Event enqueue fail count      0x0

+------------------------------------------------------+
+ TestCase [ 2] : test_dma_adapter_stats succeeded
+ TestCase [ 3] : test_dma_adapter_params succeeded

[Expected Result]
Test ok.

[Regression]
Is this issue a regression: (Y/N) Y
The first bad commit:
commit 588dcac2361011556934166d93da62dae712ce69

Author: Pavan Nikhilesh <[email protected]>
Date:   Fri Jun 7 16:06:25 2024 +0530

eventdev/dma: reorganize event DMA ops

Re-organize event DMA ops structure to allow holding source and destination pointers without the need for additional memory, the mempool allocating memory for rte_event_dma_adapter_ops can size the structure to accommodate all the needed source and destination pointers.

Add multiple words for holding user metadata, adapter implementation specific metadata and event metadata.

-----------Note---------
Based on dpdk24.07-rc2 which includes
https://bugs.dpdk.org/show_bug.cgi?id=1469's fix patch, also test hang.

Please confirm it need fix or not on ABI compatibility testing or it needn't test for ABI compatibility testing. Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.