From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0081.outbound.protection.outlook.com [104.47.0.81]) by dpdk.org (Postfix) with ESMTP id 44A4EAAAC; Mon, 2 Apr 2018 09:47:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=obIq/DPZYm54LgsjPFFOnYYnmdvvI2hO2+Q0vsE0frM=; b=V035acIcasA8+V9j3kXbPV+UGIjP+oPg40x0Zt+0BEAG+MUr8CCH0Xg+PW1ugzXguQcQXZeJEhcufP8EaD6WVUPVC0JVuzhbYtToscDOlk4WFRcHiUqRUv1ygun3OesPK1vr1vAo+m6R/bgB4RKfh+c8e8J2MEXbB7b+bVkjY+g= Received: from [10.232.133.65] (14.142.187.166) by DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 07:47:28 +0000 To: Anatoly Burakov , dev@dpdk.org Cc: Hemant Agrawal , Shreyansh Jain , thomas@monjalon.net, santosh.shukla@caviumnetworks.com, stable@dpdk.org References: <37c2e329be49799fae8328e4dd93e5c95da3d326.1522585461.git.anatoly.burakov@intel.com> From: Hemant Agrawal Message-ID: Date: Mon, 2 Apr 2018 13:17:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::18) To DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9df0a648-8002-4d36-c1e5-08d5986dfc84 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0768; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 3:YCHs5Owi2tAHG+fzIP+74t7B+jfwHBYxb9raenbnRf0FGsZ9O1TyOYg0On7GDXXbqFizHWqpOumUvTJMfnKcnT7hg0qioA0QvNEWvQK4Z/hl6Qy04AH5TKyynFjPHQLYnLAWUsIdSDJIXW6L59ORBMuWSwKYgtvGuFKeq/xne1pMDGaB0QngzpQ9T5/0D8+pnmhFfeBICkS6IOy13TYuT4XU/UbUhzdH172xH6aztAPkW4+vo1QuSJZ+S/AfwNs/; 25:9DC6Zww5jnBLtFuLqKHp+HjfnC/potb07undyhO7orDLj5x1Ayy8B5XDsgGmBBPridpSV3obvszAS78u4DyJua/XJxZLoUo17L9Gi+5iHwZH+DPisRXYIg1oD9chS9SxEilYq9LwP1QKveRNRAJUKvjgRwZyC9EL/VkKDKpC07GTBSsE5Vf/Yab24WhEt1IPV3LrkbxrSU1hih7RFyQXmR3b76qI6JFZVa4T1qTjgxSPRkXswqxRROpm4S4d12t4z0UJEEfnT4Vxtg7MwzI0Ma+TN4Z1rVYXfi5rr0uCsMjEmt89KWhem3CUQdLamEEiG2SxOirKs8XsvFdA2tYt0g==; 31:XqMFc09f8dPDvpq90aLLCs16DwjExhr4t/7XpUmJimPZ7VxASsS5i++gpDV0hUVLCogQ9j/veYpxNev+BAfzbnviIRLzJa6SelAnKL5u5zolr2+Mn40F7NIohGJJYSQ6gCj1EwqtJZ/uKJ1c6To8sk9QM4XrkXq3AHlecCGmAHD2PalaSYyRxhoQmTFsJciEyuvLsvrPWq5NSAKkKOQrugKpaFlS/EQqC2owuf9Gal8= X-MS-TrafficTypeDiagnostic: DB4PR04MB0768: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 20:JHSxQCdesN9+bKlhEck7UKh18setmlOj1LXo6/AgPYV2FpC32Qnk4ZkbdP9qyjpAFfMge3v+ZCBzuwpbkR0rTX3o80qoSJyEkzba8S7idRoAfgf7gib1JaseTy9uKxaabZ7XI23QFPP+ORxoODmDhQTOHupaiavA8F0NeeRBvGamu/9teEtEXUiwZGsqOwDXh7oQxXF1UdP0YwX8/EesEQVwD6E8AUiQRjACC6sdgHdUTiz+0nY9G2JKK+AB6zREa+ibxXisWqQjJmvkSD/Vq8cftsgTna/3k+PmQy65uK8FbP7DcZiO6a3NHV424crTUWQeRcvv/OZn/F5rqdHl4CwczczqqQNa1jIy/mqLzW/Jsq1+eJH6daOSFM/sw/yMdUYdRx3JV/XQUPILNk1547ArjPxhnIcmZpyJV+IL+EPfOk9BBMMylaW6ty0cXe7+3Rw/Cb6mY/CyCHzQesLi22W4BnzWLf28OP5jBwTmNNfh2b1dXFSDf65GMQNaQN1f; 4:56EV/DRsJl0DguvzxA6Z84sWqKyDeduiVq6yFkOm+3zHlyZq82XgVDhpOExqwVJ16/4q0tJVUWBN9X1CLVfCId87l0dfUHKk22cgVufdRjn4o/kRiuCU8YDNCH/+DKij9hKbRzWql9FleJYnnYqUL7B49D0WWg4xopkvJsnRCInfeQyTyeVOSWt7/2Kyl470+iP+B73Mm2x7jfX3/yWM3B0TSySLfHqwal/5TP0T6oJaaohTv7/mBDpFZj6dChaX2gy+zaAw5lZN1FzeDLS8UZjPgStokkk8UHTDPsIC0J5As2BNug8Krc7eJda1sazg4TIqEhh25Q3EMEem24B/lok4lAh0GeU7vidGziHmngA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DB4PR04MB0768; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0768; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(396003)(39380400002)(346002)(39860400002)(376002)(366004)(199004)(189003)(106356001)(76176011)(97736004)(305945005)(7736002)(52116002)(5009440100003)(3846002)(50466002)(25786009)(2616005)(8676002)(486005)(2486003)(230700001)(52146003)(6116002)(67846002)(31686004)(64126003)(81156014)(65826007)(5660300001)(486005)(4326008)(956004)(446003)(81166006)(11346002)(476003)(105586002)(23676004)(68736007)(8936002)(53936002)(16526019)(55236004)(31696002)(6246003)(86362001)(6666003)(186003)(2906002)(16576012)(229853002)(54906003)(478600001)(77096007)(386003)(66066001)(316002)(6486002)(65806001)(53546011)(65956001)(47776003)(58126008)(26005)(36756003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0768; H:[10.232.133.65]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjRQUjA0TUIwNzY4OzIzOklpcUFTa3ZiM2FESFprUVZ1UEFOdVdoOUNY?= =?utf-8?B?b1BReUZuSk9paGtIS3c2UTNuZDlaYmhOTjNvcDUyVVVBK2dYYTgwaTBpVmhC?= =?utf-8?B?NFBnT0l1dllkOExkZEh3bE1iMlhmOWtoZWEyajhEM0txandkY2VoMVowdmh4?= =?utf-8?B?SUN2aGx2ZHNjZ3NTSEhIM2JpbU43aHpPcXZncXlvQ0hnTnpJVEtSTlRnSldK?= =?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vMTl2V3RrQzc1V1FzQm1tQ3RlY0swWC96?= =?utf-8?Q?LNNIA2nE3bYkquDjU68HStsaK?= X-Microsoft-Antispam-Message-Info: i60kVj49X0vzEz7bjuTnmwuFu2KM31n5u2D+ELIqCYegejKGBkBt4Ulw5RCiklwdGC0Gu6UBjT54omE5cqyCko+t6PxXz4LysSia/FjytcStx6Y6cwjw6S9XLe7hbcqAUI4t8OIdHo5rDEg4x/eBhtR05zWbTG2tPU3BE+yo0xrTRVJsg8ga0ERtgmSOslR/ X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 6:3XSzWkHdGZiPGiTFIv8lRj2jBSXLWeie7upQGL8U2axGttAOhqbJt4LD9MrVrgW1fIyKYWsN7ev13b1qp1DpHUejkgTPo6CYA2itWYpGtYxpa2K4tmdeKVIFeJ89LFGIgKu3OUIRKlg7oYd6aHfMOi+satO/DJ8m2vqNhQD3FByrSzSOec5xTci7q5dEJqKMqVMZN36NRu328nZTAhjORQJNG2DIuP5uQPDfiqJ0OKYJTzskIGGXjDwgMckT4XmkwG9jmN7PFc7SoBDoR2aZdWrr5DEuC/2THmasP0+J0azxTb6QTOB8S6ZUzs+sOVzUTcKzV0T9o5Wuxq4NITNrf51nv63KsmJX9/xTAS7Q6qYMMzfY6wenQqL6nHbTwDLUURweiOhcNfIbWFnuIupDaYIEAHB6HfjkAiXQDGmg5GBHJnHA06Mat5WKJx8mCL6g2eV9UTlu9lxFZ0eHLSY13Q==; 5:HSYYumKbf3bPs8s4spty47bGAZZjVihtGaa0ZcHrXszPw9RVbQVIfZiYZJZLSrumkx9wnYMxitO+yss/j8Nw54VtcdF2c0/xhi7aTupwtdLbh7HFlkr9p4yAR9imr3iJSjbhnbAMSrP+/nT0QNZppf4jwSH4a++t/qznapzCOrE=; 24:BmV65Yv/iVYhzNZkYsclDCqQ6LseNFv68RCjjiTFkAwUyZFs+N+B5OmCcCk80eLkQKTtIuqVykD255FedIMMNnfK2Spy8qD0IksEa81beEw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 7:V5bsMpfuX8IYNmDfBjE7A1RT0lhG2zL1FzTht88tWq+nqzz5wpQKBjPCCWaS9i0LrdWBZZIU9a1uObim11Q3TXiSNx6A7Bb90HlMOgLu4P1xZnvWgdKtfZbx8dHZH9JxcLITvF1EVGX5ueLHm74IGabC5k2MRVdCiMfnWaZxscFm5av+lOQzuwc7wMFLC80uaozzG/l23HR+pLlQHVplPvH8uMCUct0qr/vVuI7P6f2IFJ0/JWZMkdzU5azmeY06 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:47:28.0710 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9df0a648-8002-4d36-c1e5-08d5986dfc84 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0768 Subject: Re: [dpdk-dev] [PATCH 3/4] fslmc: do not needlessly check for IOVA mode 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: Mon, 02 Apr 2018 07:47:31 -0000 On 4/1/2018 5:56 PM, Anatoly Burakov wrote: > Cc: stable@dpdk.org > > Signed-off-by: Anatoly Burakov > --- > drivers/bus/fslmc/fslmc_vfio.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c > index e840ad6..1310190 100644 > --- a/drivers/bus/fslmc/fslmc_vfio.c > +++ b/drivers/bus/fslmc/fslmc_vfio.c > @@ -223,10 +223,7 @@ int rte_fslmc_vfio_dmamap(void) > dma_map.size = memseg[i].len; > dma_map.vaddr = memseg[i].addr_64; > #ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA > - if (rte_eal_iova_mode() == RTE_IOVA_VA) > - dma_map.iova = dma_map.vaddr; > - else > - dma_map.iova = memseg[i].iova; > + dma_map.iova = memseg[i].iova; > #else > dma_map.iova = dma_map.vaddr; > #endif Acked-by: Hemant Agrawal