From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id A8CDF8D91 for ; Wed, 25 Nov 2015 12:04:23 +0100 (CET) Received: by wmww144 with SMTP id w144so64244489wmw.0 for ; Wed, 25 Nov 2015 03:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=G1GULhcW+GNR80qmHVcLVKG/26qiG2j2Zmjn58VxI0g=; b=z+1Tl9QdoAO8hMbEu162ufBQ7E8MChBJ237swJdloHJP3ZWvjM7J0y76rDb+q3MaWx RNPbY9NqMflvAmeQI/dWS9Vox/HS19D17jtttzmDWbQTmyS6FkzxYMOYrU93X3ID6EUn mupZj/C3q1GQ+Gc3CINKuXMY3GwX0FA1FC/+q0b4iqX7H+zuyTTBiJOFxgxTd5tkhrGR wVKh0Hi7BI/rWunHR9PqMybszCKOz+GJU8peCcQwxmLv5XGiJmL0hCF8k0PnKdz1oaPr A9hoIXyKBXwPcCjt6KYr1xg4FZk0+a46SUDpgA+fa6QEMQ72tN1HofJ8FzwVH0DkcbZD cpXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=G1GULhcW+GNR80qmHVcLVKG/26qiG2j2Zmjn58VxI0g=; b=RBgBMzW/pzyLFnstILOj0kYPKbOkt2CqLz13M73e3OYx/bfBvt+uckEmOKwWGZrPtr T7NNuId/87SS4igMUPOBCIP41uqZtWZ9qdKXgQVPfff0kRwG0/5c1/+rCsW6rhq52Cj6 GrBM7Qgn1SgpC3rK7pMytqNHG10botp7SoVvXVWynSyfJNamb3jcuKzR9MiPPpETvwie mCygBPaBdXyB6Uxn4w0D9j6OT1a0Hu5enZ6dp/mMeGQi+8DAsAT1wyHGiFjbt/JBBb36 gtuv946ZsN3dRHk2O7ZXmyF3NGjUds1mxmYqosUIibNEFXxFE/ru6iIwMBeprvyjPSmA kJBg== X-Gm-Message-State: ALoCoQkwgjyAS3SB5gII7wfhp9cIZcqI3w+0pUAnBDISwh9qlI4S4U/qz7clfvhWQkz1r3pLgtAJ X-Received: by 10.28.232.136 with SMTP id f8mr4017706wmi.1.1448449463380; Wed, 25 Nov 2015 03:04:23 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id pc2sm22562819wjb.11.2015.11.25.03.04.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 03:04:22 -0800 (PST) From: Thomas Monjalon To: Bruce Richardson Date: Wed, 25 Nov 2015 12:03:05 +0100 Message-ID: <49956413.am4JoMJyVU@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20151125110020.GA14808@bricha3-MOBL3> References: <56554B08.3040400@ndsl.kaist.edu> <1711935.0QY3Nxc9zX@xps13> <20151125110020.GA14808@bricha3-MOBL3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] no hugepage with UIO poll-mode driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2015 11:04:23 -0000 2015-11-25 11:00, Bruce Richardson: > On Wed, Nov 25, 2015 at 11:23:57AM +0100, Thomas Monjalon wrote: > > 2015-11-25 10:08, Bruce Richardson: > > > On Wed, Nov 25, 2015 at 03:39:17PM +0900, Younghwan Go wrote: > > > > Hi Jianfeng, > > > > > > > > Thanks for the email. rte mempool was successfully created without any > > > > error. Now the next problem is that rte_eth_rx_burst() is always returning 0 > > > > as if there was no packet to receive... Do you have any suggestion on what > > > > might be causing this issue? In the meantime, I will be digging through > > > > ixgbe driver code to see what's going on. > > > > > > > > Thank you, > > > > Younghwan > > > > > > > > > > The problem is that with --no-huge we don't have the physical address of the memory > > > to write to the network card. That's what it's marked as for testing only. > > > > Even with rte_mem_virt2phy() + rte_mem_lock_page() ? > > > With no-huge, we just set up a single memory segment at startup and set its > "physaddr" to be the virtual address. > > /* hugetlbfs can be disabled */ > if (internal_config.no_hugetlbfs) { > addr = mmap(NULL, internal_config.memory, PROT_READ | PROT_WRITE, > MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); > if (addr == MAP_FAILED) { > RTE_LOG(ERR, EAL, "%s: mmap() failed: %s\n", __func__, > strerror(errno)); > return -1; > } > mcfg->memseg[0].phys_addr = (phys_addr_t)(uintptr_t)addr; rte_mem_virt2phy() does not use memseg.phys_addr but /proc/self/pagemap: /* * the pfn (page frame number) are bits 0-54 (see * pagemap.txt in linux Documentation) */ physaddr = ((page & 0x7fffffffffffffULL) * page_size) + ((unsigned long)virtaddr % page_size);