From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id DE6CA187 for ; Mon, 30 Apr 2018 16:42:47 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id o4-v6so8283810wrm.0 for ; Mon, 30 Apr 2018 07:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ooq59BmcWs7HGc88Db4cczDvtmEUKqGXrPWxW6IXN9s=; b=dGD5VtiDczfg1sXQajfAdHE358e1fpFl0UkqeVc1zRkV0qjIDY3ASFzZiEMkBLIpnw sfKbwGqMNACb+nVBU2DqCWm6ZRUrzim8p1NRV1JWb8y/tk6MlavhMUHpsJsajt+RKZ86 0Pm09LVuMXTK+gIdXC4Nlf9vrWPVgKh2RJPml7Zn1j1i2sTFiXS/YhCAo9dC77vdcIuL ET/Xiab4rVi5vzc/I/SnKqxpmZkP0Qu+Wbx8AJ5a8E80rFBwIVSXX7csZOh0lybHAn3P /Izep/Yr5AvilSVOtvNO4aZPmMVXJjLhZ1xScIgX/IQ9wCXHNpkxIGAwfdTWr0KZWWYm 2/9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ooq59BmcWs7HGc88Db4cczDvtmEUKqGXrPWxW6IXN9s=; b=iXbdIZS55F8ZQvIsacRfPlkKdIKJdMBmKA9+CrjRwNOLMoHXQt8wAnm39G64Nl7IOZ 7pI2Aqj1vq4bxsxat3cst0BwMkafb1RFT1UFYUM8fOBiiehmksJiyH1505CRf+k/Kfxm GPy0Oy4DCqnBjddNSm9/0J/Nw3XPcaMkaYA/EOprmrTLYt/o5ggOEGzBCa1WkTmYJYvi fK3btzgqafOHlgPHFt1R0RoQmEQABGM7Zvt0v1PKueqc+AtHStJWWM80882zbEGBd5dO PSNXYaLB59hCWwPT3V8vbKqpiTtX+RVD1havsuV7owHf+VZx5NvEwfWNQEiLb5LL3FDk F42A== X-Gm-Message-State: ALQs6tCoM6wQpW3B17HNOm+1eqR8q5cY6VydKvGuolc37C61As4LZQHp KS2hiuZqZZHkE2TfFWpN5B0= X-Google-Smtp-Source: AB8JxZqkHNHILekmBKdNU1At3sv3VrsQLsQE7cTsutcpBa/5/aACviIVbECG+Nf6K6PQbDzU60KjtA== X-Received: by 2002:adf:9c01:: with SMTP id f1-v6mr1692978wrc.171.1525099367622; Mon, 30 Apr 2018 07:42:47 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id c14sm9599517wmi.28.2018.04.30.07.42.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:42:46 -0700 (PDT) From: luca.boccassi@gmail.com To: Anatoly Burakov Cc: Hemant Agrawal , Santosh Shukla , dpdk stable Date: Mon, 30 Apr 2018 15:40:29 +0100 Message-Id: <20180430144223.18657-14-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'bus/fslmc: do not needlessly check for IOVA mode' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:42:48 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From ed0cb73db919e4a382f991c8b3863c6dc6f54546 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Wed, 4 Apr 2018 15:40:46 +0100 Subject: [PATCH] bus/fslmc: do not needlessly check for IOVA mode [ upstream commit 634d549c9c34385b86b1ca4d422adcc20c696517 ] We already set IOVA addresses of memsegs and memzones to VA address during initialization, so we don't need to check whether we're in RTE_IOVA_VA mode anywhere else. Signed-off-by: Anatoly Burakov Acked-by: Hemant Agrawal Acked-by: Santosh Shukla --- 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 1241295be..affc9f80e 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 -- 2.14.2