Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3220986ybb; Tue, 31 Mar 2020 00:23:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtz3QZBBYgqclZJLNNXeuHoMZDQIw2cKRz+qiq4zva4ug/oZLwl/X4wd+2k5uadjbSbmPMo X-Received: by 2002:a9d:6ad2:: with SMTP id m18mr2335579otq.28.1585639417694; Tue, 31 Mar 2020 00:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585639417; cv=none; d=google.com; s=arc-20160816; b=ySb1OcUmE5oSRlBG7t2cNAgpmbGYzIBGnXEmxtvsvYPQpz5OZUMyl/0wix6gQQuN6Q yu163x0B68319M2Kg8EAjmftwCwsC/qrhoalXFlTJCkS6E0N3S2VCzVOqBNs5Xv31PtZ xHjkwieeSWd702V3LHxPGlhhaK5fguaKJaPIAi1mhOCU7pn7SF/KWRB3NbIRK9F7y0sX v8BuT1S4YoViOqPh4ryWR+np/2ujm0qsn9VQXaj2/uTVfsin2ZImurthhXa9LYWZmeAC 65H+Ap6w/1g6QfhjixPwocUFffzYp4Ga6Krdv8btFmCWhn3Q+cCu6mWpDI4HCUip4y1b fZyQ== 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=P8yT1CgxrAul7A4Ou3JPBhH5oCc1p9yACdVHSWJAzlI=; b=l6VyskgYzqagJbqyo2c4OHVEwgDVn2gKpZgeeaWHJjG85Y+o3P1HhIACX+x/+9csbB oVxQjuqcgfh+cim1DiqHayoHETSOc9smxt4GSU7e5+E3YqM7dTCMeOy05vUsC6RN3MGG Gyuujf26MBowJO7b0xSgMeEWbGtMfo0c9YSimHgCtGRNwovTI2sIyUdsbjOxxW6D+1S4 jZ0JJt4OI+uWXk20bsJMc9bTsVcT/Lu7x7QCfA1YGDmPdGebdBsKltSi/R1gkrFWKPTL lkgOo+CEv2pRmrTovKCm24sANal/5opr0gIp7cWUZRlvc/ZvWcAbaXhQ3VnV3EX1Sczv oEpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=aMJKJj34; 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 m2si7249341oof.17.2020.03.31.00.23.26; Tue, 31 Mar 2020 00:23: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=aMJKJj34; 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 S1729918AbgCaHWk (ORCPT + 99 others); Tue, 31 Mar 2020 03:22:40 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17871 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgCaHWk (ORCPT ); Tue, 31 Mar 2020 03:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585639329; 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=P8yT1CgxrAul7A4Ou3JPBhH5oCc1p9yACdVHSWJAzlI=; b=aMJKJj3483avgBLx9X6/dYbx5RWYTJJYsVvrbzAuUKIKQkfOEMJI7ijypS0AuytQ sK6U/TF6uQgGc/rt0kM7Q1u6w8Ncxvnr9QT+2Hp7Zs2f0OpAeN0q0d7NWs21jt6lBBC CFHVnQ54CmgdqH8H4z48/3sk9maSg78WZapwCTrU= Received: from [10.233.233.252] (183.156.33.130 [183.156.33.130]) by mx.zoho.com.cn with SMTPS id 1585639326353648.5257961231661; Tue, 31 Mar 2020 15:22:06 +0800 (CST) Date: Tue, 31 Mar 2020 15:22:04 +0800 User-Agent: K-9 Mail for Android In-Reply-To: References: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> <6A188705-D65C-4500-BD26-EB944EEF0B21@flygoat.com> 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: 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= :21:00, Tiezhu Yang =E5=86=99=E5=88=B0: >On 03/31/2020 03:05 PM, Jiaxun Yang wrote: > >> >> =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 > >There maybe have more than 4 cores per CPU or more than 4 ways >in the future, so I think 64 is better, otherwise we need to >modify this configuration once more=2E Ok, then Acked-by: Jiaxun Yang Thanks=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