From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) by dpdk.org (Postfix) with ESMTP id 1657E4CE4 for ; Fri, 25 Mar 2016 09:09:22 +0100 (CET) Received: from localhost by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 25 Mar 2016 18:09:20 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 25 Mar 2016 18:09:19 +1000 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: chaozhu@linux.vnet.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from d23relay10.au.ibm.com (d23relay10.au.ibm.com [9.190.26.77]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 958742CE805D for ; Fri, 25 Mar 2016 19:09:18 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay10.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2P8997463242356 for ; Fri, 25 Mar 2016 19:09:18 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2P88jgu009972 for ; Fri, 25 Mar 2016 19:08:45 +1100 Received: from os_controller.crl.ibm.com ([9.186.57.26]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u2P88flt008988 for ; Fri, 25 Mar 2016 19:08:44 +1100 From: Chao Zhu To: dev@dpdk.org Date: Fri, 25 Mar 2016 16:11:52 +0800 Message-Id: <1458893513-22406-2-git-send-email-chaozhu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1458893513-22406-1-git-send-email-chaozhu@linux.vnet.ibm.com> References: <1458893513-22406-1-git-send-email-chaozhu@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16032508-0017-0000-0000-000003F66A7B Subject: [dpdk-dev] [PATCH 1/2] Fix CPU and memory parameters on IBM POWER8 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, 25 Mar 2016 08:09:24 -0000 This patch fixes the max logic number and memory channel number settings on IBM POWER8 platform. 1. The max number of logic cores of a POWER8 processor is 96. Normally, there are two sockets on a server. So the max number of logic cores are 192. So this parch set CONFIG_RTE_MAX_LCORE to 256. 2. Currently, the max number of memory channels are hardcoded to 4. However, on a POWER8 machine, the max number of memory channels are 8. To fix this, CONFIG_RTE_MAX_NCHANNELS is added to do the configuration. Signed-off-by: Chao Zhu --- config/common_base | 3 ++- lib/librte_eal/common/eal_common_options.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/common_base b/config/common_base index dbd405b..1beea32 100644 --- a/config/common_base +++ b/config/common_base @@ -83,10 +83,11 @@ CONFIG_RTE_CACHE_LINE_SIZE=64 # Compile Environment Abstraction Layer # CONFIG_RTE_LIBRTE_EAL=y -CONFIG_RTE_MAX_LCORE=128 +CONFIG_RTE_MAX_LCORE=256 CONFIG_RTE_MAX_NUMA_NODES=8 CONFIG_RTE_MAX_MEMSEG=256 CONFIG_RTE_MAX_MEMZONE=2560 +CONFIG_RTE_MAX_NCHANNELS=8 CONFIG_RTE_MAX_TAILQ=32 CONFIG_RTE_LOG_LEVEL=8 CONFIG_RTE_LOG_HISTORY=256 diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 29942ea..6c268c1 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -798,7 +798,7 @@ eal_parse_common_option(int opt, const char *optarg, case 'n': conf->force_nchannel = atoi(optarg); if (conf->force_nchannel == 0 || - conf->force_nchannel > 4) { + conf->force_nchannel > RTE_MAX_NCHANNELS) { RTE_LOG(ERR, EAL, "invalid channel number\n"); return -1; } -- 1.7.1