Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4902518imu; Tue, 15 Jan 2019 07:54:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN7JzbMSS3fEGJgJL1YmngkKLPMXNEjSqcS/9h5f2FEJSq4V6eqWE8yUx8DB+kOT+d0M8zWw X-Received: by 2002:a17:902:b20e:: with SMTP id t14mr4827426plr.128.1547567678968; Tue, 15 Jan 2019 07:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547567678; cv=none; d=google.com; s=arc-20160816; b=L1XJVXW653vf1lKrUb/O0MYHf7zyTcihQ6kRF6OqxbC4JV2Fe23ZCd+QR4qVotN54w 501FNxXi58IcuUcAZ8COsNb7t3yXjJDhYPnk85QQQCzxEZsrC4PYSyyBVhqud1m/JZW2 SQmIEW5gP7ia51j6A4kKxIReylURC1CFO6OcIcOZuS0Ws0FkC3pQTo2+xTqX5H1Q20uO NH5Mo79qXYak4rQFMBA7Lqy2wI6TjtC1NcnCvYiMLN/DWAcCwMspwnsXA04ZbFH9XKiS yywfQMMe9HB6rNyCltypwOOHbKyjjbCzt7s5q7fbj/DOnE6AyA28PBHjvwqzckNI8hbN Kdhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8sr1r5ObxO7vvfceoW9g3835ZSw6o1wIsUTWV/nsb4M=; b=F6pws2R3J9wbmVFnbSCqJIooLfEs/2PQjsZnzEoU+hpMY6LckHu34RY0fsc+h1Ad0Y 1oIkr9Wv7AX5ep8fYiO/+4IAtN6W3mSroK62VhdfuRZfAxvIlQlVtO+GNfrTOqoNvC7J /ZQf4186d/vaHdsSa70szZjt/6weY6iGjgRkIWSl+EneDU+8E0DnKG4tmlogAsvArBPG ZrPWqfqd8iHP0juhoblelTdm05pyTJrt/3Q7iz1OG1IqiY1fTf/yVZQ95HYPyyjV5cdY PL3PeGgkfHaladGVvw21wn6D+s0FK01wCJvTrmD3Ik7tQ12o2fwG6ORmauwwNJh0+6dG twRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jy7Uxcsq; 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 35si3743514plf.177.2019.01.15.07.54.20; Tue, 15 Jan 2019 07:54:38 -0800 (PST) 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=@infradead.org header.s=bombadil.20170209 header.b=jy7Uxcsq; 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 S1730048AbfAONw4 (ORCPT + 99 others); Tue, 15 Jan 2019 08:52:56 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:33554 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbfAONw4 (ORCPT ); Tue, 15 Jan 2019 08:52:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8sr1r5ObxO7vvfceoW9g3835ZSw6o1wIsUTWV/nsb4M=; b=jy7UxcsqFHMotCMpkUHf2FKYQ Glz156T9lFODn8AItUCLVtCW4bLn28jxWTYhOSu5NyJdVWwT74StaVHOvRdZdGWlIj9ghJS37zkq9 BbdG9B1ecRlRbTdradpbOnHNw5C1U6BFRYJZx6VtO7hnVD/7i/T3QDH/coKeLvtc3YArHoFIVEiqN W4ypnCPYwAImX91jbm/l6hnrNo1OvK1Ph7w6lVtBZgVoeoQ5sTmJ8BF2jCzigSksqJFYmbdVxyg+J /4TNxC3mXfP1U+TVYr7PRWIrjJNGPBGk56oKE10OtPcAOz6Y6tmVi+zcoeV0HuZwvX6PK7LRtY1O2 RmF+C5Ttw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjP98-0001Eq-F9; Tue, 15 Jan 2019 13:52:50 +0000 Date: Tue, 15 Jan 2019 05:52:50 -0800 From: Christoph Hellwig To: Atish Patra Cc: linux-riscv@lists.infradead.org, Patrick =?iso-8859-1?Q?St=E4hlin?= , Albert Ou , Jason Cooper , Alan Kao , Dmitriy Cherkasov , Anup Patel , Daniel Lezcano , linux-kernel@vger.kernel.org, Michael Clark , Palmer Dabbelt , Andreas Schwab , Marc Zyngier , Thomas Gleixner , Zong Li Subject: Re: [PATCH v2 3/8] RISC-V: Remove NR_CPUs check during hartid search from DT Message-ID: <20190115135250.GC28946@infradead.org> References: <1546940318-9752-1-git-send-email-atish.patra@wdc.com> <1546940318-9752-4-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1546940318-9752-4-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 01:38:33AM -0800, Atish Patra wrote: > In non-smp configuration, hartid can be higher that NR_CPUS. > riscv_of_processor_hartid should not be compared to hartid to > NR_CPUS in that case. Moreover, this function checks all the > DT properties of a hart node. NR_CPUS comparison seems out of > place. > > Signed-off-by: Atish Patra Looks good, Reviewed-by: Christoph Hellwig