From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0041.outbound.protection.outlook.com [104.47.32.41]) by dpdk.org (Postfix) with ESMTP id C447968F5 for ; Fri, 9 Sep 2016 10:44:54 +0200 (CEST) Received: from BN3PR0301CA0065.namprd03.prod.outlook.com (10.160.152.161) by BN6PR03MB2434.namprd03.prod.outlook.com (10.168.223.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Fri, 9 Sep 2016 08:44:53 +0000 Received: from BN1BFFO11FD005.protection.gbl (2a01:111:f400:7c10::1:176) by BN3PR0301CA0065.outlook.office365.com (2a01:111:e400:401e::33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Fri, 9 Sep 2016 08:44:53 +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 BN1BFFO11FD005.mail.protection.outlook.com (10.58.144.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 9 Sep 2016 08:44:53 +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 u898hoYx018305; Fri, 9 Sep 2016 01:44:51 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Fri, 9 Sep 2016 14:13:49 +0530 Message-ID: <1473410639-10367-6-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1473410639-10367-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131178842936808676; (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)(189002)(199003)(50226002)(4326007)(104016004)(19580395003)(575784001)(2906002)(2950100001)(87936001)(77096005)(229853001)(47776003)(110136002)(105606002)(106466001)(85426001)(97736004)(8676002)(92566002)(626004)(305945005)(86362001)(189998001)(5660300001)(68736007)(81166006)(50466002)(7846002)(50986999)(76176999)(36756003)(81156014)(586003)(8666005)(33646002)(48376002)(19580405001)(8936002)(356003)(11100500001)(2351001)(5003940100001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2434; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD005; 1:7SqEbvXZgUefvlkwhb9UH+x8G15UfWPm3GLVLCVlwKJwTC9MdxMR5RRitTP2snzaQUTuB3CQ8HIDkFcQeRnPgtHGrtbe8wdLD5RJKUvfXDYpe+RyMLi+pr+K0tgWxMVTehh3t89BAG8tALrc9pi9A+rPGdF45ULQUg/RCI1tIAzzq5OdopBPJ8u9TSVy+svMJi6gPhpMwi8DODQ+muIVRBhe4bU/1eK/5gLVI9ndplI1yBS+s4VnrXMUWorFdOQ9Y/qLqY8gBEWWT/hrWxWBGSR8TXRke6trF3GLVz+/XIVrY0JFlMQzSyVFCUWXI9ZPLnUO+298er/LUbKd+LKFhN0Lwmg4znrTDy+FxWQ0+uHwov0MqsK0ptQ61qi/+vCsZieWAyj13Y9aUOFsVI4SNMVroF4JKXJ2ELpUkv2Arux3eFiO8vN7UrKp2AgR4cCh2LKxwFFegeUgSN2mK2G7JpvyAM3q+UlsR/sMGXJPr41FQmpNa6203/7ozytKMEf2x44frcEQFYNP9UyF7VL0IBCR6zkI7f2qKVIbjA+MucyOZZS3Td8km7BN4x4gexcDoaD9FBvlAAtt84Fqjx5sdwa1pXX7B+FbfNoukXz37MJtv0AvsNBKUm34/Eqq3R6beRuSpzwVHuys0X08VKQxLWEAtE5LgnwIROkknlRKdmd13kE4tikfIIWfd55l75YJ2wfB4shuMvupBh0KdARNG/06EUvthwJHAtg2fnTnq8o= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2234cfa1-f0fd-4653-3383-08d3d88d91c0 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2434; 2:9+eWl1GV4daZ9gUJKF9kv5vjR2ZRsv03e20LBe4weazkJHasJiKq7kxaW1J+gSTrMIoBCav0eXvkOW9zC6zOBsYCId3gC+Tj8mw9UlsYRUqjHqJiZV4FZGINXjvaBs3Ks/mOcSq+Fd0JBdgw1AhlpY2iayFMiP4iIT1NsZ2FnpNZC3B/o48ohN4CzWOV23fZ; 3:chPB/zUaFkaU+3iQzKWCpJHg9pEfV555VY576i8MV99gZ/CfiyZwgLfuLaXV6y74VlBLaIBXr9KIu+1RlkeF6cIqc0UP3Rp30CVWm0ygjxbL+I92hgLeQ/Y+edLIiL+j/HOZ+XxEgMXxn2PFf7geeAuJFMAFIUsSuZW168znjJtFRYbHQXGwGi/WNowL+9eH/FNu+ZdWsNreZud1XICe0asuunFVeDNILi82FZzVjtw=; 25:a6MNSizDEsZaTaKpfNdwPZw74/HdU1FN5x8Jc7DCDLDkka5WaGN33SLIj4N9K+M8ZVbszxyofKLdpSbAqFkhnB3h6ME9CLB5HhrnrC2jc9THKsLWKT0MEqb614mQwiIY8AF0VQTc2CIrR8r98l8XSEqulWA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O6vR1x/vafyAt9onea3ZxIlVTik3AScWQwmygAv5fNCuoiRy1Kitn3PArr4MrKfNajAV7WYUKEu/FNe27iEGxbiG5fRKFwKA= 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)(13015025)(13017025)(13023025)(13018025)(13024025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2434; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2434; X-Forefront-PRVS: 00603B7EEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2434; 23:9i4Dw3rj8FrXpLZm2kaEqudajEvS1PkG8xO6lORua?= =?us-ascii?Q?5tCpjD4/eU8nYs1t9z9XhRh/JffK1LOvvGkYkuaCrTvNKlu7ZnOqTflaLs72?= =?us-ascii?Q?VCmhY1BHzKWV/xynEJTorxlWCcSC0ibBDg1SVaKgT6ubfB62tkKiWaLhGS+j?= =?us-ascii?Q?j541KOylXycW3+aphjNvfvqJnRBYfPfT9wAsYE3f++ih0OcJxEUj1q02JIpS?= =?us-ascii?Q?jOTyNW545h5cfkvSZQE7TYMgpQ17Jpe5JOGeXuqYPexu52KOkZFgCbPV3IC4?= =?us-ascii?Q?LX0gImtXeUCryfAQ231n0cLSDpC1E+0QlRCHcLQ0NqHVKv41chNU6dZZSFh8?= =?us-ascii?Q?jipvCVGtPkLC7RX2ID9Q9N3fTvo8mHpT/AgwcXf0o829+c8l1dE/TEiBEwmg?= =?us-ascii?Q?9sXTroWZGWpKMVH3rjdFrRjZPcrY4zXMWGe2bRKtvPz69/rRJMkPYysGahmy?= =?us-ascii?Q?reMub3Op3qIhaNzr/pkxfKPvgfeVCalYKjuvCZE0DCJZWe/8BVqfG8AWhfkR?= =?us-ascii?Q?aJ/JvEiAV52TgYVHhvK1EiKaRRa3V3jnXr5OAIFKH/rPkizuGUsEfv5V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a7WB4zoNX0rTAyIdA2Wgh5/Mu8svSXmUTK+egyw/CHkwX+yxHTC7U/k=; 5:dlMXr/QprcDfdPCFBG6i3VaRKXXIdNJjriWMzcBUKgB8Md688DicO8O044pvijb7AlaK3bFUxkUxSHCFOTfGCr3uFDJFjOv0E8+C5PHOdDeP/JsH1YqV3l2ANUQiR6IK+v8HO1nGC0wi7PzQiNzhqcxsyNWA4Vop7WLzCeSEOkU=; 24:3GBQoSNFGhbPTK6ZbcrZoXCZBIeIGgrNuq4aKfrGUm9sJp7njY6fx1webOdTKhjX4A2ub+U47Hz1lk54KwBddXCpnPQdoV1j0pGOVHj4YkU=; 7:2lWVucvrVE90+8l2FPpX8UuCSYS9HfdtCXVj9lnybPH0ioSORr0i0XAgtI+4BgtogxHaJaxv/Er97T/DvP9FFAWgUhmpAMKOrye27DNVXwaXhPV5pirSCCUNpxhuKn2Fn7Vh1X2+b0RY2mJdm0VBnfl/fYTzKk4ZI3L6bR9bXMsJ7SaIhZ+38YkgHha+XhMLueskyiP3C1lJkQvKVlN0TFFNCSa0SdIGHft2kPtRPn9rd3vlXjYz8Ac98e4hE5/V SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2016 08:44:53.4780 (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: BN6PR03MB2434 Subject: [dpdk-dev] [PATCH v3 05/15] 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, 09 Sep 2016 08:44:55 -0000 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 5a3fc1d..cf4bf78 100644 --- a/lib/librte_eal/bsdapp/eal/Makefile +++ b/lib/librte_eal/bsdapp/eal/Makefile @@ -57,6 +57,7 @@ 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_log.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 a0c8f8c..7d8c3e8 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 @@ -567,6 +568,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 df6582d..ba8407d 100644 --- a/lib/librte_eal/common/eal_private.h +++ b/lib/librte_eal/common/eal_private.h @@ -130,6 +130,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 9412983..15c8c3d 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -798,6 +798,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