From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 922F87F50 for ; Sat, 15 Oct 2016 15:44:36 +0200 (CEST) Received: from DM2PR03CA0007.namprd03.prod.outlook.com (10.141.96.17) by CY1PR03MB1423.namprd03.prod.outlook.com (10.163.17.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Sat, 15 Oct 2016 13:44:34 +0000 Received: from BY2FFO11OLC010.protection.gbl (2a01:111:f400:7c0c::165) by DM2PR03CA0007.outlook.office365.com (2a01:111:e400:2428::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12 via Frontend Transport; Sat, 15 Oct 2016 13:44:34 +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 BY2FFO11OLC010.mail.protection.outlook.com (10.1.15.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Sat, 15 Oct 2016 13:44:34 +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 u9FDhhgM021870; Sat, 15 Oct 2016 06:44:31 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Sat, 15 Oct 2016 19:14:57 +0530 Message-ID: <1476539108-13170-7-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> References: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131210126744418397; (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)(2906002)(86362001)(19580405001)(77096005)(48376002)(50986999)(33646002)(50466002)(110136003)(76176999)(47776003)(19580395003)(5660300001)(356003)(5003940100001)(6916009)(6666003)(7846002)(8666005)(50226002)(305945005)(8936002)(8676002)(81156014)(189998001)(105606002)(106466001)(81166006)(626004)(229853001)(2950100002)(92566002)(97736004)(11100500001)(36756003)(68736007)(586003)(87936001)(2351001)(85426001)(4326007)(104016004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1423; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC010; 1:+GJ4SvsZKSbDOdVNIWm9K7L9PyxSxtsaCvrUPoG9xBKYVSVDV6pWM3vnX1XRbQ0sFelY6DqZXUcU3qhocJylPvfPsv/PWBaQ6LBCKu/AiIaHW6yg+SUe3Ji9o4/GJ09NQsFV1XQahCxYMCuEbicHBmwyZUV6RG9alZs8FcTODXxUe/1r5wqsCAmYkjsrw06SlCakI8ZUTp25LBTmkyKkw6eCBV/Xcs0CkFeuU8gDbxgo/mpBw3mDaExGBE0yEoHPlF1mPyUQ8ljRL5vSJtsYKCfZMQou5ytuFWWAu8S0c0O5x+Gd7eRFoeFK/t64x1UI9YjLyXLc2A1+qADgI2v4CTDfqcpYZG0A5GPTadXepb+D/VjewiWUuCIcPPdvluut645Yf4D/yqE6YGXCCuzu8V4l4jT+PomLDOsqMmfAFHvXkfQHmMDdvUTL3wganGyg1X5wfRlMPlcTp8tdSfhtpeYEd7dW4a3lTVeKYJCMUCkORKTOgWelAHz/8Lw8G4mc8c3L41xdhlpe9xWP5tQvuRWu33s5qXfFtqJgKkma2rI2y9S5deaq/3Dqvqm5ZzG3e8Wu2ed3NIfu5TtLVvG3/bYbDN+9+cRn71tytafvr+TLIw/eKun0vVYpEq1dShaNzJixsxCNsTBEfwVqQhWGk8TNb+4Lpw7NB4MWCHKivYs+jpAQ0jBRZz3+2/D5QUY65q/9AztsB/oFErQ7lFmfW9ygld8WiNyhT1jT5oa2Z0Y= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d66873a6-57ee-44c7-f85d-08d3f50165ff X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1423; 2:N33DX4JbOYJkFAHfum2szPM27G5Sae/tkMegOwDG7DRxDRrC2FgApr2JwB7PLcW9jC8991P/Rm10xReO1vY/p+6QpFIicgVmSrCiAu22kpuv44pjRyxWs8S0JsFR5i/0uVsZOHZxJ4LNX1v/X23cMlM5l2JiewGHs/TEZdQr5WSUQMjKDvmN1srCM3ITZyIasqRWy2r2xc/LIFvAnXtzyQ==; 3:ZtkLuJ8Q2J4y1H2jd/6nlAdSLzAYcVLIbaJfQVMMgBgQ2veXMcqiWrKVZK/p/5X8zL4bbCDCa8Zbq/CZjK80IldAld8NqW62D+fTAqMy6/42m1KKjLCPdZGymNrYcwBpCx6IC8P+v+c/15QqLluc2xnhJgKaq/ExDqSBZ18UwkvrmaCKMaybC8SYMinJQ5JUfrCYApV6JQ16Wjrw0BY1Er0qQAZ+hPJCNNReL3xoxp0NWDFXI/LTiQLttPpOWWN2; 25:/b+zdkxW7sbTS4yYq2+ByY0jI6XNhztn2D5fyF2devKPQ6bveAICcYSpbeatvnITJqr4ziCzq34h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hKiJwGTThUxahdqymVuu3f69FmZmtq88aVwm+tTC9uhEKJIhTU4ISoATGA74hgIn3qvPLx9Uh6lbPxFKwewY8opq3lBtChRkd+g3aqcZrmQcDJUJxaPHfRGrfxVY+f4Hg38oDFhuH/93f3lP1/QbZIDcDBB9IGysJOvIzWLN8ZGwTqsBMZkWqb7kOgMDtqWGw149ySvyV8Kd5d61AenvnZuKZVJLtc2eTeAoktapBn3HdNKSYqh7HL74JVmpFQxLnZlPE4KCu7HFyJAbGnpBjGLw0oX/R4x 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)(13023025)(13017025)(13024025)(13018025)(13015025)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB1423; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB1423; X-Forefront-PRVS: 00963989E5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1423; 23:Zv1juVy+uAA1vEi7Z1PX+u2I62DSfqXP2g93zIQ1O?= =?us-ascii?Q?gHDSs9iYlVEDrvCOwt0DZM9Fmqmk4ZWfWnyEmA10dAsvymKUgv0N+A9m39cF?= =?us-ascii?Q?GsspRIB4upyQVzt4Hi5j+n6Gxk0wAM1DLQ9RO3jKOlziIiQF8O3pWHzB382s?= =?us-ascii?Q?1R+P9MWTbSDLmT7rAauyQqWCtSDUHm66iuRBvyYALl3lwHldTFsG5Kn+56wt?= =?us-ascii?Q?A5yZHi/o9d0E8jNV+VxQjQXu9yW/jZE4Lw5UcvPMJYnW5z5sw5sgmoc4xI7T?= =?us-ascii?Q?gxfBUKJrolBTf7eAsbkwTn1p0laKBFvjAE6yyVvrBO/AaRUMbE59E2T81p1b?= =?us-ascii?Q?yqcU5MNO1EDhoirt1Fi1a4I8WjGkKxbF/hpwHv3M8xfJfh2EMS4MCaRM9yOf?= =?us-ascii?Q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 2016 13:44:34.2390 (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: CY1PR03MB1423 Subject: [dpdk-dev] [PATCH v4 06/17] 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: Sat, 15 Oct 2016 13:44:37 -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