From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690059.outbound.protection.outlook.com [40.107.69.59]) by dpdk.org (Postfix) with ESMTP id 25F231B1A0; Thu, 22 Nov 2018 08:08:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tvx9bQRh5nWLoEH+vGK0L3iNqBJs6RyPjbYF1HHOoF4=; b=mYU7Efb2BBz56WH3GlhiyokVM6dcDdoLMzWdxl7WsXI3OHe5rzmZYjAM0j85QO618okgx2QtueiLXyTnPMlz5JgCs6KC0sPzwPP144583AQVYuu+JU0HlAjFu9ia+qFyhcY6m/QPv6FdjBxxUCiJjbfvUKIMe5BQ1jh2HY3SNMc= Received: from BYAPR07MB4997.namprd07.prod.outlook.com (52.135.238.214) by BYAPR07MB4774.namprd07.prod.outlook.com (52.135.205.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.24; Thu, 22 Nov 2018 07:08:51 +0000 Received: from BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::2d56:eab:242f:fdfc]) by BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::2d56:eab:242f:fdfc%3]) with mapi id 15.20.1339.027; Thu, 22 Nov 2018 07:08:51 +0000 From: Jerin Jacob To: Joyce Kong CC: "dev@dpdk.org" , "thomas@monjalon.net" , "Honnappa.Nagarahalli@arm.com" , "gavin.hu@arm.com" , "stable@dpdk.org" Thread-Topic: [PATCH v3] config: enable more than 128 cores for Arm64 platform Thread-Index: AQHUgjEvkAW6ZCdjzEChTIBCxCg9JaVbX/8A Date: Thu, 22 Nov 2018 07:08:51 +0000 Message-ID: <20181122070832.GA15701@jerin> References: <1542798625-46722-1-git-send-email-joyce.kong@arm.com> <1542870074-142423-1-git-send-email-joyce.kong@arm.com> In-Reply-To: <1542870074-142423-1-git-send-email-joyce.kong@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [115.113.156.3] x-clientproxiedby: BM1PR01CA0137.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::31) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB4774; 6:jzAuG5gWw2xtSYbCEzBDpdriywZIKXtBNV6+yoly4TSB+j3H0PPOeDul9z0+tgSEhGta4rZHFKssWYVI6btuYUQUPEKmVUZzqnw09mo22UaZS1/P8Bg74SS1lUEvEpLzkwyk1o5UHQtBXiaFVNgPSm82NJjOkltdAj1pUK+fr2kqj+yvg7zMIBu2Wp/XqQSXobR2LRuFOQkF5kwFRNQcbUlLQMnGf/z71gIUu5UCaIjsOrkODOwC0IQHCIyazJlshW8QxN0bbPbVjYRBHvHXAL/cvE9UJq/YM7qoNIzX/WxqGYFq6lISy6AI0EOTiTJISuGqBtL6XufWTWV49aW0CZlZMEuVefqC7QkL8sXEzDNpjxZMP5ZCRckiEZwG0YFRdX0BSsqQEO6CryBYbfHKLTZCyr15+F5Yqzxr8PM70iLpBbczzegram9YK9+O9t+T7H3y5Nm00wKf770T8oG84w==; 5:OVNeCkNjINQtEc7eewx0pL8kPehjNfINf/L1pB6DMma4zQGNMILrpX76dXS6sDK4vhCC9OSglfdcW/qRYl4tBmI3gcAnw60aJWqaYGCgl32Y1A16k9tFILnYronKzUPTF3oV8Og0hQ5h4mepc472cCTdGzB/gkAl7KrBWQg5mQ8=; 7:qfEMg7oy3g6MamjkQ/Ja/JqO3WTgvFk+ODqwEYFZ210UryiAgB41D+hSjp2zyXUnS4Uh/7wS2Z/41XVbkbq+vX9wPVror22uPylAhzG77WflM7o65per9FwlAc6kf3BUZEiJCMvuis9L9WmFm5IZKA== x-ms-office365-filtering-correlation-id: c5f5b9da-cf37-4b5c-932b-08d650495adc x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4774; x-ms-traffictypediagnostic: BYAPR07MB4774: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(3231442)(944501410)(52105112)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:BYAPR07MB4774; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4774; x-forefront-prvs: 0864A36BBF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916004)(136003)(396003)(346002)(39860400002)(366004)(376002)(189003)(199004)(13464003)(1076002)(478600001)(72206003)(97736004)(33716001)(33656002)(8676002)(81156014)(81166006)(68736007)(186003)(6916009)(8936002)(54906003)(71200400001)(3846002)(316002)(2906002)(25786009)(6246003)(6346003)(6116002)(6436002)(256004)(99286004)(6486002)(76176011)(7736002)(33896004)(6506007)(386003)(71190400001)(55236004)(105586002)(52116002)(305945005)(42882007)(486006)(53936002)(106356001)(4326008)(14454004)(66066001)(102836004)(9686003)(11346002)(229853002)(2900100001)(26005)(476003)(6512007)(446003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4774; H:BYAPR07MB4997.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; x-microsoft-antispam-message-info: 4rUUav44NaIVn8rdzEOhidVK7AHW2NLao1uuMIv3QrY7fXvJkL0cBP79ZAXwrdDAsD8obbBm7pVr9Rayryj8BPglGar7Ws2l07UIlPuGaCYilUNC3D/a4DgXDCaxuHgsFtMJMMgaa/E6beFNbIR0170otfmydFM5c8H0ihzfChlyURvDq/8GWW5xgYawiSTxwJcKkGifWHYbtvl+nNggxlnnqIayzZmoqfU/bxWsvdUEcHJSHdJ/qAFs694GdcLORZGpNf0YLUxj70aCUckxwgZQBzrOIgYdsAp1S3T5iaVEaSrawDo6olwqLdtllG+P2tGujmdJWE4oXPibDxe+/FX09qyKDdHsxnWvHaXSE/Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <1584394FA18F954993036761A00295CF@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5f5b9da-cf37-4b5c-932b-08d650495adc X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2018 07:08:51.3608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4774 Subject: Re: [dpdk-stable] [PATCH v3] config: enable more than 128 cores for Arm64 platform X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2018 07:08:54 -0000 -----Original Message----- > Date: Thu, 22 Nov 2018 15:01:14 +0800 > From: Joyce Kong > To: dev@dpdk.org > CC: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, > Honnappa.Nagarahalli@arm.com, gavin.hu@arm.com, stable@dpdk.org > Subject: [PATCH v3] config: enable more than 128 cores for Arm64 platform > X-Mailer: git-send-email 2.7.4 >=20 >=20 > When running dpdk applications on cores whose ids are bigger > than original max_core setting, eal error as below: > EAL: Detected 104 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: invalid core list > -l CORELIST core indexes between 0 and 128 >=20 > The fix is to increase max_core to 256 on Arm64 platform. >=20 > Fixes: b3ce00e5 ("mk: introduce ARMv8 architecture") > Cc: stable@dpdk.org >=20 > Signed-off-by: Joyce Kong > Reviewed-by: Gavin Hu > --- > config/arm/meson.build | 5 +++-- > config/defconfig_arm64-armv8a-linuxapp-gcc | 1 + > 2 files changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/config/arm/meson.build b/config/arm/meson.build > index b755138..9b5f09c 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -46,13 +46,14 @@ flags_common_default =3D [ >=20 > flags_generic =3D [ > ['RTE_MACHINE', '"armv8a"'], > + ['RTE_MAX_LCORE', 256], > ['RTE_CACHE_LINE_SIZE', 128]] > flags_cavium =3D [ > ['RTE_MACHINE', '"thunderx"'], > ['RTE_CACHE_LINE_SIZE', 128], > ['RTE_MAX_NUMA_NODES', 2], > - ['RTE_MAX_LCORE', 96], > - ['RTE_MAX_VFIO_GROUPS', 128], > + ['RTE_MAX_LCORE', 256], thunderx has only 96 cores. It the "thunderx2" which has more cores. There no speerate config "thunderx2", it is using generic armv8 config. So this specific line of change is not needed. > + ['RTE_MAX_VFIO_GROUPS', 128], > ['RTE_USE_C11_MEM_MODEL', false]] > flags_dpaa =3D [ > ['RTE_MACHINE', '"dpaa"'], > diff --git a/config/defconfig_arm64-armv8a-linuxapp-gcc b/config/defconfi= g_arm64-armv8a-linuxapp-gcc > index 1842744..a6ed90c 100644 > --- a/config/defconfig_arm64-armv8a-linuxapp-gcc > +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc > @@ -6,3 +6,4 @@ >=20 > CONFIG_RTE_TOOLCHAIN=3D"gcc" > CONFIG_RTE_TOOLCHAIN_GCC=3Dy > +CONFIG_RTE_MAX_LCORE=3D256 > -- > 2.7.4 >=20