From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mta-01.yadro.com (mta-01.yadro.com [89.207.88.251]) by dpdk.org (Postfix) with ESMTP id C1C335920 for ; Thu, 6 Dec 2018 17:26:17 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id E0C8641950 for ; Thu, 6 Dec 2018 16:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-language:content-transfer-encoding:content-type :content-type:mime-version:user-agent:date:date:message-id :subject:subject:from:from:received:received:received; s=mta-01; t=1544113571; x=1545927972; bh=R8N00qRpgFSilyFfh9YjxRXeC49MAUrv F4DD4bM+b4w=; b=jXp0qkLbhgMqT0/7HtzoVvsRLdzM+dWANeMe5mT/uch9ZUay fp7u5LX/pG87eKcwGU3FVUjz0jQjoqu5cVgqFHJsN7Vx1e0xPbDURyD9tJeUAvbj uK0oPCbuU1MhWyxtuZA4yIAO1JGsdnomDR0CVx4+i/OzAc/gGy2kyXyyLWU= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id meOVy8Ic1hi1 for ; Thu, 6 Dec 2018 19:26:11 +0300 (MSK) Received: from T-EXCH-02.corp.yadro.com (t-exch-02.corp.yadro.com [172.17.10.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 8480A4194D for ; Thu, 6 Dec 2018 19:26:11 +0300 (MSK) Received: from [172.17.14.159] (172.17.14.159) by T-EXCH-02.corp.yadro.com (172.17.10.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Thu, 6 Dec 2018 19:26:11 +0300 To: , Nikolay Semenov From: Sergey Kachkin Message-ID: <3860c960-12cd-2333-05bb-ca9ee387e9d6@yadro.com> Date: Thu, 6 Dec 2018 19:26:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [172.17.14.159] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-02.corp.yadro.com (172.17.10.102) X-Mailman-Approved-At: Mon, 10 Dec 2018 10:47:15 +0100 Subject: [dpdk-dev] DPDK + Mellanox on POWER8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 16:26:18 -0000 Hi, we are interested to run DPDK 18.11 on POWER8 based server.  I've read the recent release notes update regarding P8 support. At the same time after some playing I was able to run l2fwd with huge pages normally by hacking following commits: https://github.com/DPDK/dpdk/commit/284ae3e9ff9a92575c28c858efd2c85c8de6d440 https://github.com/DPDK/dpdk/commit/1df21702873dab6ed95cfc5b7828553afd39fcde Exact modifications are: diff ../dpdk-18.11/lib/librte_eal/linuxapp/eal/eal_memory.c 849,851c849 < #ifdef RTE_ARCH_PPC_64 and diff ../dpdk-18.11/lib/librte_eal/common/eal_common_memory.c 55,58c55 < < static uint64_t baseaddr = 0; < --- > static uint64_t baseaddr = 0x100000000; Without the modifications above, l2fwd with huge pages fails. The reason is following mmap() in alloc_seg() failing with EBUSY. strace: mmap(0x101000000, 34376515584, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x101000000    // first mmap in alloc_va_space() -> eal_get_virtual_area() ....... mmap(0x101000000, 16777216, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED|MAP_POPULATE, 136, 0) = -1 EBUSY (Device or resource busy) // this mmap in alloc_seg() fails. My goal is to get DPDK 18.11 + support for POWER8 based machines. I'm new to DPDK and I'd like to ask your feedback if the hacks above could harm any DPDK functionality? (so far I do not see any obvious issue). If not, can we go further with POWER8 support in new DPDK versions? thanks in advance, regards, Sergey