Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1364336imm; Fri, 28 Sep 2018 17:21:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV60cN2wZxTp4DSO+EAZ1DR29VBSu9ijJzuzxFOUXgyKtoLtk0cxWHjl94/wef4d0c+3HwZT8 X-Received: by 2002:a63:e505:: with SMTP id r5-v6mr886593pgh.170.1538180501592; Fri, 28 Sep 2018 17:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538180501; cv=none; d=google.com; s=arc-20160816; b=c/A7xqButvp7ZszFPg/fVsSDiUgPUW69kLfxeVgQeUVdwdaMxrAYjnqU1Cz7Y+O4UE OvUFtGo6MPJiFcfe/5wS0S2E1I/BhAVxpjsO6qtU4JHrQAgSqCyKe37vdqn8N/qwJTkz xlB/JxOYiQHvipdhZ6QIrFFjry335dsaifI/6Nb1JMI4JpeyT9kScDDpG0552Qag3PdH Evx8K9fp3o4MgmrKKkPXm4sje/jBC1Fhfgg+UC8p+MkwKoM+7iyX2wg9PW7m8mnu8TXT wM/L1Om2MrFlI2KXe3vXbW9Q+IvDRvirhrufp47GM8/ogs6edYPv0uDDYG1BIoe+wmX+ gXyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=wfmKKXiwNohAQp1lrZp1NwcNw71FTSlA1awGwDmJ4nM=; b=e7YNMncxP2DC80pRO7ThF6jzbIkToh2kdikyuVzAwCJ7v72NgE3qB4wDv0Z+90VMSk us/K+WsoA0cNpycXiAMBCr4BwW4YKtcs1+I2arrwcBPB4G5YSIERcR6Zllbe4/eYwmTR lgFEneC/lF8eqeTBest2KXpWG6EsNao30asp1wrcMKAY7858/di69UXzrIfQgtXWoDn2 /6O/t9FzY+tOIQRtq/BPYv8rvKV75FmB3UKiwoFUkUQKOjZwwaxr6IT64CP1vjvtIedB gwD9siiAui27Qm8GZKFolWTN3l12OPMSchtYh2p2W7/xJuNqUXdy40u8d+hqUvW1ottA RkkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SuMIzlxr; 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 i190-v6si5693673pge.83.2018.09.28.17.21.27; Fri, 28 Sep 2018 17:21:41 -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=pass header.i=@sifive.com header.s=google header.b=SuMIzlxr; 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 S1727355AbeI2Gq7 (ORCPT + 99 others); Sat, 29 Sep 2018 02:46:59 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36033 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbeI2Gq7 (ORCPT ); Sat, 29 Sep 2018 02:46:59 -0400 Received: by mail-pf1-f195.google.com with SMTP id b7-v6so5344701pfo.3 for ; Fri, 28 Sep 2018 17:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=wfmKKXiwNohAQp1lrZp1NwcNw71FTSlA1awGwDmJ4nM=; b=SuMIzlxrXoVn2wWlTc6Z7xspq6QVsIkqCg5krK0WyVKRnrBq6cQlRX76qge4Au/S7j rzvcVEdc45couju6vEj0b+RdIkG9ngFf43Im5HGdyAjSkmPas5xLRWdmHx/XkoBO3SYn mW7N9Hu5+UeD6njV+azurghMqimYVF75WvD/7Dft9M2dHWjuQYR2aXDjfQC/8k1pbFtD ENNojzuGAmbh0tI9YwVGgzYBc2WhFwHrC4XYYZDwKS93cIi0d2d3AX3GhiS8RrHIoZG3 Os5Z0/U7qh8Bc3ohmia9bUleRqnZTu9SII8I2hmLfSE+ihX0rW39zoiIeRZtwIQXLT0x YsJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=wfmKKXiwNohAQp1lrZp1NwcNw71FTSlA1awGwDmJ4nM=; b=KNho+vnPUD2Fq8QUiAax5D1IheEr4D2OPAv1ujAK5rEyB05G3pYVOyBQIcHh6K308t ivv6iyJ9CHzP8FJwEK5J+t2nk7wTKBuKJj2F98wiU6fqncH3PvkeRf4jgeySJ2mGPrac 2WKYIfM3WZ7UwKmi+ibHJLsG+qD5dkx0zOl3Gdz0/9GgdH90n3rZMU+wNw6bI9AXIC9h IqFJcsF/FJHU1Z52XfhrV3CCCuihk+j+akc9QkvCGBDAnSx161saZ9CzBvHBEa1NFaC6 hANhwRDgsa56Pu7dKvRyP2G/NdijmuhjtkcQWOkLDp5+OZCBwtdQ+L+6WcrAIXgZeBIx ChTw== X-Gm-Message-State: ABuFfoh+Ed196c+wGRgDwaksPpFsiPtbbBsHr4UWvUB5QmAQSf0aTR// fsPhqpJw7aTnQbaILEzV+r7YRw== X-Received: by 2002:a17:902:7842:: with SMTP id e2-v6mr401522pln.104.1538180446414; Fri, 28 Sep 2018 17:20:46 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id s13-v6sm9855903pfj.105.2018.09.28.17.20.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 17:20:45 -0700 (PDT) Date: Fri, 28 Sep 2018 17:20:45 -0700 (PDT) X-Google-Original-Date: Fri, 28 Sep 2018 17:20:27 PDT (-0700) Subject: Re: [RFC 2/3] RISC-V:Support per-hart timebase-frequency In-Reply-To: <20180917142308.GB15588@infradead.org> CC: atish.patra@wdc.com, linux-riscv@lists.infradead.org, Christoph Hellwig , 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 From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Sep 2018 07:23:08 PDT (-0700), Christoph Hellwig wrote: > 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? I agree. There should be at least a warning if they don't match, but ideally we'd just support per-CPU timebases. We have those systems already, they just don't boot Linux (at least, not yet :)).