Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2645112imm; Mon, 10 Sep 2018 04:30:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYumHjmgTSPvxiKT+MU8AIaSN59S738PvuV77uu61DxD8Qhmd/m38ken9y7rv69cSbklVyh X-Received: by 2002:a17:902:7e45:: with SMTP id a5-v6mr21662170pln.151.1536579052466; Mon, 10 Sep 2018 04:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536579052; cv=none; d=google.com; s=arc-20160816; b=ELUDNO8qqc9P+kR58Zf2jqdySaoaxKtJiJ8TQADoqYZbd19N7o+rNP16K++GH236b8 5IXjVVLQTuDTw6MXS5XEY9tMgIhl1tTXQ9ivXwy7bMy6/pA1uS/X9GP7Qc/tnNqQ05Op iUBKudHlGfwvZLyf6G87G6PO5x+tnVUdJQWWspNU973FFhBaRbNNCbv2NWmSNrd8o1v5 Dar16tGbvENvhRkSYkGQ635MdFdUxJDWqh43qS1yX7bF9Xn5DCAjiY/aZQWwPX+oqFKv TVYwCC/0CR/28xkggoyVDSJ6C8ErEpkjKf6/IdKUA6s8BIL0XJ0rNnC7IV9T5SAAldUV NRkw== 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=MjN4hz016Kg5WJj/fDrDRPZSMdNeZsVRjeo+mCWCUh4=; b=NMT3Dj8bqJVNTiXJo5KdLX0vMhaTXTgyI/4yBKrdiwW1hu30xtxTKiAj0z+DjfTU47 C+zvsk25eh7NWOLIV8/CYvKQe7kjSESE88jmIkvHQ3TCySU1rBcDP6NZM1228b+NTlyx 5Ca4LHue/HUN53ur9ZHEowUDS766A7vBbpHKVMTAPOAtMgZIH+aTeTPAiUftt/2/Aauv oGhr6carv5W2UsKh01JTQGjsJB68dkQa+xLWa0cPGvox9WcEnj95W81klyTMRrsfD7At pXGjdbyc/kLRCbxyDd/6IB4zE2UJRG8RhLiGzka7vrA2zWFdipKFwnnnkzYLNDv12eiZ UvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ly9spqar; 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 u42-v6si17223360pgn.86.2018.09.10.04.30.36; Mon, 10 Sep 2018 04:30:52 -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=Ly9spqar; 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 S1728035AbeIJQWu (ORCPT + 99 others); Mon, 10 Sep 2018 12:22:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56546 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727695AbeIJQWt (ORCPT ); Mon, 10 Sep 2018 12:22:49 -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=MjN4hz016Kg5WJj/fDrDRPZSMdNeZsVRjeo+mCWCUh4=; b=Ly9spqarxkIWE1mdAXahmYszr 8G/7WNhylhi/rzpIuNdK22DH8Fu74AbUAAeu4xfcI0/3MgavKbHCVFcBFJNOkAFEVbuwsKSpmAyCW OJJ0fuGJswXcCJu2xxtcnBh7gZn01ttOnSO6IuHVZRbcBFBozMdJcmB8HVL8YHwo8ys7KqY65u28p xxdwzzESNnVWpgXGbx7JeRKtMNhKzii/xe3gHTz11QpwCcVs6iH/ZbCKxyfiCF070lup0wF20B4Dq hIjSpScdFRsoCzyXrB5ZVv5lLMz+OuivAtfmrQHrR8YvU19hSZqBEEf5juEmpgpfuIrjg3tyRYP4w d6U/BVtWw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzKNR-0007kv-R8; Mon, 10 Sep 2018 11:29:09 +0000 Date: Mon, 10 Sep 2018 04:29:09 -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 11/12] RISC-V: Use Linux logical cpu number instead of hartid Message-ID: <20180910112909.GJ12979@infradead.org> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-12-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-12-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:34AM -0700, Atish Patra wrote: > Setup the cpu_logical_map during boot. Moreover, every SBI call > and PLIC context are based on the physical hartid. Use the logical > cpu to hartid mapping to pass correct hartid to respective functions. > > Signed-off-by: Atish Patra > Reviewed-by : Anup Patel Same whitespace issue here. Otherwise looks fine: Reviewed-by: Christoph Hellwig