Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3209815ybb; Tue, 31 Mar 2020 00:06:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtiCZBYLYu3p9jbTf1vhuOwG8TMU8SAnc1Lb5YJjBofIosJjfcCYg5zuBXLTvxxuTAgX8xs X-Received: by 2002:aca:3255:: with SMTP id y82mr1215187oiy.44.1585638397773; Tue, 31 Mar 2020 00:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585638397; cv=none; d=google.com; s=arc-20160816; b=mnQKNHIcA88TMW+3gTqmjU7SIo2x/c9HnzgE92/rgY6CuBw9AKXcHE42LLzr6KfXlS KMRiCCqRKBME2OxFG/nWuBI4TrMJ8A/df75uIVlNDGB4RlzeKkUMze71yWSuWijP3CUe KK+j9etB4rUpcnQ3vFEie6PphodUrAWf7mltTLsVubh6dxgX1YzBt+6GZH8VJmZNHopk ChRwdh3GRZ7XL/95eC4jeOSOJ6QZjzuLI12K/c+d2irZ096+WFE3zWXFZIfOLjDGpPIE 8Y5PWQhLHcgbLPl68MzjQZHwHzZW49bAj5172xqYxPslGwFKLvfWjRSHsXD4bGjbRuCg +riQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=+W2kSJNePPvpfmefdQi4wIIsIxFwOZJO5lJsgSGbgtE=; b=p0k/ee1eOIDAUUuuKF1AgbhzGhcV6IOyRnbJJT7YVk7NPRCROpGkPE/cutgGj4ysuv o5ZaRl64nTXRR2n8RgxnZ5bo8VT5J1auTI9uuYYpWccOnpmIkxa/ZFJ8AySpEOVewKd/ uYip1iaE23SNBytcmRw5tg9YAspHKaVpLJhBsxb/3OUZ2zY/4pkGvoE1Ixa5+sg/hAzq x9CJLCaZ+7uMtRvyX8OyNx6JIGgObRp5wz3TQFOXsXc18J6+2V4/vvNhoLT21fGa1JB+ 2fUn9feGKGCV5+X8oA67PVM/cdS7fJaKnvn9WXnHkI2yzxYmb9v0l164/6hJmi58CSTp s0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=D5GlVnLj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s132si6247726oig.109.2020.03.31.00.06.23; Tue, 31 Mar 2020 00:06:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=D5GlVnLj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbgCaHGF (ORCPT + 99 others); Tue, 31 Mar 2020 03:06:05 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17876 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgCaHGF (ORCPT ); Tue, 31 Mar 2020 03:06:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585638342; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:To:CC:From:Message-ID; bh=+W2kSJNePPvpfmefdQi4wIIsIxFwOZJO5lJsgSGbgtE=; b=D5GlVnLjefUZ6xSEQ+H+BWHNGFrjA21P/xjOgtnqyoMGwWclXaAn/GCSzg4V0Nnn gHBs2uq/7ouqBBuU0T1vohFd5lMRzK0Nf3jl8NWeFTZ5pqiDnvs9cw2Z2nIEE3YKxZf I3AhVUX0JBGGb6Vpo0KbIBbmyRPvIZa0ScEap9mM= Received: from [10.233.233.252] (183.156.33.130 [183.156.33.130]) by mx.zoho.com.cn with SMTPS id 1585638340266555.4496725235127; Tue, 31 Mar 2020 15:05:40 +0800 (CST) Date: Tue, 31 Mar 2020 15:05:33 +0800 User-Agent: K-9 Mail for Android In-Reply-To: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> References: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] MIPS: Loongson: Use CONFIG_NR_CPUS_DEFAULT_64 to support more CPUs To: Tiezhu Yang , Thomas Bogendoerfer , Huacai Chen CC: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li From: Jiaxun Yang Message-ID: <6A188705-D65C-4500-BD26-EB944EEF0B21@flygoat.com> X-ZohoCNMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E4=BA=8E 2020=E5=B9=B43=E6=9C=8831=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D=883= :00:06, Tiezhu Yang =E5=86=99=E5=88=B0: >When I update the mainline kernel on the Loongson 2-way platform which >has 8 CPUs, it only shows 4 CPUs due to NR_CPUS is 4, this is obviously >wrong=2E > >In order to support more CPUs on the Loongson platform, it is better >to use CONFIG_NR_CPUS_DEFAULT_64 instead of CONFIG_NR_CPUS_DEFAULT_4 >to specify the maximum number of CPUs which the kernel will support=2E > >Signed-off-by: Tiezhu Yang Would 16 be a better option? We have only 4 way platform=2E >--- > arch/mips/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig >index a1f973c=2E=2Ea0b11f5 100644 >--- a/arch/mips/Kconfig >+++ b/arch/mips/Kconfig >@@ -475,7 +475,7 @@ config MACH_LOONGSON64 > select ISA > select I8259 > select IRQ_MIPS_CPU >- select NR_CPUS_DEFAULT_4 >+ select NR_CPUS_DEFAULT_64 > select USE_GENERIC_EARLY_PRINTK_8250 > select SYS_HAS_CPU_LOONGSON64 > select SYS_HAS_EARLY_PRINTK --=20 Jiaxun Yang