From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0068.outbound.protection.outlook.com [104.47.38.68]) by dpdk.org (Postfix) with ESMTP id 820DA68CF for ; Mon, 24 Oct 2016 13:59:36 +0200 (CEST) Received: from BN6PR03CA0066.namprd03.prod.outlook.com (10.173.137.28) by BY2PR0301MB1621.namprd03.prod.outlook.com (10.163.28.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Mon, 24 Oct 2016 11:59:35 +0000 Received: from BN1BFFO11FD044.protection.gbl (2a01:111:f400:7c10::1:121) by BN6PR03CA0066.outlook.office365.com (2603:10b6:404:4c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Mon, 24 Oct 2016 11:59: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 BN1BFFO11FD044.mail.protection.outlook.com (10.58.144.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Mon, 24 Oct 2016 11:59: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 u9OBwEMU008267; Mon, 24 Oct 2016 04:59:31 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Mon, 24 Oct 2016 17:29:29 +0530 Message-ID: <1477310380-17944-11-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> References: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131217839747706655; (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)(1109001)(1110001)(339900001)(189002)(199003)(5660300001)(626004)(36756003)(305945005)(50226002)(11100500001)(50466002)(8666005)(81156014)(81166006)(110136003)(2950100002)(48376002)(7846002)(356003)(87936001)(8676002)(6916009)(19580395003)(19580405001)(85426001)(47776003)(33646002)(189998001)(586003)(50986999)(76176999)(86362001)(2906002)(105606002)(4326007)(5003940100001)(77096005)(8936002)(68736007)(106466001)(104016004)(97736004)(92566002)(2351001)(229853001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1621; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD044; 1:vdzYQnqyEbZ3YH9KTS1NGhVVzTHzFZut2j9vVCTdamhKMpWRNj2wI1Tu9tIsL0HLKIGgnwbimAAYsa5d2Aj/fB/SontHxY0VF2lQFVbrfS74h7AU2z6iCuhk7RfzHIHujN4VvWwQAAmOVPR9+rq3C9Y0KWwoBTX3JzVQpW0IEQD6z73VzALnI1A3QIGxsZfPhqOfbi+k3qepAq/9GxhKIhZS0BBkVPFe0rDvrLKnchg0SDSH1q61zzL5EDcMN4GiabqKyLorFXlrVI5RL82P0WP2l5wSogydSEwrpA+MKeMZyBW9mBDOZJkBaVBhobeg18xJ8ipdtxE8Sc/+KMqa/ZLWJHQ/suxos5ae3vkxNIKSFVGkqZGBufLVSFHuF4D2fT1dA+VOAK4yP34Uu8njWHbgVPi1xA6k4VCEPixYkT94GdzY7qp/grxJFI1tSszCQ6AwIw/pyREduCFUn4fVtl8JVXhqj/8EcHTNHqn/9/yixMyLdMTUOLp1HOTz0SZgDb1d3pq452NyrfKGXqvUDjO187mQSRWq+B4AFizWlrNN2qghAok9UoUmx6yCcZtnFKPsJeZMXev4g8SCqbLmKOGzrPLJlu7zvKhFoGQw5J954OA1gictSWNPbGq2JOQBfqEZOGfYTa+kfweyUJpNkcBU6PXOw2Gi6EAximKMFsxbxf3xgekvr1EqVP1B10UwRC5OSipvrx5PyipHxpvKPPMfd2tTTblG3efMmkr96jE= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9a6ac228-2191-4e33-2417-08d3fc0538bf X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1621; 2:Qzt9A1aHnvVD44jyLDTvVRCjR8eovO8f6IUNBQLUtehUNaaVSwpwmLhy8dmp0tYEtT42N1p4SuN2LWb7Hnm/3NYYCbOHlMfAyBtfQvjxXj5WzEWz97mnH4BJRlt/g5qwKXrxDBXIRNGvItlYewXbx+ZEpxTytg5FWIxzXq3Kn3Z2V4vS4xSDdsLZbnVBbTuomB7pPVxnOG9r5GPUVJQEPQ==; 3:7v0xsG09BnGL39V376EnVvX+Wy0/pKgpRg3rlsm304920VclOVeRLkX1gIsmmGmImYASFjgUBm/yVEaAER+Mpg60LgdbhDfcPNHRqyoxEvP7nqbhWbytFiY5AlwSwnkS+DbiqB2CSmChSehqxzcytqK1G9JIAMBy1QB7BkFQbN7MG/y25KSJ+2lKkf/e+ea1XEHG23gk/vMHgnWE+V+/DyMPcKymzG0kPtwyUhvfROSOQxs9YzjIMG+6p4lUl1TF; 25:YvpCqDMh6+jdVeTdUhV8X4Myh0gy0Iek4PklH89ZWUuq/qv1IctrZmfNwiGsOHPDk5ZnF0/NPxbH28ku3RuN+m/nR6yHbod/gXJvLtyOK3pbeqogQHasKntahUQ/48i1iTyRcaVrXlUgixuFQsqS4F8vbdY92pKha+5dU/PVHRAf/DbS96zGTCW0B00Ls0k4YCO+/iVuknoYcX1ovYU5lXp9LsrULEx6AA/Zy3rttMB9u9HmtTl6peCXwBTDFocq4+lStHOij8O1oFz5Ck89hBin8t8e/h1JMajVe3hoy1zmSvgBYCmszAmhj1f9K1F4qUCV19IzuUNgkfSInVpI4tAvg1j+zShBHEj4AYKudukwo69aICra6oadVkweEu1+kCGhlCJ+wu3ayqyfrclA309VllnBrXTk2zPKfyDqDerZ+jyy9HGBil3/vxFgzh/lCseHBgIMghku9/EdPYNy0g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1621; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1621; 31:Apoadja83lBxPxkDKT7c+IiZ1dJ0ehZh8kUCEHa1BNk7ydbWgAJPQoJUBftkNuwNBxxLuJ8erBtD83LDIGSCGLQWmGEOpfYwlo+AdUtjWDHjxcx5rHMHp7DAGrM1oR//LoVn8PIX7X6l06bmkW/GXBEL1nFdsks/Cu+zFCdQFSjBtsM0VT1QxtuolHLtGK6SFrJkdms+71hdpK1TbWvm3rwt2zQ8peF/3ZFHi9bNbqYSoHRcnNV5p+yF+VM2zEwhd0nif1lPD/6as99Gvq0vmSnG46p5tbeGV6vRn+WeKSI=; 4:wKPczCnuPAzsYzuXBUl18c/fvseKuUa/n5SdWPrz4AT1AQggnKr9d8XWhw2l5VlXj1hH9sshGGX49HpUDT2R4IhCuxeda88Rku5Ppw9tMkcQZvuaaoY581kbAGixi1pnCei+2l+MS4HZIsReeQNI6Dq/OBgI/avMRQuHfcjTZfDPFJUXDQBPl5DGClBaJ7SjpsHPbZw9AiSkK4uDDotsRgro2BCYKYiUS1mMKoO96ybL9RUvVhwePMtLvlgrWO+Qjvkah8/iuxvLiJxNomPh9cReWfuLVLe5AP8CSyNyevcLBtIld4PclKxK3EioKYugvcO17MCcArBDo51nLeoZa/YRme0eqoqv8AqqL+LxWcpSCbGexYnona6h4A1w7MgHOxiSsByO58VOuPfg+onmRkBR33GmiFdbxKsW9FK+T7wqLpfRVK83tWTh3o1UAS0n/h5bTedk726qgqWzR3JkyaTaP/qgfudW5p5i13PRDttlFNf+soyA9K1J9+mrwjlzYH8Cxj0j7CTRB8bAKH3iwMFl3wkvCI6ZNPEJtq24+BIGOfzlZIR6nUY70vNIllEY 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)(13023025)(13018025)(13024025)(13015025)(13017025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB1621; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1621; X-Forefront-PRVS: 0105DAA385 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1621; 23:wkUlcwDPeC9b6/H3l8ylxnjFe4HWiR3POlOXx2p?= =?us-ascii?Q?/drjjnhVAlMAiMMZ8lt8we6qYt9Z7JLZ7aO4n4tBtZ/9vktr1zpslL/XR2II?= =?us-ascii?Q?9kbIOQJuwrdTylojSSDiNZoi+5sePeLO95kRQ3BTxLnISApHsC7qz8DwpOaV?= =?us-ascii?Q?p8H+2vbc1tXWk+F70ES38m/G+V+AiQG/7jqA/JU3wlmmre6NvXtmnYXI8MZ+?= =?us-ascii?Q?NpE5fT3121eJ1SYsN5XgJPiKWKuBYZKi5Okd7g9rlHJQb2HZdYdqdnlZze8u?= =?us-ascii?Q?6YNU4qHEl+hd+b8drf2FTf2s2L9Tv5fWesIeNTkixxoP14H8Z2I5yFcrCOFW?= =?us-ascii?Q?79ThCkNYmdRWSE1Qs3ko8ocTXpCUjs0RQ6GrUVzzFrrSbGAkMKqs+EhKaSng?= =?us-ascii?Q?vSCt6oQWchpkn96R8THeAIgtxEs3PL3VDB2wxT1MlUIzHQhYPYz/LqIAGpry?= =?us-ascii?Q?/QFqLF3qUVkbpYQk0udYz4DyTxJMBVJenlBhCuGEOhrjwS+MTamoFsQdXOwI?= =?us-ascii?Q?95fQMql5dpqmMBg6pHiieMP4rzub5ZgKjWflNE9zsrXssSeg2SGUAS+ps/7S?= =?us-ascii?Q?NrGsakm6u5UmelBz2OQYzz08MCzk6AvUqndf7AILoU9aRrfviTfa2nnXtuFX?= =?us-ascii?Q?UnHieckZ3lFphfdDYo4UU23bHepEpn3ijAcXT74f5u+lT3XD0uLUyIBU8QUK?= =?us-ascii?Q?46Sozsmcwa4ouY1LyQhud9PxDiBrhzqxrEpmJdV+f8uSUPNpoLxEItmjNhrR?= =?us-ascii?Q?ZNRVRGe7WUqW56l3TtdfE2orYwUkFzrpa0eGkoYlABg88QY2C0W61GuktAob?= =?us-ascii?Q?BrGM2dugICAc6L33ub0C5aOmzZPgz1v9HvLU2J6LyOiCUUFY/KEJxQ77pYAB?= =?us-ascii?Q?JwBuO7taPYMno+wnzkvRvii1uurI+ukP5obvmk6VbY/oT0Uno72tFqrXpkus?= =?us-ascii?Q?4Vg6Mt7zvF/zyqWC8994w/VFaQgfLfIQnvXZNbtZfjibgWdn+iFfLdLTALC1?= =?us-ascii?Q?zoU8NNW97F2zrv0U1YLKKDvIXVpbBrZzvVHW4u4MsdRIzNoh33Pz4lPnlzfL?= =?us-ascii?Q?JMaIRFGjIS2TBg5j1H0Jh1XXs9rjV0G13E8F/I6G+3jLSAjGMQxBSZgYciJo?= =?us-ascii?Q?o5k3UHCxuaI69TIOOu9pmeKy/HbdXDlZvbVXtft4BzsjYCAI//IyWFhonDVo?= =?us-ascii?Q?k/FzQTrTgK4QQUCc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1621; 6:6oeDht4Ks1Xkkpz3z5ZHgr0e8E58K5f79/JQC4xuhIJRhriVcL02etTTTnN+fg0DuXiqNyriqOfD/sUaD9kvcdDSMH3O2YOHyWHB6Rrd7iRI3rZqbF3t93s57fOYPsR0HXaQBPkxo8uMGV2FN9cvc0DBPIAaph2OP5KE1642e8uNTf5IS9e56IiIkU4VJ44GbDluRiJB8uEVLMoW66CKnjiU54rvZAB/1uV1HD7lV6XAvjzSCtUiptAGg5iKnSCStd29D99fWg7ZSfxTFouOWgB1fqNxWzR88NUNF7P5Hk8ac29X7ayHtAZQr4K+Glzp; 5:toUeXJtM+fyP6D2t1aryu/9LXg96z0IAVdb0JyWzEICOsL9CHGDCJfpkiaXrfIRtTYro9AHXGeQtDkHQGOtL1iN7UE42hp74IL5PTeMA/qEYCvdp4tWU8zIrBWfofc4BXytnsc7TlTAKpcD+p0vrgdkoZLxUcBZOyp2GZefOmsqlcPplw7yijrA+ct74ggtn; 24:zFujwijg6kSf8OvoEncDeaw10ZWHB9cHnKHS+nlzC2NWj+rFAlK/GxFxs+zthK9kjGr73i3pPoFMFrRaYOpSGCx5vNYCY0yOicQdLgp4fEA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1621; 7:aWNSdSiz1ge6muDX0/NpDfrZToGFP3uqDFQ36JVhkVKCw2p+JxXCb+9gWa76SzmKTdqE69X5zyv+ZOlVWDPtMeAgyrijHN6KtFoslwnt+T38vKHqNyoL0YhM3nI1MrLq1uXiGFhGHhQQbJkm9Dp8DpZF1AbIK0iWRvt5EXUmled5qvvHAVyen2Bof/MePtQReXlQnxXs19Tkn/eZbov54lhccgBpG33SIXZZ5Wnb82D0WfAv9n7lLml3wEihcS1lVQkyXZe2u3t79EhwwafwdVQP/n4cPP9bhDSBiDazmp3rYBuH0lX3KR+eYOeQWEZlIFmO3ETkl5B4iaIRY523bVkA+7y1U4fQ4D6vDwCmfLM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 11:59:34.4586 (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: BY2PR0301MB1621 Subject: [dpdk-dev] [PATCH v5 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: Mon, 24 Oct 2016 11:59: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