From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0059.outbound.protection.outlook.com [104.47.37.59]) by dpdk.org (Postfix) with ESMTP id B376C6936 for ; Mon, 24 Oct 2016 13:59:33 +0200 (CEST) Received: from BN6PR03CA0007.namprd03.prod.outlook.com (10.168.230.145) by BY2PR0301MB1623.namprd03.prod.outlook.com (10.163.28.29) 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:32 +0000 Received: from BL2FFO11FD045.protection.gbl (2a01:111:f400:7c09::146) by BN6PR03CA0007.outlook.office365.com (2603:10b6:404:23::17) 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:32 +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 BL2FFO11FD045.mail.protection.outlook.com (10.173.161.207) 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:32 +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 u9OBwEMT008267; Mon, 24 Oct 2016 04:59:28 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Hemant Agrawal Date: Mon, 24 Oct 2016 17:29:28 +0530 Message-ID: <1477310380-17944-10-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: 131217839723893345; (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)(77096005)(8936002)(356003)(86362001)(8666005)(5003940100001)(305945005)(7846002)(50986999)(76176999)(11100500001)(104016004)(8676002)(81156014)(92566002)(81166006)(229853001)(2351001)(105606002)(106466001)(19580395003)(33646002)(19580405001)(50226002)(47776003)(586003)(85426001)(36756003)(4326007)(6916009)(2950100002)(2906002)(189998001)(48376002)(87936001)(626004)(97736004)(68736007)(50466002)(110136003)(5660300001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1623; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD045; 1:nzHYChmp6cVOnqDE0fGouK8p4qFHoZqCaq5EpUZxbET7cSssHYg7ZxkfOBSvTexRARiZoWQBLMAGqeA4VehRQZtDLVhFu56CSayptN/BvEGURPKJ2VAw4ZAKONW24UTS/XZGZVkQWGkECuWbkdSjloqI+hUeVr2alb07EYf3E8CnVz0Lc90KLMBpskM7bgOg0QCO0/XJomM4gxjHPydWuq4r/WbUImK8cebBIFQgstLcefZZfhQOVRznhOl3hMYFLfdMg7lMhDfKu7s2CQuaH8RBlerLdutHGjLwNioI+ENCEEJxaHvC+PA2eQLxg6u2rMdMdpLKmgZSdPrCmiQidjd8SAjVx6WMse7N0SwnEimYMO3rsiCni7JCStRWqmwWSRiixxPwybjCyB+jIqvSWa+HirQL/PKAiRMFvyCb3luSWf94IsFpBLACaPL1X9iK8t69V7NtVQcVGUR/i/o7w5LSQo9E/GCKl0AZ4apt2O69t+yW8r5u+IagUWccJNRTxdd2a60TVk3ZBwwC1zkhkTf3UMG2aD+2q5Vpc3kQO5f6WduaaG+6LQIp+ZLgoESRqUhlc2F/kAih4p8H5uMeYuifeeW2coaY3zjhHRsoFRTE8mMR5a+wo+6IobsfMwcsv+lzpol1nWFijJ8DhuLsYV1qToxJFkoQz4e7chzwfTKEr13IUPDSVBEOkHLieCMVGvxbdBGfs+lT24cAn0/U6uUG2Wjw/CuYT8XKRyr2CYA= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 475817ac-e231-49c7-7104-08d3fc053764 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1623; 2:nwTOeS0PcemkwLM7si/WPVAdVMwP4SLfsLqJrxcTfnxDTNy+QBg7KWDVFNJeteWZKIBW743fh7L4ZiEJrulQhMUeGEqZ8eJeDIK7/Ut9rgp+zrzxTXZTLEjIXblKLnbe83b6/rId24XvFS/+TZpLmBSsDo2MBZll7mD+2HsfJY6cUPWz051xcN1xXGioXPNT8lkO6VnWakA2dcphnyqdrg==; 3:QTAK2pGvUuevR5TnM0nEYeaglAYSOHLI7l29KMi5sosGeimAKbO9KumomhgNwZWmIil0Th+zAlRlf3K92w55Wwb2AbeS0SUxk2efcCv1Mf35cXDuwh9xus0BoBvurDQUv0gDPeEb1Gx1bsnI/YxeNz298CNUKcF4oEKlo2xdwdpaX5jdyHwwL/t8Vuv392M/iESGOhtoWoldZKCglboBspOFQO+BcHNc4TO/pqQonSgK0ccj52lBdpWUbwwEKTc+; 25:FujHIA7kBjSGd2H5IJ24fDxVQ2qOKjz+ErwoSb/d3chArxkQ0GMxcECAGxDEKhiPy/fmhYFP85PkT38dXGef+GX9mxcF8vKe6jwVn1WdbtIwnP8c/IGmo2JEHeq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ES10GFbHZCV/Koh3OA4OOKQ8brbj6cLrHgX6KjzDGB780jLTK+a3NmbAdvZPsS+FucH7P51Uru0gZ0sUoV6HuIGphzs2LpZ0ozmm3AQ3SjXb2OTUHdw6CAOkYLMLfzQ9hQ4IimeSFwpuJPFuzrjXMPMdghENLatit0VYun4mJ+s/HPInooprmEdDQPxWUscLPZvs9oPJEdzUsLhOA0aRSAgxedwZHl9VvE62T0V1z8G5BPYjE 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:BY2PR0301MB1623; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1623; X-Forefront-PRVS: 0105DAA385 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1623; 23:6zGyKIsUcmRKOjHd50ILcnHaiJ5HJZB58voxLy+?= =?us-ascii?Q?jRPVQNS41qIjBYTLqi1ok7d5APNTV5iKABWlzuWmPg9SwEiNZPcdNDuBfpw1?= =?us-ascii?Q?XbFEusFvZQEPZvrlQhnxaNM2nxpYBmVueYFI4TrFd5HTO9HHy8l3NohhdadV?= =?us-ascii?Q?gfv0h4syWdFK0ojR80F/afd4G4GSBsLeD+CPuQTNBgcTq3dYUsJ8N3kUpknP?= =?us-ascii?Q?Dkqm/XU8fLQZdF0MgQV3f8GKI4U1RhSwV5tzCvNk2rAuxRMWHugcJWUQX6YQ?= =?us-ascii?Q?ZOLJZe1wg8vxjzKSs/P3mHN9BXEpqnvgLbb3cKdnzFoI+yD12MXTcb8/9DWW?= =?us-ascii?Q?mWYroKW7HvFwCSU/V0de5p/MDoAPHleiHPa1QdIeIlrB+d/UKQCXmnnjP2vQ?= =?us-ascii?Q?D6ztr4nbVzlrzYOjj8zbBk0GyPYWtfOtnFF9Lropy92zjD4Xx317Ql8hnAdv?= =?us-ascii?Q?uHJO/soMn7nQezaqs0XsnnJNfa86CWqeDt+V3alQqYKd88F6NKleksmWJ6pM?= =?us-ascii?Q?/3vpFiQFuaiE8oyssFDeqgFWzbmSBCCa5scNObuBw1o8HF60HNopEVC43AVI?= =?us-ascii?Q?4Xi2mKs41oL39WO+DJ788KLMr7U9HcMMn6F/a7kyPTpCRgvcp7D9EKiA0aU3?= =?us-ascii?Q?rgVlNw/iBm1q4NbngHYJS7dV008nZ71WjF44t0BtSGdLDMgCblagvP9LWPb8?= =?us-ascii?Q?qLUPFumR1i2cXREFbh7EyeEK+MMWprZO8qy4Ws5wAkhfVl4lgq34K1S4KnV5?= =?us-ascii?Q?nSBi1542zV/P3eYDLkySZSDhDWOGoBefSoA0ZrhYFr+qM5sOzoApI6iPiBIZ?= =?us-ascii?Q?yDwpriF4oG02B0RlruOylz4IMYLEnmYEg2QvZYwgD6F49oJ55xgAXv9XQpHg?= =?us-ascii?Q?i76gqWdYqP94ymnWui10Xcian0gXFc9cwtgit5SSeAm36hUzNnDBMMetQhz4?= =?us-ascii?Q?nVb8c4z1Z/4v7pLbIune1cAjcMXBSs9VNZKLgYsaHLVDyu3rcyjGUi+1E7cF?= =?us-ascii?Q?zKbISvkdRHx5EO/ojqKQ3s1q+1c1EuxISQ+QNdz6Ll2cNlAa2aeT3Swo5e5/?= =?us-ascii?Q?wqYeiDe/z/8H+W16H+z5KNOPuWmkw9oEvwEP9YyiCOQI8RnoBrexwISDxg2T?= =?us-ascii?Q?rq3VB0YLyPKOw7juJhD8Wi6dTUiIw+op3cW8LurZZEVebE19joMtc35Px7Fx?= =?us-ascii?Q?lBdTAo1HxMP7zctU=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1623; 6:gmfqXkck8DyaJOq+l3pVAsrFyYbx2TBDtYNRngeXYgGDfOeGuO95VFxYYkr14qYjb9pCxrH78WC4fHh9d9ml29GmW5xcQPqGmgVQQICK7QzOaoUQ94Hr8eAs3jChu3l1/OK1ghb2zyrtwJjjnXpqs3QzP0JkbpVk7ndk5vXFm8Q2e/UP28AnoTvJuvCFsbfAYsr1VKnAMgtEV1KDNvEYQhqq7Mq7dgcN/rR4Q1BfEepigLKC1ARQCI2evnRwUrTg3JwRuKxW1qCxdSIEk41bDe5dtwe6mefsKvXckqQ6BPWIZlou/OGjzIgMcwjsfdtS; 5:0HhDD8r6qg9b02uKvqEavCN3KYTY1sGyVshvObrSFJ6QpSlN0itxK4mv2CL7EtJWaa5tUpuSvPPj5kkerKMHN/1tHwv2EE4QJwQ8kGY1AVY9s5VkAessVOuQlB6RVyW/haR7JHCUXrPvky0WxMfGGnhINoM6pnjiOqFBVviZW6HjFzJ6US8EV3g9MDr9cvZH; 24:dO//lQSVe7ZKciSVYiC3hfe9gLa0bMaz7MQrsq2uasthhdmZPv9oAFo5SYvnTEfCQA6BMNp4ZIoTcTqux3E/N7t2VOjIDIJV6KC4f5miiOM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1623; 7:mK2AFGuNb2ab93mxuj/VEQGxXP59McwYt3POxruANOPCZ2BPkFV+uvUYSc7hS4p5QOgeNmcvpB8lWD30FieGoV+jhUvUfV9rB51JE6JC1wdpmfOAu77bAismU7lfUCggh/Th//zOzRZm7l0KhGwhaJMYhGhUqQc4+cX+dDk7RZFqQZc+nRN5fuZzT7Nsa51vXJm4bet341VIptbgsfss/puInrMkY5EO5ExSYQ9UXqfc2YS09YfZEZqG2dzLy5hRa6Wd93Y5oB3YLQLIi/n++JScNtKC/6y34ePaa72HsfTX1okXBfq5BT7Ms+QA+2BnT+CUsWT4zxhnw7EzxnAPNVsfA6sSX8gLHYfjgLDYciQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 11:59:32.2021 (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: BY2PR0301MB1623 Subject: [dpdk-dev] [PATCH v5 09/21] eal: introduce command line enable SoC option 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:34 -0000 From: Jan Viktorin Support --enable-soc. SoC support is disabled by default. Signed-off-by: Jan Viktorin [Shreyansh: Change --no-soc to --enable-soc; disabled by default] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ lib/librte_eal/common/eal_common_options.c | 5 +++++ lib/librte_eal/common/eal_internal_cfg.h | 1 + lib/librte_eal/common/eal_options.h | 2 ++ 4 files changed, 12 insertions(+) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index d7c5120..4dafe5f 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -156,6 +156,10 @@ See the DPDK Getting Started Guides for more information on these options. Use malloc instead of hugetlbfs. +* ``--enable-soc`` + + Enable SoC framework support + Testpmd Command-line Options ---------------------------- diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 6ca8af1..2156ab3 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -75,6 +75,7 @@ const struct option eal_long_options[] = { {OPT_BASE_VIRTADDR, 1, NULL, OPT_BASE_VIRTADDR_NUM }, {OPT_CREATE_UIO_DEV, 0, NULL, OPT_CREATE_UIO_DEV_NUM }, + {OPT_ENABLE_SOC, 0, NULL, OPT_ENABLE_SOC_NUM }, {OPT_FILE_PREFIX, 1, NULL, OPT_FILE_PREFIX_NUM }, {OPT_HELP, 0, NULL, OPT_HELP_NUM }, {OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM }, @@ -843,6 +844,10 @@ eal_parse_common_option(int opt, const char *optarg, break; /* long options */ + case OPT_ENABLE_SOC_NUM: + conf->enable_soc = 1; + break; + case OPT_HUGE_UNLINK_NUM: conf->hugepage_unlink = 1; break; diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index 5f1367e..2a6e3ea 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -67,6 +67,7 @@ struct internal_config { unsigned hugepage_unlink; /**< true to unlink backing files */ volatile unsigned xen_dom0_support; /**< support app running on Xen Dom0*/ volatile unsigned no_pci; /**< true to disable PCI */ + volatile unsigned enable_soc; /**< true to enable SoC */ volatile unsigned no_hpet; /**< true to disable HPET */ volatile unsigned vmware_tsc_map; /**< true to use VMware TSC mapping * instead of native TSC */ diff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h index a881c62..6e679c3 100644 --- a/lib/librte_eal/common/eal_options.h +++ b/lib/librte_eal/common/eal_options.h @@ -49,6 +49,8 @@ enum { OPT_BASE_VIRTADDR_NUM, #define OPT_CREATE_UIO_DEV "create-uio-dev" OPT_CREATE_UIO_DEV_NUM, +#define OPT_ENABLE_SOC "enable-soc" + OPT_ENABLE_SOC_NUM, #define OPT_FILE_PREFIX "file-prefix" OPT_FILE_PREFIX_NUM, #define OPT_HUGE_DIR "huge-dir" -- 2.7.4