Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2644093imm; Mon, 10 Sep 2018 04:30:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbSgETzgZIZ+0mDovO8asFw+b6p1o+d1ohhagtkEzcHCYj40OxzAv46aHiyVbqV+qeosvHX X-Received: by 2002:a63:8648:: with SMTP id x69-v6mr22295403pgd.268.1536579003991; Mon, 10 Sep 2018 04:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536579003; cv=none; d=google.com; s=arc-20160816; b=KvJX559jNSP7dZfyGl7v/1FDvZijmbBMRQQ0ZFO7jCVMcJHVemIDzXgJM/60XT55r6 SBOJ1og2W5YOrVZGAVpPMuEIF63mLGpwR4izjFFol7JIxcaugX5uO7XMGZESI7rX++r+ 1tbmxIFLxcxV1yNI0bPSAltWPl4nhjBzCeDwfcyXHgQiVIqtbTED3EvHzQ4bsdICDV0Y mMbCdkgwPVWOSyy/tPJjF9zT3yzjMRpnuSTK/B2yVkiu1aEYY4PG1Vqq3ZsoHqlwFrBy JS4a2ECvktNEPbJ8cKvwJKE+lgDKgSw0TS2a26ISPlvIYk9Yok9/70rU1ImiJTTAxPuQ LkwA== 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=6SUBQdD4Z7mT4AnPmlbovVbIxrku8bOiYO0UG3D9tXo=; b=XDJrF9POShjxM0WFuWqROIwKFIh6AHHhv+6ErW5aTQp9nj3qASpH/Iews+i7JyxTwH Z3FdnaGi4zMZtxgbk98siYW27cbJmfX33Z5iCCyr+hfm+Sxz6NCDDfUi2klZGMd4Wg3R iyx9Pvzyyv1MGnfisUXSMjd7ScSMhpyqoCLTid93VMzgHqn8nLqtPnrFiQRohqYDvH4k XsDpzVU9VomfCnEBssjPKzlsvovbH0lczACIbPSjHSBZD8hpqUV+DM0ScP4BNSWF+xis /h22QYDkkV/uF6wjrwMq39J3Pqp1OWKIv3z1Rr6Twfo3oIoG06vYh/fw4W4fBbtTjUFf 3Crw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZuB3Zqbd; 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 c13-v6si17388630pgh.627.2018.09.10.04.29.48; Mon, 10 Sep 2018 04:30:03 -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=@infradead.org header.s=bombadil.20170209 header.b=ZuB3Zqbd; 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 S1728548AbeIJQVl (ORCPT + 99 others); Mon, 10 Sep 2018 12:21:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728153AbeIJQVl (ORCPT ); Mon, 10 Sep 2018 12:21:41 -0400 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=6SUBQdD4Z7mT4AnPmlbovVbIxrku8bOiYO0UG3D9tXo=; b=ZuB3ZqbdhCyNqp3L6Um++fMIu DL4GRoPwbOhC7CNKQe/nyqQWPPKKjgHpj/9KTO43GDpRdmBSTkvBxrGcVma5RdOsu41/BwT9/DDjq ocHa14s+S5/7vsVm7Cm708uDdusPFrIgAkKCEGWfxNA1RCn89/ykHUMlWbxfc98hBH3AHr6ppRGAw 9yybglCywsePgnfs/v7qMg5UlhvMEnay17fnonegBP/GNMemi5wip0dCjuMQOLR0tzGRL2y5T8lRC kmy8nZdSOI48jEn92sRlFTYJxlFTyDIUaofGrwR2VVm3BMs8KAkiMuGDVjBWL7paRsCHdh3hdoj/y za9eJCFdA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzKMK-0007fm-6d; Mon, 10 Sep 2018 11:28:00 +0000 Date: Mon, 10 Sep 2018 04:27:59 -0700 From: Christoph Hellwig To: Atish Patra Cc: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org, mark.rutland@arm.com, Damien.LeMoal@wdc.com, jason@lakedaemon.net, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, dmitriy@oss-tech.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, catalin.marinas@arm.com, tglx@linutronix.de Subject: Re: [PATCH v3 10/12] RISC-V: Add logical CPU indexing for RISC-V Message-ID: <20180910112759.GI12979@infradead.org> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-11-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536221135-182613-11-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 Thu, Sep 06, 2018 at 01:05:33AM -0700, Atish Patra wrote: > Currently, both linux cpu id and hardware cpu id are same. > This is not recommended as it will lead to discontinuous cpu > indexing in Linux. Moreover, kdump kernel will run from CPU0 > which would be absent if we follow existing scheme. > > Implement a logical mapping between Linux cpu id and hardware > cpuid to decouple these two. Always mark the boot processor as > cpu0 and all other cpus get the logical cpu id based on their > booting order. > > Signed-off-by: Atish Patra > Reviewed-by : Anup Patel drop the two spaces before the ":", please. Otherwise looks good: Reviewed-by: Christoph Hellwig