Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp919035ybe; Thu, 19 Sep 2019 06:03:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxRknI1SbqrlsiAdQGqiL+iEB9CH27Hyjz03WleiWqQ4bjD1aDx9VvuWiA18MJFYbFHBiG X-Received: by 2002:a17:906:eb92:: with SMTP id mh18mr14319015ejb.298.1568898229192; Thu, 19 Sep 2019 06:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568898229; cv=none; d=google.com; s=arc-20160816; b=bVk6n49Y/ZUSLA9k12Rh0eYF9JKcHafm26/syK3+OLyBx2ICFWTYLwF2w67A91GHGA nRceIv6cfyT4Qe0SB/0gGhvd/rnKCR8zizvWCZILmxByR1J3DOBlnNfat1gAtxBJAQ/2 CcEMoE+bKB8ME6zQx/D365d99X3bHfvk6oLOrLSmv6WiRDI98dfqEsMJd24eHWo+uq8B 4OeWis+0PqHfK/DfZIBiDGEUdB6OrnZv8nwb4UtJj6R38dshKTbFhnlXay87bkDdymRd JFNXWonnM/y023h6MCrIGqkfBTk0dV5JdjTuQbkryaf4Rg1BUA72Q9Ccnn8xXRsmO4t+ DV4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=gsF00vNgXw575RYOcjd2Hyu3i97yNroUNzeWzjRWKoc=; b=PlaWGgRVS8VrIrF0/sCnsPwmox90/9H27Z6wGQznasFxZl6n0mYH4M50RF7cFxWfbX qdNl1sbR2WRv5mgrxYFM8Dffv2soUmKlnUisfHiNRgYfal3ezaeL5rbNpcR5rEScOxOG zB3qijM2otfAeaXJu1Kt4rYo8Dm3K6iDC14tSgFaxWXyjfLxBvebcLgLSuHlR+EYnvge L3v/JaOmsyWyY1IabllHrt/Wbk2k8f0tYf76VGpwtNCEegh9JYqSh84E75Hg5SOgHkmT /+oBUTuw8pU4fmAkNDc5EkindhrSRmLz+JPB/31mQULGgOeS9RG6cu6CSk9jbN7iyDe6 AQig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si142516ede.86.2019.09.19.06.03.23; Thu, 19 Sep 2019 06:03:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388935AbfISLLP (ORCPT + 99 others); Thu, 19 Sep 2019 07:11:15 -0400 Received: from utopia.booyaka.com ([74.50.51.50]:51373 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387693AbfISLLP (ORCPT ); Thu, 19 Sep 2019 07:11:15 -0400 X-Greylist: delayed 401 seconds by postgrey-1.27 at vger.kernel.org; Thu, 19 Sep 2019 07:11:15 EDT Received: (qmail 6848 invoked by uid 1019); 19 Sep 2019 11:04:34 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Sep 2019 11:04:34 -0000 Date: Thu, 19 Sep 2019 11:04:34 +0000 (UTC) From: Paul Walmsley To: Anup Patel cc: Paul Walmsley , Xiang Wang , "linux-riscv@lists.infradead.org" , "palmer@sifive.com" , "linux-kernel@vger.kernel.org" , "aou@eecs.berkeley.edu" , "citypw@hardenedlinux.org" Subject: RE: [PATCH] arch/riscv: disable too many harts before pick main boot hart In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21.999 (DEB 260 2018-02-26) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Sep 2019, Anup Patel wrote: > > From: Xiang Wang > > Date: Fri, 6 Sep 2019 11:56:09 +0800 > > Subject: [PATCH] arch/riscv: disable excess harts before picking main boot > > hart > > > > Harts with id greater than or equal to CONFIG_NR_CPUS need to be > > disabled. But the kernel can pick any hart as the main hart. So, > > before picking the main hart, the kernel must disable harts with ids > > greater than or equal to CONFIG_NR_CPUS. > > > > Signed-off-by: Xiang Wang > > You missed my Reviewed-by here. Thanks, added. - Paul