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 55335A0561; Fri, 5 Mar 2021 08:30:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DAD9F4069B; Fri, 5 Mar 2021 08:30:20 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id BC22340147 for ; Fri, 5 Mar 2021 08:30:19 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 76695A0562; Fri, 5 Mar 2021 08:30:19 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 05 Mar 2021 07:30:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linglix.chen@intel.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: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 649] [dpdk-21.05] external_memory/test_VFIO_PCI_xmem: start testpmd failed 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D649 Bug ID: 649 Summary: [dpdk-21.05] external_memory/test_VFIO_PCI_xmem: start testpmd failed Product: DPDK Version: unspecified Hardware: x86 OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: linglix.chen@intel.com Target Milestone: --- With the lastest version on dpdk.org (i.e. commit id 44db5a5cf23f6157448fdb692efab605544762f3) Reproduce Step: 1.bind nic to vfio-pci usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:83:00.0 0000:83:00= .1 0000:83:00.2 0000:83:00.3=20 2. start pf testpmd, but it failed ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4 -n 4=20=20 --file-prefix=3Ddpdk_1766_20210302180024 =E2=80=93 --mp-alloc=3Dxmem -i EAL: Detected 88 lcore(s) EAL: Detected 2 NUMA nodes EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_1766_20210302180024/mp_socket EAL: Selected IOVA mode 'VA' EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size EAL: Probing VFIO support... EAL: VFIO support initialized EAL: using IOMMU type 1 (Type 1) EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.0 (sock= et 1) EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.1 (sock= et 1) EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.2 (sock= et 1) EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.3 (sock= et 1) EAL: No legacy callbacks, legacy socket not created Interactive-mode selected testpmd: create a new mbuf pool : n=3D171456, size=3D2176, socke= t=3D0 EAL: WARNING! Base virtual address hint (0x2200005000 Unable to render embe= dded object: File (=3D 0x7f468969c000) not respected) not found. EAL: This may cause issues with mapping memory into secondary processes EAL: cannot set up DMA remapping, error 28 (No space left on device) EAL: cannot set up DMA remapping, error 28 (No space left on device) EAL: cannot set up DMA remapping, error 28 (No space left on device) Expect results: no error log and start PF testpmd normal. Is this issue a regression: Y Version the regression was introduced: Specify git id if known. First bad commit: commit 016763c219580292c8b05059c7452a7a11d0d19e Author: Nithin Dabilpuram Date: Fri Jan 15 13:02:41 2021 +0530 vfio: do not merge contiguous areas In order to save DMA entries limited by kernel both for external memory and hugepage memory, an attempt was made to map physically contiguous memory in one go. This cannot be done as VFIO IOMMU type1 does not support partially unmapping a previously mapped memory region while Heap can request for multi page mapping and partial unmapping. Hence for going back to old method of mapping/unmapping at memseg granularity, this commit reverts commit d1c7c0cdf7ba ("vfio: map contiguous areas in one go") Also add documentation on what module parameter needs to be used to increase the per-container dma map limit for VFIO. Fixes: d1c7c0cdf7ba ("vfio: map contiguous areas in one go") Cc: stable@dpdk.org Signed-off-by: Nithin Dabilpuram Acked-by: Anatoly Burakov Acked-by: David Christensen --=20 You are receiving this mail because: You are the assignee for the bug.=