From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp07.in.ibm.com (e28smtp07.in.ibm.com [125.16.236.7]) by dpdk.org (Postfix) with ESMTP id 61B0A2C10 for ; Wed, 30 Mar 2016 17:35:49 +0200 (CEST) Received: from localhost by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 Mar 2016 21:05:48 +0530 Received: from d28relay02.in.ibm.com (9.184.220.59) by e28smtp07.in.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 30 Mar 2016 21:05:46 +0530 X-IBM-Helo: d28relay02.in.ibm.com X-IBM-MailFrom: chaozhu@linux.vnet.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay02.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2UFZ2gG58785958 for ; Wed, 30 Mar 2016 21:05:03 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2UL4EZZ004584 for ; Thu, 31 Mar 2016 02:34:14 +0530 Received: from os_controller.crl.ibm.com ([9.186.57.26]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u2UL4AWp003476 for ; Thu, 31 Mar 2016 02:34:12 +0530 From: Chao Zhu To: dev@dpdk.org Date: Wed, 30 Mar 2016 23:39:16 +0800 Message-Id: <1459352357-852-2-git-send-email-chaozhu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1459352357-852-1-git-send-email-chaozhu@linux.vnet.ibm.com> References: <1459352357-852-1-git-send-email-chaozhu@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 16033015-0025-0000-0000-00000AFE5D87 Subject: [dpdk-dev] [PATCH v2 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: Wed, 30 Mar 2016 15:35:50 -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. The socket number on POWER8 little endian platform can be larger than 16. This patch set CONFIG_RTE_MAX_NUMA_NODES to 32 for POWER8. 3. Currently, the max number of memory channels are hardcoded to 4. However, on a POWER8 machine, the max number of memory channels are 8. This patch removes the constraint. Signed-off-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc | 2 ++ lib/librte_eal/common/eal_common_options.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config/defconfig_ppc_64-power8-linuxapp-gcc index a80a19e..9eb0cc4 100644 --- a/config/defconfig_ppc_64-power8-linuxapp-gcc +++ b/config/defconfig_ppc_64-power8-linuxapp-gcc @@ -36,6 +36,8 @@ CONFIG_RTE_ARCH="ppc_64" CONFIG_RTE_ARCH_PPC_64=y CONFIG_RTE_ARCH_64=y +CONFIG_RTE_MAX_LCORE=256 +CONFIG_RTE_MAX_NUMA_NODES=32 CONFIG_RTE_CACHE_LINE_SIZE=128 CONFIG_RTE_TOOLCHAIN="gcc" diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 29942ea..2b418d5 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -797,8 +797,7 @@ eal_parse_common_option(int opt, const char *optarg, /* force number of channels */ case 'n': conf->force_nchannel = atoi(optarg); - if (conf->force_nchannel == 0 || - conf->force_nchannel > 4) { + if (conf->force_nchannel == 0) { RTE_LOG(ERR, EAL, "invalid channel number\n"); return -1; } -- 1.7.1