From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0076.outbound.protection.outlook.com [104.47.32.76]) by dpdk.org (Postfix) with ESMTP id 65EAA56A2 for ; Fri, 28 Oct 2016 14:30:53 +0200 (CEST) Received: from CY1PR03CA0001.namprd03.prod.outlook.com (10.174.128.11) by CO2PR03MB2374.namprd03.prod.outlook.com (10.166.93.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Fri, 28 Oct 2016 12:30:52 +0000 Received: from BN1AFFO11FD014.protection.gbl (2a01:111:f400:7c10::177) by CY1PR03CA0001.outlook.office365.com (2603:10b6:600::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12 via Frontend Transport; Fri, 28 Oct 2016 12:30:51 +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;nxp.com; dkim=none (message not signed) header.d=none; 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 BN1AFFO11FD014.mail.protection.outlook.com (10.58.52.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Fri, 28 Oct 2016 12:30:51 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9SCPEMM019399; Fri, 28 Oct 2016 05:30:48 -0700 From: Shreyansh Jain To: Date: Fri, 28 Oct 2016 17:56:27 +0530 Message-ID: <1477657598-826-11-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> References: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221314514687960; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(19580405001)(19580395003)(50226002)(356003)(8936002)(48376002)(110136003)(586003)(68736007)(5660300001)(97736004)(85426001)(104016004)(50466002)(7846002)(87936001)(2950100002)(6916009)(33646002)(8666005)(81166006)(305945005)(81156014)(105606002)(2906002)(92566002)(5003940100001)(6666003)(106466001)(11100500001)(47776003)(86362001)(2351001)(4326007)(229853001)(189998001)(8676002)(36756003)(77096005)(626004)(76176999)(50986999)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2374; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD014; 1:NfjjPe7VKBK5fW9arhGs/JWiHafIfJdhKeQhwzKIV1PTJ4VAFMEDBsXfU31IytJ5LPqskYUAr4pgkPqDGyJ1bzRpIxJSvokFICtfKiKG2ckep7i2+hEGXNmjy/8Nx6l9aWCz5FhCxJzr4/VkQL0+orFmEdrAKvpP08KRNChmR9UMwjuHIinZ+0JfL23gQZjdVBjLGvf9aEyoeEZqNlummowiDrEJBtir2GDkxULpR7GGKCrRzHEh6wEbvY1EWB4iP7w1qdDTLJG+2rr5Ice1UvbaGUzHD8juF1E2qYDUaSSf4ZsBZ98zClpaeAS41ECG786xScnAXxCArYHgLKK2GHnf7MfIi4ocOetKEnrMZA+218SqsVCxNJBL27vNKxY0GiB9VrLbzNorbvmpVy60zAR2Nng1X0e/AMsK6KlBe++67p1b3i3kAavxw5lTokeiP9RKhTlpfyJBVsznbPDRq2M9yPyvaoLDWUKl4GNeIbMpfrpLsMjeE2A5fOfo+EK3EwU7xcQwdFC6YzySWN71+FIVYCGApsXx7oUndyQaswIf7trw/wf1i+czD0HeAHDord2zozj2Q9aLg3zLaNZ8s8CxgbLnRrD2U4hz0xpSqk9glJVjsLR2PEtpfQ0f7OSRf+yeUewPe3vXYaUsFfUBM5VSL4RiVhgcC+kPXw1YViDbEMkrHKIpCO8oLOZ/s455WnyKWL8LEK5Sgh85eV8bFMkaiSR6zd8OMmmRG9x6NZs= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0004f37f-324e-41a2-8ce0-08d3ff2e40ff X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2374; 2:n3V6CFsNThipVyQgLcI+7/HaUuAmHK2RmDnfl+ikOJLQceuwb94C2ttYdOMHsu9sQIY9qrvEdOyv3uOUsJhllDoCdwLQmYNP63MXSIA3lKFZz6hMv2PL5/zA4b6N94o0ExIWoMgOPQRZyqiGptoUxg5DJK6yXcdAPbKNetZpsC7zLPg5aEEJZCMPJvIaA12jBn7RH+zFtCBA7KITt7EhGQ==; 3:aR5tB+sQGamWd+v9l2YOVJm56/RqJsrrNuM1lLRlfYyBEPKeHRtNdFDV+dfEquAA7h8cMpsnQXKzMC21JwuaMtB4l993wamxPsUuOeufAg1f96jq4hPn44EUv3KebUOXMC9qUcpMyttqHz2jlfxSCR5FMGn7pSfPC1GNDJGCJHNq0BDxc13aCkdjPTyvpErrjzUGQbhHPlXNC5x4q+dbMrTtTaZbtsp4XME7Fkag/enewM/F8MyzmOrC1jteXXFl; 25:9GbwniPksh6YVw+fhef++FgrmGWQ8+gfjafgJW05406Gz/hBqveKf6vSCrsxTBGHeNV04idOOrkMg/3rMMRJKVG0+aVt/vImd+PMLLTnSsTLfCoRFYeTPIr6znT+WuPBRgays313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nNV8I4SwptjWtfT/cNpf6qHuslvA+4giL6QAbWUyFO7X6SzEKTsIata2OBUk3d89RACi9+psqxBvKGDxCnmz4/i8IakGk+Fh6eYXCLgjPaH7Umm4+36H8uJzQkwCyVcVeKIqsXDeqTr/IV6w023xRkZtTn4i3zyZAf0s71ruUS0Py7pkgRzD+epozzHU3n3mluzj4O2uARc5oY23XyUowW8qj13 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(13018025)(13024025)(13015025)(13017025)(13023025)(3002001)(10201501046)(6055026); SRVR:CO2PR03MB2374; BCL:0; PCL:0; RULEID:(400006); SRVR:CO2PR03MB2374; X-Forefront-PRVS: 0109D382B0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2374; 23:IM/rpZtMP8AApAR6gcoS/Rj38z0XyFCw0aR4axVZ6?= =?us-ascii?Q?LgTx427RSYwMK3R7jQtZhPUxOmbtko+V6s8vhfzUWSF6ZKTtXbCGJMACLT+4?= =?us-ascii?Q?CJtCQO+QeAOiQg3rgZA7UpeNLuN29dPuVLPWnuTYHhSh7jKUHVXx52nIH7Kb?= =?us-ascii?Q?EuiigIZij94J9e9HJt7PFYKLOoj9eG1uI1ZG9ZruPhbV7ef988g4j8J1I2Hc?= =?us-ascii?Q?iYVeJK1lKQsr5yHhMypJr0Hvo3kyBVNS31xDWCu8+Zdsns3n1TofJcrdJ8w3?= =?us-ascii?Q?T1OdJnXtJXDheY00YI1opq31opVbP63N/9Lx2t4wzXz/QqSRVx6O+V6muZUr?= =?us-ascii?Q?o1PwfeSR9y4XBjJT013hxbRQUQSFbIo96311osE5Csf7koMVc6SUHL50dyNC?= =?us-ascii?Q?ZQZg56d9CcHbRpJP/PadZhfhu2SUZnG8cMdQId4mslDuRTPS2VztlEUduFyF?= =?us-ascii?Q?GDSEuQBeVLpkk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s9WjUIP+VIGVwqTPxkWZNo1bO1ALVKdpzjt6vHLh3ZLSJWJQv2RSv2zYQp2UToeomF7OJmKbF3lx8wYqF7LxPh1vlh8H1jee1Z82zLdelTleSCNLKXh4aNQy1Dk6zg8f5/vGadSwXBGUF3XB0fiSGoSSu51hf8PqUbclVHxFcJQjtTPYu2pACT8pnmZ; 5:z4XANmQICFrYS1fKtn4rHwxVDAwNcc7UY0GHR5u5ZG4ZbT8WL23U96vvus5l+LEZKb4/c702lNzN/hqE6wErof3PRc6m31KwO/q1AedGxz0yzOaubmsCWEtE/PU6xD9x0wuxwer2bEZxwAPOTs8M5osQgtFE92Qtb8VCB5ZC1drkHBgVjFMeHK+rdtHV/c1J; 24:XlRozgGKe0D+GbnV1D2Mf6KIPR0b820Btvdk4NH89j9KO4O71HFHIuc5Jho7UVe31e7fpk+x8Y2CizqfQCboxq9+3LNJHfzP7jJyBmVjAK8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2374; 7:Qw5UDsEIfCW+i8cZMwa8x+0Rot3eUopbqPKRm6oyJjWKYjQowdmCHZQw1ErrqwIEsIhtBlayDddDMGHM2iDoRCeUenXZisaTe7OI1oD4FFzy1HCltoLavO8c4MQiGLeiNPnKI3z/EqifBKfmotbItNRh2dlxV2LZmNTu37++JhT8VYfTBIz2B1vDmDOdoaEXMX3+BMYydQ70O3DryMghdjApIq19qjywV52kmIBGlrQ6zG3WSqNdozJhuBBorghPZ7uqF4vCX6WdYuKwHbPCOJtKmKgBCyrIDhf0kJ7QDIWxqwm+HT3GUBc7TFFOdaa1tnNLDXAhSEV01wPwyo3V5Wb7i7PzChLNur3m94FBC7I= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 12:30:51.1567 (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: CO2PR03MB2374 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v7 10/21] eal/soc: init SoC infra from EAL X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 12:30:54 -0000 From: Jan Viktorin Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/eal.c | 4 +++ lib/librte_eal/bsdapp/eal/eal_soc.c | 46 ++++++++++++++++++++++++++++ lib/librte_eal/common/eal_private.h | 10 +++++++ lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 3 ++ lib/librte_eal/linuxapp/eal/eal_soc.c | 56 +++++++++++++++++++++++++++++++++++ 7 files changed, 121 insertions(+) create mode 100644 lib/librte_eal/bsdapp/eal/eal_soc.c create mode 100644 lib/librte_eal/linuxapp/eal/eal_soc.c diff --git a/lib/librte_eal/bsdapp/eal/Makefile b/lib/librte_eal/bsdapp/eal/Makefile index a15b762..42b3a2b 100644 --- a/lib/librte_eal/bsdapp/eal/Makefile +++ b/lib/librte_eal/bsdapp/eal/Makefile @@ -56,6 +56,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_memory.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_hugepage_info.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_thread.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_pci.c +SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_soc.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_debug.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_lcore.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_timer.c diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 9b93da3..2d62b9d 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -564,6 +565,9 @@ rte_eal_init(int argc, char **argv) if (rte_eal_pci_init() < 0) rte_panic("Cannot init PCI\n"); + if (rte_eal_soc_init() < 0) + rte_panic("Cannot init SoC\n"); + eal_check_mem_on_local_socket(); if (eal_plugins_init() < 0) diff --git a/lib/librte_eal/bsdapp/eal/eal_soc.c b/lib/librte_eal/bsdapp/eal/eal_soc.c new file mode 100644 index 0000000..cb297ff --- /dev/null +++ b/lib/librte_eal/bsdapp/eal/eal_soc.c @@ -0,0 +1,46 @@ +/*- + * BSD LICENSE + * + * Copyright(c) 2016 RehiveTech. All rights reserved. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of RehiveTech nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include + +#include + +/* Init the SoC EAL subsystem */ +int +rte_eal_soc_init(void) +{ + return 0; +} diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h index 0e8d6f7..d810f9f 100644 --- a/lib/librte_eal/common/eal_private.h +++ b/lib/librte_eal/common/eal_private.h @@ -122,6 +122,16 @@ int rte_eal_pci_init(void); struct rte_soc_driver; struct rte_soc_device; +/** + * Init the SoC infra. + * + * This function is private to EAL. + * + * @return + * 0 on success, negative on error + */ +int rte_eal_soc_init(void); + struct rte_pci_driver; struct rte_pci_device; diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile index a520477..59e30fa 100644 --- a/lib/librte_eal/linuxapp/eal/Makefile +++ b/lib/librte_eal/linuxapp/eal/Makefile @@ -65,6 +65,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_vfio_mp_sync.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci_uio.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci_vfio.c +SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_soc.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_debug.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_lcore.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_timer.c diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 00af21c..098ba02 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -810,6 +810,9 @@ rte_eal_init(int argc, char **argv) rte_panic("Cannot init VFIO\n"); #endif + if (rte_eal_soc_init() < 0) + rte_panic("Cannot init SoC\n"); + if (rte_eal_memory_init() < 0) rte_panic("Cannot init memory\n"); diff --git a/lib/librte_eal/linuxapp/eal/eal_soc.c b/lib/librte_eal/linuxapp/eal/eal_soc.c new file mode 100644 index 0000000..04848b9 --- /dev/null +++ b/lib/librte_eal/linuxapp/eal/eal_soc.c @@ -0,0 +1,56 @@ +/*- + * BSD LICENSE + * + * Copyright(c) 2016 RehiveTech. All rights reserved. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of RehiveTech nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "eal_internal_cfg.h" +#include "eal_filesystem.h" +#include "eal_private.h" + +/* Init the SoC EAL subsystem */ +int +rte_eal_soc_init(void) +{ + return 0; +} -- 2.7.4