From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70040.outbound.protection.outlook.com [40.107.7.40]) by dpdk.org (Postfix) with ESMTP id D84941B160 for ; Tue, 25 Sep 2018 14:55:27 +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:X-MS-Exchange-SenderADCheck; bh=aio6peQKHsZ6NstvR1rXTJ+ebqMat0KZVZZpwGkCJzw=; b=JIj4v1rgR9+mDCZPYhzM4aG0IatvNn8XereTeHn1lbQQcF2SVuV6Pva6g21qSTRyU3AnK81cIMkmHjo6IojuEIop9hV83kH22bl46Agmcp58D3bm7WzexyXTklTbIP0DWtxBvO5JQlSgvyhv1fOdzwQKG3c0bi/kxArmKVNfqTs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Tue, 25 Sep 2018 12:55:24 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com Cc: dev@dpdk.org, anatoly.burakov@intel.com, Shreyansh Jain Date: Tue, 25 Sep 2018 18:24:22 +0530 Message-Id: <20180925125423.7505-5-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925125423.7505-1-shreyansh.jain@nxp.com> References: <20180925125423.7505-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: TYAPR01CA0123.jpnprd01.prod.outlook.com (2603:1096:404:2d::15) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 77c6209f-eead-4bea-ce80-08d622e62a3b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:MLl2E+yn1lYnxp7ESYG4lIVQrkrFBFP/E+XDVs37F1ewUYJusHIDiAABy16jl6jiZroaZnoHmPk8JY17v+drwuZKl02Ne14PKAzYhDLnttMKXqvYLzkeepkfWz5kAayF4fWJzBhofPX5Hm73IBWl2rJREpXV0avAGp6PnB7vr5p0Yy7Wv277hxVbFZ4WKZV33N8RoZfQcobQohksPL2NFh9jyrydQXIppbeuBAt/hBlJtboXbyelfmpWMGd3Hp2Y; 25:VPFqworivdD0JySBQxwgRL3IYGWOkt080j0O9k1mp8Q1Sf/dJCxTyZgTMB0ojF97J/vCN200nknmOU+sJQ+f5pqciX0ES7JOAI/fzOtjfNgRBLBVmNM/ectSYoU60Q1HO8WQCUFy5QwbpyaG3kQcMrmP1TqTaG02F33voO/+jXtu/8btQjb/9uGqpKLSd8Yyb9LmrnX4oFAdBRcgCSrr/cM2RgZGfKxgt/Teelniiy/DMkWVh9q+cW2NKHo0KU4/eou5Fwp9qH1XpbpHc+m+br3J0UxLbpjqnz1v7LMSHdFG/MSkH8mEEh/L6VWAFQ9HtCHSivVnRFL6KxvtiQUrRQ==; 31:fHHjnfFJlgPcm7V2rqmpESXl9qPfe2/vjJA4XjgMO8JNXj+eBZcu4XU0woNrhTrbhp85ihwTt0MBvrbh4cAWhy3dD6vblXjOYH4dgqu5ePG4Ec13s6JukysmckqRk9CM944jcy7Fwn9FJFxV050gqpBYklgF2YbdkkuLyNAw/fDc1OFWFl91Q0HzQEudOAdf7aWHQfmWaps6HEJbj8M8yfg+CZXWhOX++fickj7if2Q= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:JnvIFOcOT/zN8p+G+SAGYFGtehD68M81QSLBk/i1HI7Lnp56E1A0p2ZPT3EOykhs1On2eZGJEyL3/TBrJrH+C4SGrGll6anWjx3vXSOjaWXvazaRRlpxi62ufSHh8y1wBG1EkUH8YhYP41W5SGyYh5HfPEcq4x5Zq3Zb/5keJl0kk9eX2wNeBZd0pKoHpn4lWiFI0R4vfHo7+sMYMcjVDDEH6B42pLHbsvwV2qEiMHr8Ry0A1gtnlnwZiiMeYKCGBz0/4VAzlc9kwo1VJW2GQO+SljDHueQbfFjwsVXfcU5KPW7CWDATF9UOaHvh93a7CXmpys5/NJjrsjVAd7sb1i4uqXBp24jMQEVzhzgZfhaeRs5mqJ7TMAzt5Y/8f27lNFW8EV14EUrxXwjkfmplLYr0RxPmbnss2s4/hXq+d3oB8/Evnd60QmkCSG4OTnYCl0BEPoBfB8OZSJs6ibNN3egSpCJ2zJDS5nwsa6yEH1VjdYN6oc3i6FqW1VlOeBnf; 4:vcCUigzm4NS/Bg3jMyi/NXG7Mmz9KhPRHRsxfnNVEHu3nJsP9DbUNhp4oS10TYIzxHbLXScpJ5fgpRWjT52nq6jVZ60bodlt3xWEY9BmHZQfoCvUSlwrBeXhWmCUk3FiaxTt1L9c2B2LLwYkOhkKKGmGEONHqLRvUJecsHPBf5pKDi+i8cZeQaJa6me6qryXOLagNfJ8iNwI56krw9+N0KlX66oAXutXRVqZl9TAeKGTkbe5seLA0t0OLJdmN3dNj8lOw0CtGByuLfrWfORMZVyegNwBhW4y97IfPFLlsOHdwkgNunPOcTKbNbj1k+4B X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(136003)(346002)(39860400002)(396003)(189003)(199004)(2616005)(5660300001)(48376002)(478600001)(8676002)(11346002)(575784001)(186003)(86362001)(66066001)(25786009)(16526019)(36756003)(2361001)(7736002)(97736004)(6916009)(26005)(34290500001)(305945005)(106356001)(486006)(105586002)(53936002)(476003)(956004)(6512007)(5009440100003)(386003)(8936002)(68736007)(51416003)(50226002)(76176011)(3846002)(1076002)(6506007)(316002)(6116002)(47776003)(16586007)(2906002)(6486002)(2351001)(81156014)(44832011)(81166006)(446003)(52116002)(50466002)(4326008)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:Hl8Jap0vBRBxc4FzBy/qLC1SmKM0FPhwffb3X2TRF?= =?us-ascii?Q?4iwofmBYMq2lo5RFdxWER5IDUNWuFN87KzkL8rk99N7we4GuwH2GSaFv7rcj?= =?us-ascii?Q?fWYbx1IVNKHRybtv7bHzpnqY6U+5IYQ+K/rv/mXxn0LWt8YIYUTUu1GkmBhi?= =?us-ascii?Q?FAXeNJI3hDCLV69SMhhj20AQf7//yqvrzlGUn71zvIPxRRIDoJJi//u2WlPq?= =?us-ascii?Q?DdhO0pPiN2ezOFgZndS+poP6yFfkniOM2dhm26Lm0pW4gD/nstfLsEyMl4fo?= =?us-ascii?Q?9Wo9knonbfPSC4eNzHduQFEajdfJUW2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iBUAzjidSp5K5LcK3w/odGCz6yLSSatEcByxsLRibjtwl8uH5mBpKOeNFuLFw2EoYBo10aoBDlazx/AKA9NIam0WqBxUyes9mpiGMORoE5uzzyZD0ZNo+1Xbyw6PHWerWSH2a8/aMmCVFGSLWBDMUTZYf5et9snaUWPPjhA=; 7:7CZfto4DhVPMx0F2jIpA/F0a0sTYkLkWNZH7HL/JhxcB+ku+c48ki/9A9oNkdQbuJgs5N/6HtFlCixUAaDiHPpAnfxEG4RwltKSy4IMwjLQtdUl2yc9k9LMmTdMjKVvN5McHRJXWy5ggS5JeOYQDy32JPc/YN+8/dn1XTkZ+nKcRoULutsN613UEznh9Ozu/qRpN/PD2jXQ44Q6ZdHZZEGk6D8OxZOFVDqtiRXqNXIlGg4fLrPI5YllnQFucrEXA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 12:55:24.3513 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77c6209f-eead-4bea-ce80-08d622e62a3b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH 4/5] dpaa: enable dpaax library 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: Tue, 25 Sep 2018 12:55:28 -0000 With this patch, dpaa bus and ethernet devices on this bus would start using the physical-virtual library interfaces. This patch impacts mempool/dpaa, event/dpaa and net/dpaa as they are dependent on the bus/dpaa and thus impact linkage of libraries. Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 1 + drivers/bus/dpaa/dpaa_bus.c | 4 ++++ drivers/bus/dpaa/meson.build | 2 +- drivers/bus/dpaa/rte_dpaa_bus.h | 6 ++++++ drivers/crypto/dpaa_sec/Makefile | 1 + drivers/crypto/dpaa_sec/dpaa_sec.c | 6 ++++++ drivers/event/dpaa/Makefile | 1 + drivers/mempool/dpaa/Makefile | 1 + drivers/mempool/dpaa/dpaa_mempool.c | 3 +++ drivers/mempool/dpaa/dpaa_mempool.h | 4 +--- drivers/net/dpaa/Makefile | 1 + mk/rte.app.mk | 1 + 12 files changed, 27 insertions(+), 4 deletions(-) diff --git a/drivers/bus/dpaa/Makefile b/drivers/bus/dpaa/Makefile index bffaa9d92..5eb7c24db 100644 --- a/drivers/bus/dpaa/Makefile +++ b/drivers/bus/dpaa/Makefile @@ -48,5 +48,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_DPAA_BUS) += \ LDLIBS += -lpthread LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_ethdev +LDLIBS += -lrte_common_dpaax include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 16fabd1be..8bfb085e9 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -546,6 +547,9 @@ rte_dpaa_bus_probe(void) fclose(svr_file); } + /* And initialize the PA->VA translation table */ + dpaax_iova_table_populate(); + /* For each registered driver, and device, call the driver->probe */ TAILQ_FOREACH(dev, &rte_dpaa_bus.device_list, next) { TAILQ_FOREACH(drv, &rte_dpaa_bus.driver_list, next) { diff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build index d10b62c03..42676fbc5 100644 --- a/drivers/bus/dpaa/meson.build +++ b/drivers/bus/dpaa/meson.build @@ -5,7 +5,7 @@ if host_machine.system() != 'linux' build = false endif -deps += ['eventdev'] +deps += ['common_dpaax', 'eventdev'] sources = files('base/fman/fman.c', 'base/fman/fman_hw.c', 'base/fman/netcfg_layer.c', diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index 15dc6a4ac..1d580a000 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -110,6 +111,11 @@ extern struct dpaa_memseg_list rte_dpaa_memsegs; static inline void *rte_dpaa_mem_ptov(phys_addr_t paddr) { struct dpaa_memseg *ms; + void *va; + + va = dpaax_iova_table_get_va(paddr); + if (likely(va != NULL)) + return va; /* Check if the address is already part of the memseg list internally * maintained by the dpaa driver. diff --git a/drivers/crypto/dpaa_sec/Makefile b/drivers/crypto/dpaa_sec/Makefile index 9be447041..674a7a398 100644 --- a/drivers/crypto/dpaa_sec/Makefile +++ b/drivers/crypto/dpaa_sec/Makefile @@ -38,5 +38,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += dpaa_sec.c LDLIBS += -lrte_bus_dpaa LDLIBS += -lrte_mempool_dpaa +LDLIBS += -lrte_common_dpaax include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 2f0a5d285..65df12592 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -107,6 +107,12 @@ dpaa_mem_vtop(void *vaddr) static inline void * dpaa_mem_ptov(rte_iova_t paddr) { + void *va; + + va = (void *)dpaax_iova_table_get_va(paddr); + if (likely(va)) + return va; + return rte_mem_iova2virt(paddr); } diff --git a/drivers/event/dpaa/Makefile b/drivers/event/dpaa/Makefile index ddd855227..6f93e7f40 100644 --- a/drivers/event/dpaa/Makefile +++ b/drivers/event/dpaa/Makefile @@ -34,5 +34,6 @@ LDLIBS += -lrte_mempool_dpaa LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS += -lrte_eventdev -lrte_pmd_dpaa -lrte_bus_vdev +LDLIBS += -lrte_common_dpaax include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/mempool/dpaa/Makefile b/drivers/mempool/dpaa/Makefile index da8da1e90..9cf36856c 100644 --- a/drivers/mempool/dpaa/Makefile +++ b/drivers/mempool/dpaa/Makefile @@ -31,5 +31,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_DPAA_MEMPOOL) += dpaa_mempool.c LDLIBS += -lrte_bus_dpaa LDLIBS += -lrte_eal -lrte_mempool -lrte_ring +LDLIBS += -lrte_common_dpaax include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c index 1c121223b..ce3f370ff 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -26,6 +26,7 @@ #include #include +#include /* List of all the memseg information locally maintained in dpaa driver. This * is to optimize the PA_to_VA searches until a better mechanism (algo) is @@ -280,6 +281,8 @@ dpaa_populate(struct rte_mempool *mp, unsigned int max_objs, MEMPOOL_INIT_FUNC_TRACE(); + dpaax_iova_table_add(paddr, vaddr, len); + if (!mp || !mp->pool_data) { DPAA_MEMPOOL_ERR("Invalid mempool provided\n"); return 0; diff --git a/drivers/mempool/dpaa/dpaa_mempool.h b/drivers/mempool/dpaa/dpaa_mempool.h index 092f326cb..533e1c6e2 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.h +++ b/drivers/mempool/dpaa/dpaa_mempool.h @@ -43,10 +43,8 @@ struct dpaa_bp_info { }; static inline void * -DPAA_MEMPOOL_PTOV(struct dpaa_bp_info *bp_info, uint64_t addr) +DPAA_MEMPOOL_PTOV(struct dpaa_bp_info *bp_info __rte_unused, uint64_t addr) { - if (bp_info->ptov_off) - return ((void *) (size_t)(addr + bp_info->ptov_off)); return rte_dpaa_mem_ptov(addr); } diff --git a/drivers/net/dpaa/Makefile b/drivers/net/dpaa/Makefile index d7a0a50c5..1c4f7d914 100644 --- a/drivers/net/dpaa/Makefile +++ b/drivers/net/dpaa/Makefile @@ -38,6 +38,7 @@ LDLIBS += -lrte_bus_dpaa LDLIBS += -lrte_mempool_dpaa LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs +LDLIBS += -lrte_common_dpaax # install this header file SYMLINK-$(CONFIG_RTE_LIBRTE_DPAA_PMD)-include := rte_pmd_dpaa.h diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 899d51a23..89a008fe3 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -115,6 +115,7 @@ ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n) _LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_BUCKET) += -lrte_mempool_bucket _LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_STACK) += -lrte_mempool_stack ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y) +_LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX) += -lrte_common_dpaax _LDLIBS-$(CONFIG_RTE_LIBRTE_DPAA_MEMPOOL) += -lrte_mempool_dpaa endif ifeq ($(CONFIG_RTE_EAL_VFIO)$(CONFIG_RTE_LIBRTE_FSLMC_BUS),yy) -- 2.17.1