From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0052.outbound.protection.outlook.com [104.47.38.52]) by dpdk.org (Postfix) with ESMTP id 704DC1B16E for ; Fri, 5 Jan 2018 13:10:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iseBkUezQSgO11DbAh/vsPEexJpGNklJqENSiZL69Z8=; b=eHTj2WzQt0Rs7fDLTRvtYCO8rUuMu5hbYPq3jWaBpDNRRpyVt9hv0Jx9I/9jVsxUOEWUDjDSXDxDIkjGt1C0siqujUo91dPoQlbvBCag8tcLjfN67Jsp7dzZ01K1+TmdFZRDrfAO74ixsKruZ7D8OF9OaTyTI5AJTtiR5W1DcsQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [192.168.0.105] (103.76.57.34) by MWHPR07MB3103.namprd07.prod.outlook.com (10.172.95.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 5 Jan 2018 12:10:35 +0000 To: Maxime Coquelin , Jianfeng Tan , dev@dpdk.org, ferruh.yigit@intel.com Cc: sergio.gonzalez.monroy@intel.com, thomas@monjalon.net, Peter Xu References: <1507718028-12943-1-git-send-email-jianfeng.tan@intel.com> <1507718028-12943-3-git-send-email-jianfeng.tan@intel.com> <6367d190-5d4b-71c1-5790-3b488f4dcc18@redhat.com> From: santosh Message-ID: <4b239748-4b7c-b98d-7123-a5baeb6c8059@caviumnetworks.com> Date: Fri, 5 Jan 2018 17:40:23 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <6367d190-5d4b-71c1-5790-3b488f4dcc18@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [103.76.57.34] X-ClientProxiedBy: SG2PR01CA0095.apcprd01.prod.exchangelabs.com (10.170.138.149) To MWHPR07MB3103.namprd07.prod.outlook.com (10.172.95.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 54340c0c-fb96-442a-d1b5-08d5543554fb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR07MB3103; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3103; 3:khGameVvaHB5fwCSZMfA0KpdWPQw+K62gWtrbNmiZ6j35BCryXJtDae4XADKL73j2D7Qd1vmDjdNXcWJwM2sUuxYs7JcxvN/beMz3dEGScGA6kdRRxJQL7BpytPzQQBtTYEXgwtIRnn3SHd9eyGoad0V+u2dvRU4by2NgFGtrutRrlSvzSWLEs8eX240lbLBauiEXTf6qjsYG+0e1mcycLtSoYEhzMj/C/Z4p5aj6Ui7fKpwlQWsVNsbLEvAv5xl; 25:z1Sielmr+a3ATqqxwy1YOwrui1RgmjLxIwifHjfrFddVU4UHTJQIPzjN/4OmmPSs95OFsp/ASnxVbKH7vmugyvClgVmKGjZP0PgYP+CiLK/WArZfeSkmAk6lcvm/80fO3cxOflvQONJ9123GUqMlXcW8BbwdGTm+Pwa7CzPJBO01EDvZxOFHMrXnoMJqykMTiE8MU+Qdjy6Vd1oMyll4Vhn8kKmDsPYP0tgcK4yXEwkRQBwdK34T1b03VjA5sq95C5hEWleuhR2m0E9CoigQefgfXtVNmL+BYtQcijKLf/t78nMnfpbAyi7f2zdRSyCV0rxV68OZ9DRHuQfLpooHwA==; 31:nFErHqoCZw0FEEGH5oOr8Y/sabGac3bThdGtg/qEiEv+PUGje8wWVHMhDTAigqAloPRrzzgIWMhVSCqHUCWo+9eB8wkD+L7nRS7fgf3YJTpLhbgXeLgj6fpDy1E9ETaGBfvXba03FpDfzvktZ4KwId7yMlckhHr1+iLLv0bSDPSQ4ff0CMTwJdnGLc4ybS8HQgj4pyGFYe3qrncTzytgOaY4OfdGsNTktmrHEhXosuI= X-MS-TrafficTypeDiagnostic: MWHPR07MB3103: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3103; 20:1RwYrpHplDKhcwiFfB6WMPztGT4OWyZp12uZI5fgdJrHwAI6zAb+tFZljUaZbXtYZL+4wvZfzyM8cLKS+ucBDFgadfWXoKk+UrvkFsuWIUXukhekS+qLgs1ZTF9L83QbvnKQo2h/X4waCIOFMyuc3S6jKKeFlKINwUI9rBjhmFjVgc0mt+qFt8megJnhQ+CsChoLmYsl3wGihsJzHnETzvlTk+Dr4YqUdA35uOgjGb9UeytFMndzLjo4/ELkb2ZwXYjfW3U2igckrsxEWonjqzdJ/2vIRsf/Wjw/n31bunB+6f2i0Ix1nZ3OIJkW9PQkeZTmEVxtAfFYRluy2u1kEauseodN85IETrjNNo1W1OxnIGhz/cOPW6iBnKCXZBQF8X2NaaOsaOoKWiW4i2JCFB+zRcPtnKKxfaXvBwnvLjTx5gR47vGA0/C00spSvcCRyWIPXrdyz/kohnDDkFmMqUUOqPp4Ufsx+S9GIcaBKeD0vsSiPXLfykRIvEq/jeJ6HL1YrM0z2EV2LiLLjZ4lOBressBdDhinog1uovrOH4HbztAY8rwMozmDTwz4x5QeAyflYOu93ub0PNUZepKndOueXR0ZAvxoVCxVm4uQW9o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(83566789882024)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(3231023)(944501075)(6041268)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:MWHPR07MB3103; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3103; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3103; 4:DE17zpDB1FM5CLqmLgkbIAQFIJs2+KwIVL97UxGFoDgJPQHDSx0djyH2W8CF+1UDZD0FxlNFbhd1q/5zsQPrpB8N3IlvxkI+tJmtcZ6Yx7BAQaRQUt4vLvNSWiirV8/RW3qIyp0UHfJ/X/Xjt/MpCnahH66PiNzCClyyNY4RPQSOkG9mFgbgxmV6nvhQOruT+lK22Vf/4cxrNx+zvzyOru+ZtGg7ahnVpHOXEbiXQWcv3cHagYRiZDSxeoShex0axs4mfcDt7KQFG6SIlL9KIsCIDargeMsFGmFhe11+69WvBgr1RRIKiP5gVkaEWxV7NLv1jnTGw0i0D2G/Om62fvLe6BgGnhz+Z+sf3Khq/Cc= X-Forefront-PRVS: 05437568AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(39860400002)(376002)(366004)(346002)(39380400002)(396003)(199004)(189003)(24454002)(316002)(110136005)(90366009)(23676004)(16526018)(2486003)(52146003)(3846002)(47776003)(8676002)(81156014)(229853002)(65956001)(81166006)(25786009)(65806001)(230700001)(4326008)(5660300001)(16576012)(97736004)(76176011)(36756003)(2906002)(478600001)(66066001)(65826007)(59450400001)(6306002)(2950100002)(6116002)(52116002)(42882006)(86152003)(6486002)(77096006)(386003)(58126008)(53936002)(6666003)(50466002)(64126003)(966005)(53546011)(72206003)(6246003)(31686004)(53376002)(68736007)(31696002)(83506002)(7736002)(305945005)(106356001)(8936002)(117156002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3103; H:[192.168.0.105]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjA3TUIzMTAzOzIzOjJJYjR5UzJrakd5RUF0dC9YeVpJakR5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yEJ78p7hZlSx9sfbcxuWvqtCAZtn1UET0coOS5R2Ad+xUJhJb4dIwgBeb7DqTCe6SMXIrhzn9XvBgt9CtV56Snlc1AA0Nv50Hdw++BKRVMp2PoBmLtLcJcUq9HgSK5DmOjaFQ/RjqorgVpGs8ri5iGTr3lzi0TC97eZh71BIYRUW/ExWXZXvO3kdt6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2018 12:10:35.7484 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54340c0c-fb96-442a-d1b5-08d5543554fb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3103 Subject: Re: [dpdk-dev] [PATCH 2/2] net: enable IOVA mode for PMDs 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: Fri, 05 Jan 2018 12:10:41 -0000 Hi Maxim, On Friday 05 January 2018 04:02 PM, Maxime Coquelin wrote: > Hi Jianfeng, > > On 10/11/2017 12:33 PM, Jianfeng Tan wrote: >> If we want to enable IOVA mode, introduced by >> commit 93878cf0255e ("eal: introduce helper API for IOVA mode"), >> we need PMDs (for PCI devices) to expose this flag. >> >> Signed-off-by: Jianfeng Tan >> --- [...] > Ferruh, I see you also faced problems with KNI, how did you solved it? > By checking lsmod for rte_kni module and if found then set .iova_mode = _pa, refer [1]. You may follow similar approach.. meaning detect emulation mode Or if not then other-way to introduce --iova-mode=<> eal arg. [1] http://dpdk.org/browse/dpdk/tree/lib/librte_eal/linuxapp/eal/eal.c#n810 Thanks. > Thanks, > Maxime > > [0]: https://bugzilla.redhat.com/show_bug.cgi?id=1530957#c3