From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0068.outbound.protection.outlook.com [104.47.38.68]) by dpdk.org (Postfix) with ESMTP id 4741B7CAB for ; Thu, 22 Jun 2017 15:57:28 +0200 (CEST) Received: from CY1PR03CA0033.namprd03.prod.outlook.com (10.174.128.43) by BN1PR0301MB0593.namprd03.prod.outlook.com (10.160.170.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 13:57:28 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::179) by CY1PR03CA0033.outlook.office365.com (2603:10b6:600::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Thu, 22 Jun 2017 13:57:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1178.14 via Frontend Transport; Thu, 22 Jun 2017 13:57:27 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5MDv8wO030656; Thu, 22 Jun 2017 06:57:25 -0700 From: Hemant Agrawal To: CC: , Date: Thu, 22 Jun 2017 19:27:15 +0530 Message-ID: <1498139837-19303-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498139837-19303-1-git-send-email-hemant.agrawal@nxp.com> References: <1498139837-19303-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131426134473170281; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39840400002)(39380400002)(39850400002)(39450400003)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(86362001)(8656002)(53936002)(2950100002)(76176999)(50986999)(54906002)(81166006)(6916009)(104016004)(81156014)(305945005)(356003)(77096006)(85426001)(110136004)(8676002)(6666003)(36756003)(50466002)(2906002)(48376002)(47776003)(5003940100001)(106466001)(50226002)(105606002)(189998001)(38730400002)(5660300001)(2351001)(33646002)(498600001)(8936002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0593; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1AFFO11FD036; 1:ndW6Kx4VLglrfLWhqgvhz5vJHgWneVizjUW3E9OD2?= =?us-ascii?Q?/nfF3Ve/4FT8G3YcQVIJBa/CqNfUmLBmGbJ+HuD3FrqvmBRxDHbpv1yVoNOp?= =?us-ascii?Q?H7MIlqgwZ2LT6St2HyJN3SryE4EOxruAKzIWSLjaau92mju8EYiKkzc4fPGQ?= =?us-ascii?Q?8pUSiaKg2sdyyW16l/vSZcWOnMSjeBQdg1dtRYz4PR7woI9Y4c/fqNNBJZOg?= =?us-ascii?Q?uwOtqUl2ZfYLjgMJDFAj5V4y8k3/ucsnAfinvSkXc0bvLOFyXaDVM8sD2N0X?= =?us-ascii?Q?2GGlckqL9m+/OPI4V+UFIk/+zin77p6Dvf4dz1/fNfWHdeCTHbB182KWQPP3?= =?us-ascii?Q?Dmq9TIE7Apij4hWryqnIMQ5OvGuzPjsquWpJp3QY/vXF35MZnZ9Y4+IifKsG?= =?us-ascii?Q?NWyKK6adIv6yf780ZMMNwSDkDA1Rec3FKSiHH5jTne6TIIOfUeZBdc2PFQW5?= =?us-ascii?Q?CqwuSL9bVUWJ0X/N/AQE2QpcgZqBJaiWjYjke/sAO4zP340POt0BDclwS7Me?= =?us-ascii?Q?gywkv5i8O9r6YTL76nwQy7tvQfkAqmMKtznx+kcAGtJ6ueFhVtG3EbLVlVFs?= =?us-ascii?Q?OYLVyOfpjYaOxLSWYqsyi4D2ei/TnMqkQdGCtz8BUt3PIqAFeoHSsg7JnqhH?= =?us-ascii?Q?8VnUfvYVtYuuk5oXujY2ujcmEMh4InxCJbeLS05d9br4aJAztPrBRmDnG3Bq?= =?us-ascii?Q?guPZnRtzlr3Ip6ca+3p1EAmItmYejzfAqHbHy1ovfHWI48Fyz2kyJedkthcq?= =?us-ascii?Q?3+9wSk0W2pALASEsKFGEjp6y1mLuZYmmmZ5KDgKNucECdGBtrhlBft9xC1dk?= =?us-ascii?Q?4vxgpr2jRl9tK4NSbcw3eTEiM5dFZSbZ/CHebDxCMq1q8oUK13lh8saX29ZG?= =?us-ascii?Q?cWlpG1r5pX42ZAgR+83a6f98DTN1ALSApBwZh7+vzCRh70Jof+Vtr8uNt+he?= =?us-ascii?Q?m8e+NYHHRXvmiDb+Q+OE0/PpLyRuAaklrM9u/9WOOTMXjxg69ybfdfySIO5K?= =?us-ascii?Q?QfRaJLUQoBNcYvzxNT5fzpQ/xlD0b7eKaJBZGdUlfQz/c4f9L5mM8XWMLWm5?= =?us-ascii?Q?VwHlK0CsKDu9H6mK1jQN2oJykpfvnjRKYNIUgCk1Nhhf/i2ssku5vjEFbnUF?= =?us-ascii?Q?XcgWd1vlH0=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66878272-355c-42a0-7bdd-08d4b9769dee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN1PR0301MB0593; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0593; 3:fRGGM4TiVwirWwkHUrnuqGQzLxIirZdGUxHNAPoONeBkWVvUONjyfaM1xk2uhJW+7o9kTwtzDzbahB6J3YDVD3J8+karIRUSGakiPVzgafw1KjmdpBrK7d5ObEft03KA6P1gsGuo278qqU3i2jWHXzml2OlxjBxQog36RzNM2h/s/HGyu13txBlWzxWtFYQkjbmMWMd9iyTUtrwFXKenuIVAMbWxTIWB345QFnekzaS8U+grPSTVR4XDFiJnHVyDeyMsZj1tdZmkAHmrxwhP+WAAQ+J8wySbd3b4R20XfAvOtqeClHgIk4PQ+VoRgfcP2FhHB8iZwf12+0AgddeyMR24zkg/bLJ6NexZj+xsCCML9++Xkl4ikcjczk1rqfnEzwNZDWEUxURJBBX4+xYSB8yLsrvJ9LlUJaNU5THjrcVDtHNIVr0oJxGYoNQn6+re; 25:ajIUdUraM7b1PekcE2b1qRxfPN7psQgHLxO689EBoHl6IhME0TqcYaCnCW0H5S0EybE3m2lYNt6/AAnHMhOQjj6XohqYerRZoXhUCDtWO5LuBUxEAfU4q0DNXJ0TsjCWWNK5ZeWlwhEOpls8USZH8/1nGlnoCINjqA5dpNIpfVg5eJULkeOHbbMz52Aa4XZXg8fhPr9Js9RoMGQ+SFXTBFaCAiEk9+KC01Tl9bw5IVS3VC4ZrUtAnVDTtZ9UGJFxlN13Y3abBy32BDUeaxYRZQu2y8PtRVvUBQ1eLFq6seKSLfiN22DHfTN96jysFbtbYgbu+dYg/7g6oGJTyF6RIG6/UkHki5P9pau/jes5EOkRw/6nfcJ4iVPAMIF0tMxN1SfjoBLfMsL+B7JtFb7wM3er+l8pHCemRjjSxllNiO1uij3wxfPEMojlUluW9RmptKZ9+hNQPkTZDHiFw5/6zrrEqdqeF2nYyKLrVy808JE= X-MS-TrafficTypeDiagnostic: BN1PR0301MB0593: X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0593; 31:gvYFAXnqcN6Sj8MioO2SQnuUbN8F8DxzVmOq9xmqicshzmaIbsnWuTg7L7T9ku2jtKm2K00cnOgepEi+Wjar/Fc0GZVRF2gW9lF59DjEWJZoERjPrCbGpXLu8xALNYOgJGsleBwViCMlaZVmYT1crfiOQLU45wy7c8IUexhts1/91hNMIHaDAyKZZFpHu2YV5uudiK9MdicIdw76YX3m/TpuT95RUA2tPb/X3bs2TIZwXBBehDBgSQFCS7s34JRpgqDFMy8lWdK9cOsMyEVHSg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(13016025)(5005006)(13018025)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6096035)(20161123563025)(20161123565025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR0301MB0593; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR0301MB0593; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0593; 4:moRujT/T7/9YIphV32m3LQVd+TOVaXW3vUSpI9bv?= =?us-ascii?Q?NXxYx9/4iztHJ4y9UVxAB5QgXQFRMl9p0eooo5h4Su3+vDjsWpZpp3KWrkpv?= =?us-ascii?Q?qcFhkj8pQTvU2Q1R2oE2iRRNgghxyTA584Bx7zZ9y8l4+TI5rOHp8unlrey7?= =?us-ascii?Q?OxQzK0K8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rH7+Ae6UlBx8vUtSV07wR+bvqePoQvAGZClSpgv1?= =?us-ascii?Q?KdGcLA1UjQJh6pMQCU2k68JHEzJPv9srdes5y/zchzyRAFP0O0OPayiPmqiV?= =?us-ascii?Q?w5j02PWRKA7ZyVT1wXZvSz5wylp1sXvBMb0zFBSfELSLLKhhOIkIqPh3feyP?= =?us-ascii?Q?I9kkyf+LW6JEYjDrg2nCd2a2zfC7Dsb4qbkp1eFiBl5uXU6tZcKc0bKWrCIg?= =?us-ascii?Q?da/2Fg2QQOC5DOVQuz+A7bTV3WBjwzrg90MnAzD7VeZhq95ctORpH8grb0j4?= =?us-ascii?Q?2Cb6a1HZ2ea/pDG3j+cLOwZN7hWclO20dja0Pzn4IB8NTHCrlwhb75c1eOMd?= =?us-ascii?Q?+0OKUGSx9iEk9Tlt1191pQgnk3GLZKzeJ8a89ip2d8Uy6WnORnWe9OL/KG74?= =?us-ascii?Q?xnRhkT2QcQ1WDIOujPQgZ17ccyd8t9IaGXP2cxh4vrigUZ5ryTOK/VoM8lfY?= =?us-ascii?Q?jXrRi6VVp44ePDa+bkK6YJyhb03A338Ril22CbmfFJd7LvcvrOcIA1qKf1+m?= =?us-ascii?Q?7GHLTvhYPmpS866TIV6yW8zdNuV3QETdEpN+kTAceA5WrLDMxrAgYu2tmTgv?= =?us-ascii?Q?yCWHonMdoA8mnMhh8xCtCEPNK9cY+eH1dUckqHH8PWeKHr7qStyVZN6XWHyP?= =?us-ascii?Q?OHP1dJ6WqOw7NgEI+RKKLgz38aEyB+tg/mFJLDH52DI02Xcu6Dd4pKLInxxc?= =?us-ascii?Q?R6tgaffR3fmzkd2nfOv1gyYqkfvuJDHc31WasnrRr?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0593; 6:arMyxG827WRZ/PSDvM4rCcZ9R2RMD+upvNLlwVgA?= =?us-ascii?Q?2q5d81A7H9FMn8Lyde10XswQP+woTiNP18xZFVEtqvWB7afHBpUmPiorWWOC?= =?us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D810u1vCgRoqQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0593; 5:t7Hl8WGmLJnbOJlGU3OgfeqYrhNrl9QtzeP4lazSQdO1Nyb0IxCwf0uWf645BrWEZPMsTrQ/dUJ5olwzfgOIXVzMaMc/zcwCqF8vs7BwURRvtW0zeyEpxh2XaNdc/wAyRbMPgR3vbWLObeoEpNxcjOwiCzLBSyyu71JGzzod73cDcXoA3d79+ke+w0NGk0yf9i9ZqK6rmySZTPeCptr2WlnXQvk3++USvvz+PgjpBoZ9+vzeOPUa5SXhNucSa9IhU/bpr3o1RQ65WDce31LiDXYmJ+v9TcqE/ceQFBrOxseddE0ZE+MGENndHI79eOZ38eZQD1IQfoZiNB+5R2e/HX5mjo1IZ5peQwMV8PnsKG48kCHPjjbXFCzytQsnowj7lxJq2qv7z9cckr5RmKbvklgqiioSSRmIh6Ys+ASKITjD+V0VRMXiwvsIXfghRTdLwrf5//yPEh/N3UGMD9zcZfwtloEF7QiPrxmyvelq5JSer2gjdt/ai3Y38EZ+7T6+6ShQtazD9Y2rXnughfkI+A==; 24:LchABr7VbZAnXrUl5JTG7eB+AKUGwpsq5mHrr4SBn+aVrCi1w5k9/dAD6jxCU8rOoFSKJsgBzXxleDdHjLcWVdnbGHqjO9jrLIVBzPCHe8g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0593; 7:iCyMfXgLr6BZTJL2NoBACt0bAO6IK68rQbuS8Fi+zj5mDFsULbSBB7m81szPLus0VzKzxep06KdnAyjYqNKm1ejpxOHLYaJYhCbnw1rLAEc5y+gxGh2F0yXdX0tvq0oQ8/HFk11NzqMYjknabIn96/4NWvFaA9ePAxjXZJHN3WpYv4tjZMZO4MhRMcVVj1U6rfcCNmfTjL6rps05plucqEqlCH2Jf7dr/GBu2dFoJX4g+8+lDMBkXC+GwM5uBs+EBGzkGi999nD0y23aZTXVhFlNbJwPD/XCDnFVeX+N6Dgi7P7bw8HAmE3h1zvuwy2ow7rlZGZ5Gu0ML/IfRqlbOX6cT8pa94wasbkEQeHQIYNBqgO0Uozeb0rKarly7nrarDPBMiLtTmemy9H2xs1stWt5u8Wx3t9Y9Qfds5GLIooQ+ZGWPrfBU8eBstAjtYfp3t1KtIVytx74ewQTybAtbCmL1waRQ7iUArAWTg8DYsffe2GSz/q6nnLIYyPWufZk//CpwO4frdhMx9FXgpgT9A0xlccAU5KFph0LkJ56kzGa74QFkPjxqR6PbUjRhfYLJh1cUmOdLkSNULXI0oPXRP1L5sUN3KK/qgaKfdqEW8ycBPczcb2gdNzDZ6fHeaoXUc8xwQrRUvdRCaq1p44mBwZtsaqNAVKd9VYAONJgborlpbIUd0MEoMeRAgVSk5I12UkHMCZK+y8ryMglrlkxm6h8+r6RqdLntLgZAN/IP9SUld5b8tY0etsp7u3Kkgult1gHlTFyBW13byEa56XmTDXOSnqINUfvuadkBWHb/qw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 13:57:27.1453 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0593 Subject: [dpdk-dev] [PATCH 08/10] bus/fslmc: add check for memseg availability 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, 22 Jun 2017 13:57:29 -0000 From: Shreyansh Jain Cleanup the dma map logic for memsegs. Earlier, in case DMA mapping reaching end of segment, it reports a suprious error. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_vfio.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 8471a9a..49bb670 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -214,17 +214,18 @@ int rte_fslmc_vfio_dmamap(void) if (is_dma_done) return 0; - is_dma_done = 1; - for (i = 0; i < RTE_MAX_MEMSEG; i++) { - memseg = rte_eal_get_physmem_layout(); - if (memseg == NULL) { - FSLMC_VFIO_LOG(ERR, "Cannot get physical layout."); - return -ENODEV; - } + memseg = rte_eal_get_physmem_layout(); + if (memseg == NULL) { + FSLMC_VFIO_LOG(ERR, "Cannot get physical layout."); + return -ENODEV; + } - if (memseg[i].addr == NULL && memseg[i].len == 0) + for (i = 0; i < RTE_MAX_MEMSEG; i++) { + if (memseg[i].addr == NULL && memseg[i].len == 0) { + FSLMC_VFIO_LOG(DEBUG, "Total %d segments found.", i); break; + } dma_map.size = memseg[i].len; dma_map.vaddr = memseg[i].addr_64; @@ -254,12 +255,20 @@ int rte_fslmc_vfio_dmamap(void) } } + /* Verifying that at least single segment is available */ + if (i <= 0) { + FSLMC_VFIO_LOG(ERR, "No Segments found for VFIO Mapping"); + return -1; + } + /* TODO - This is a W.A. as VFIO currently does not add the mapping of * the interrupt region to SMMU. This should be removed once the * support is added in the Kernel. */ vfio_map_irq_region(group); + is_dma_done = 1; + return 0; } -- 2.7.4