From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D1F142F46; Tue, 25 Jul 2023 16:54:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE4A740A7F; Tue, 25 Jul 2023 16:54:51 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 8790F40697 for ; Tue, 25 Jul 2023 16:54:50 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 5886942F47; Tue, 25 Jul 2023 16:54:50 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1268] dma/idxd appends extra characters which makes test-dma-perf to fail. Date: Tue, 25 Jul 2023 14:54:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 23.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vipin.varghese@amd.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: multipart/alternative; boundary=16902968900.926a9.723536 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --16902968900.926a9.723536 Date: Tue, 25 Jul 2023 16:54:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1268 Bug ID: 1268 Summary: dma/idxd appends extra characters which makes test-dma-perf to fail. Product: DPDK Version: 23.07 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: vipin.varghese@amd.com Target Milestone: --- Created attachment 256 --> https://bugs.dpdk.org/attachment.cgi?id=3D256&action=3Dedit name change before-after setup details: 1. CPU: Intel(R) Xeon(R) Gold 6421N 2. OS: Ubuntu 22.04.2 LTS 3. gcc: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 4. DPDk version: `https://git.dpdk.org/dpdk/tag/?id=3Dv23.07-rc4` 5. DSA Acceleration: `f2:01.0 System peripheral: Intel Corporation Device 0= b25` 6. application: `./build/app/dpdk-test-dma-perf` 7. arguments: `-l8-31 --log-level=3Dpmd,8 -a 0000:f2:01.0 --config app/test-dma-perf/my.ini` 8. driver used: vfio-pci on PF INI config file: ``` [case1] type=3DDMA_MEM_COPY mem_size=3D10 buf_size=3D64,64,0,ADD dma_ring_size=3D1024 kick_batch=3D32 src_numa_node=3D0 dst_numa_node=3D0 cache_flush=3D0 test_seconds=3D10 lcore_dma=3Dlcore10@0000:f2:01.0 #lcore_dma=3Dlcore10@0000:00:04.2, lcore11@0000:00:04.3 eal_args=3D--in-memory --file-prefix=3Dtest-dma-hw ``` issue logs: ``` Running scenario 1 Error: Fail to find DMA 0000:f2:01.0. Not enough dmadevs (0) for all workers (1). Stopping dmadev 0 dma: Device 0 already stopped. No proper operation for variable entry. ``` reason for failure: the device name is populated from `idxd_pci.c` as `0000:f2:01.0-q0` actions tried: 1. modified by forcing `--proc-type=3Dprimary`. same issue=20 2. modified name in ini `0000:f2:01.0-q0`, worked. Checking the driver/dma/idxd_pci.c show cases the issue comes because the application is identified as `RTE_SECONDARY`. attaching screen shot for the same. --=20 You are receiving this mail because: You are the assignee for the bug.= --16902968900.926a9.723536 Date: Tue, 25 Jul 2023 16:54:50 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1268
Summary dma/idxd appends extra characters which makes test-dma-perf t= o fail.
Product DPDK
Version 23.07
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component other
Assignee dev@dpdk.org
Reporter vipin.varghese@amd.com
Target Milestone ---

Created attachment 256 [details]
name change before-after

setup details:
1. CPU: Intel(R) Xeon(R) Gold 6421N
2. OS: Ubuntu 22.04.2 LTS
3. gcc: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04.1)
4. DPDk version: `https://git.dpdk.org/dpdk/tag/?id=3Dv23.07-rc4`
5. DSA Acceleration: `f2:01.0 System peripheral: Intel Corporation Device 0=
b25`
6. application: `./build/app/dpdk-test-dma-perf`
7. arguments: `-l8-31 --log-level=3Dpmd,8 -a 0000:f2:01.0 --config
app/test-dma-perf/my.ini`
8. driver used: vfio-pci on PF

INI config file:
```
[case1]
type=3DDMA_MEM_COPY
mem_size=3D10
buf_size=3D64,64,0,ADD
dma_ring_size=3D1024
kick_batch=3D32
src_numa_node=3D0
dst_numa_node=3D0
cache_flush=3D0
test_seconds=3D10
lcore_dma=3Dlcore10@0000:f2:01.0
#lcore_dma=3Dlcore10@0000:00:04.2, lcore11@0000:00:04.3
eal_args=3D--in-memory --file-prefix=3Dtest-dma-hw
```

issue logs:
```
Running scenario 1
Error: Fail to find DMA 0000:f2:01.0.
Not enough dmadevs (0) for all workers (1).
Stopping dmadev 0
dma: Device 0 already stopped.
No proper operation for variable entry.
```

reason for failure: the device name is populated from `idxd_pci.c` as
`0000:f2:01.0-q0`

actions tried:
1. modified by forcing `--proc-type=3Dprimary`. same issue=20
2. modified name in ini `0000:f2:01.0-q0`, worked.

Checking the driver/dma/idxd_pci.c show cases the issue comes because the
application is identified as `RTE_SECONDARY`. attaching screen shot for the
same.
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16902968900.926a9.723536--