Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4046146imm; Mon, 17 Sep 2018 07:24:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdazKWG/+dUTRSb5FWykjzB5mdGkHPZIjT5LklFW1egtAc17cdRSTMchmLMnmX1wbrCK/7Xs X-Received: by 2002:a63:1b52:: with SMTP id b18-v6mr13935445pgm.303.1537194245676; Mon, 17 Sep 2018 07:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537194245; cv=none; d=google.com; s=arc-20160816; b=Rxyh4rdG2XMvp1lAsFrkzWQlWwVvHzh2diVwazL91sTsKWyBwskXq4Chcqmr/NkVjM 9qhQkl9EN5hcehStHH4RMQOitayC9gIxnEz8Pm+zyUgEMF/48jUFtkVIBkrewqY2ObGt Uju4/Wsu5L0fUMjn7GQ1wt+4pnV80BnydzujPaM9D36zhPYriAjp4nviNvfT7uFQCcjW kgfe9TAx8hFUWgJaCfRZm88osa2IfHPHW1fju3PpZe8iltIxN9wkW2cFUO0sctVtu4TI BzxPS56XxJy0KWMw3ozpctBS5jA/u+/53hMnETECbyd8O0h98DyNEPTGmNnH7lGYsjbQ /zog== 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=6tBWE85R2ILzm13UaxFxXmD91sWMmvqz6SQDGAZV1jk=; b=Upau9szOy4PQQAVmaoGmZNWB/Lk1/dNR6dT0LL63kl6wcucs7eoJlo5VcpZwsXZLtd YjXyc95fwqOeJSjWI9LkkUyXVVg/krs6HpL4rzm6EwedTzHrevikxgnp+GCda6oadNNQ ouLWEIw0JddLCjGWs/pgxpfa7nRnSgOyNLyDrkSv7BX8bQGCzCvuZzpUBZ4bbdSBtVRj zB4mFLpzDBDwnrAD3F7nssOyf0prjbW9YPiRaxkeQ57WbAkDZXoM2201POLG3k3Wx25D 8GARUYNK8OirXaV0HidSv/cAsMrohsc3a7P8aGLgF7idHFissQtOwsNjFxaamHqvaBGB 6gqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GiE5emYl; 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 r7-v6si15596036pli.248.2018.09.17.07.23.48; Mon, 17 Sep 2018 07:24:05 -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=GiE5emYl; 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 S1728757AbeIQTun (ORCPT + 99 others); Mon, 17 Sep 2018 15:50:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58546 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbeIQTun (ORCPT ); Mon, 17 Sep 2018 15:50:43 -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=6tBWE85R2ILzm13UaxFxXmD91sWMmvqz6SQDGAZV1jk=; b=GiE5emYloAm3kF9Eb8fOuDGSA NfHKmAROjGgkQewjZN+yj7snpz0ONMr/KZHm58PHaYOjbidheolumKpHGEY/L9aZqsstc+ip2AAkq +ZNmf1k6MpmHCSqU2RgZ4HWFqHF6rOxnJivqKyOyGv/iVAoxFbWCKvevjEnJ3+ViQTXSF+kHXiP7V +fuc6m0q1ZvfTCV9PhoDfzLdlN63hH7pP0zs4UBNO/rZWuxOtd/CtSAtU5NyJC43w10+y09u2H2xo OvF5tyFbuXx6Aed9H8wLBD0XV5n7cEIs/sflJTi7KSo6aHJISQbq5b0pBuDJ9BivS7vP7EinaHIAt EcroDhz8A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1uQe-0005uA-LF; Mon, 17 Sep 2018 14:23:08 +0000 Date: Mon, 17 Sep 2018 07:23:08 -0700 From: Christoph Hellwig To: Atish Patra Cc: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, mark.rutland@arm.com, robh@kernel.org, Damien.LeMoal@wdc.com, marc.zyngier@arm.com, anup@brainfault.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [RFC 2/3] RISC-V:Support per-hart timebase-frequency Message-ID: <20180917142308.GB15588@infradead.org> References: <1536962096-233842-1-git-send-email-atish.patra@wdc.com> <1536962096-233842-3-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536962096-233842-3-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 Fri, Sep 14, 2018 at 02:54:55PM -0700, Atish Patra wrote: > Follow the updated DT specs and read the timebase-frequency > from the boot cpu. Keep the old DT reading as well for backward > compatibility. This patch is rework of old patch from Palmer. > > Signed-off-by: Atish Patra This setup looks a bit odd because it keeps blindly overwriting riscv_timebase for every cpu found. Shouldn't we at least check that they all match for now as the rest of the port assumes that?