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 C715446CD5; Fri, 8 Aug 2025 13:36:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7720402AB; Fri, 8 Aug 2025 13:36:07 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id EC5664028B for ; Fri, 8 Aug 2025 13:36:05 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id DB7F746CD6; Fri, 8 Aug 2025 13:36:05 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/netuio Bug 1767] Bug in resource allocation in netuio_map_hw_resources Date: Fri, 08 Aug 2025 11:36:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: netuio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: repin.dmitry7@gmail.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 Message-ID: Content-Type: multipart/alternative; boundary=17546529650.daF6F68.641551 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://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 --17546529650.daF6F68.641551 Date: Fri, 8 Aug 2025 13:36:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1767 Bug ID: 1767 Summary: Bug in resource allocation in netuio_map_hw_resources Product: DPDK Version: unspecified Hardware: All OS: Windows Status: UNCONFIRMED Severity: normal Priority: Normal Component: netuio Assignee: dev@dpdk.org Reporter: repin.dmitry7@gmail.com Target Milestone: --- We are using DPDK to work with Intel X520-DA2 under Windows with netuio. Af= ter adding its description to the INF file, we found that the driver fails to l= oad: netuio_map_hw_resources returns STATUS_DEVICE_CONFIGURATION_ERROR. This adapter has the following resources (output from lspci -vvv in Linux): 01:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01) ... Region 0: Memory at c3800000 (64-bit, non-prefetchable) [size=3D512K]= =20=20 Region 2: I/O ports at e020 [size=3D32]=20=20 Region 4: Memory at c3a00000 (64-bit, non-prefetchable) [size=3D16K]=20= =20 ... i/o port in Region 2 break the existing algorithm. After modifying the code, the driver loaded successfully, and the adapter started working as intended. In the file netuio_dev.c =E2=80=94 our modification of current code. I=E2=80=99d like to clarify why such a complex algorithm was needed. Do you= suspect that WdfCmResourceListGetDescriptor might behave inconsistently across different Windows versions? /* * ResourcesTranslated report MMIO BARs in the correct order, but their * indices differ from physical ones. * For example: * The values returned by WdfCmResourceListGetDescriptor can be condensed like this: * Bar[0] =3D c840000c * Bar[1] =3D c800000c * Bar[2] =3D c844000c * But the BAR array has to be filled like this : * Bar[0] =3D c840000c * Bar[1] =3D null * Bar[2] =3D c800000c * Bar[3] =3D null * Bar[4] =3D c844000c * Bar[5] =3D null Are you certain this is the case? Our tests don=E2=80=99t confirm this beha= vior. we see descriptor[0].Type =3D CmResourceTypeMemory descriptor[1].Type =3D CmResourceTypeDevicePrivate descriptor[2].Type =3D CmResourceTypeMemory descriptor[3].Type =3D CmResourceTypeDevicePrivate descriptor[4].Type =3D CmResourceTypeMemory descriptor[5].Type =3D CmResourceTypeDevicePrivate --=20 You are receiving this mail because: You are the assignee for the bug.= --17546529650.daF6F68.641551 Date: Fri, 8 Aug 2025 13:36:05 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1767
Summary Bug in resource allocation in netuio_map_hw_resources
Product DPDK
Version unspecified
Hardware All
OS Windows
Status UNCONFIRMED
Severity normal
Priority Normal
Component netuio
Assignee dev@dpdk.org
Reporter repin.dmitry7@gmail.com
Target Milestone ---

We are using DPDK to work with Int=
el X520-DA2 under Windows with netuio. After
adding its description to the INF file, we found that the driver fails to l=
oad:
netuio_map_hw_resources returns STATUS_DEVICE_CONFIGURATION_ERROR.

This adapter has the following resources (output from lspci -vvv in Linux):

01:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+
Network Connection (rev 01)
...
    Region 0: Memory at c3800000 (64-bit, non-prefetchable) [size=3D512K]=
=20=20
    Region 2: I/O ports at e020 [size=3D32]=20=20
    Region 4: Memory at c3a00000 (64-bit, non-prefetchable) [size=3D16K]=20=
=20
...

i/o port in Region 2 break the existing algorithm.

After modifying the code, the driver loaded successfully, and the adapter
started working as intended.

In the file netuio_dev.c =E2=80=94 our modification of current code.

I=E2=80=99d like to clarify why such a complex algorithm was needed. Do you=
 suspect
that WdfCmResourceListGetDescriptor might behave inconsistently across
different Windows versions?

   /*
    * ResourcesTranslated report MMIO BARs in the correct order, but their
    * indices differ from physical ones.

    * For example:
    * The values returned by WdfCmResourceListGetDescriptor can be condensed
like this:
    * Bar[0] =3D c840000c
    * Bar[1] =3D c800000c
    * Bar[2] =3D c844000c

    * But the BAR array has to be filled like this :
    * Bar[0] =3D c840000c
    * Bar[1] =3D null
    * Bar[2] =3D c800000c
    * Bar[3] =3D null
    * Bar[4] =3D c844000c
    * Bar[5] =3D null

Are you certain this is the case? Our tests don=E2=80=99t confirm this beha=
vior. we see
        descriptor[0].Type =3D CmResourceTypeMemory
        descriptor[1].Type =3D CmResourceTypeDevicePrivate
        descriptor[2].Type =3D CmResourceTypeMemory
        descriptor[3].Type =3D CmResourceTypeDevicePrivate
        descriptor[4].Type =3D CmResourceTypeMemory
        descriptor[5].Type =3D CmResourceTypeDevicePrivate
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17546529650.daF6F68.641551--