Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2004500imm; Thu, 2 Aug 2018 04:51:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfx3FlVKb8mlFKiPj6nTr9moW/yRqEtgo9zg8tYjPrXY1JU712qXwuIC58jeg14sxdnSuun X-Received: by 2002:a17:902:6b47:: with SMTP id g7-v6mr2143442plt.128.1533210689293; Thu, 02 Aug 2018 04:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533210689; cv=none; d=google.com; s=arc-20160816; b=f1zQKcrr4ozjsncnxFMDaDTFLRK8EG3vFwOkyiDkIE7h5f9ntBdpP4az4jeWkfYGx4 bFqViKQgyzSn6VYdA5/N3u7gKo78TLbOuoh9CgpMtpMwrd0h49G2/+NleGg1931smjgQ XPLOKnTRi21jpY/7jKTjErdj0P0KU4Hx/kF4zTTdxydmzcjfuGkV+hzajXmIeVGNfkBV v+b3GfQBwVO1Foc+D47WW2M0SNuqP+RjmsV/hO1nnqkXuP1QVwuHGfM0nlGj6Zpbq7wY rz1ribbCsbyD4Z3t352emJ53KzmN3FEf0FFVEOeYnJDpNvpZc/Jy/+Mku6Tvw6OhprIB YIaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KmtehZBvQ8FHrHdjfV2nyNHi6QaRR6lTpkmbGqVhkOw=; b=nxJT3kyRlhCCk98KIoZEy0E6Eitl4HGKTwnpzMaGyCk+CrFlAG4/qqLEGp128sT8Oj gka6oMes/6szLeDg+oBkCOrUhdBB139LCQTPpESoH1Tx4xDgjsgUvim8yJB2KX3Z7kJV n9S38eAFF6qs88pR81ojF/kZ+l9zx0X1zSZ8lCUzkcr65I+jUtN/D6yjDx5dCFrgY0u4 ey81UEOYwaAxNKgGFRFF2HREgyBZX/rmW61Q51ow1JrjY3AQeEf40p7klVjxyrjfDv2I 8qfBorU8xrxT+GtEcZ5kyeBOb96mm7LFZ0GvY+72wK7NvtL6K5Ukl+HlybYiHhZa5zyS 4u9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="sSAX9YR/"; 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 2-v6si1376316pla.509.2018.08.02.04.51.14; Thu, 02 Aug 2018 04:51:29 -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="sSAX9YR/"; 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 S1732298AbeHBNlJ (ORCPT + 99 others); Thu, 2 Aug 2018 09:41:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38838 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732269AbeHBNlJ (ORCPT ); Thu, 2 Aug 2018 09:41:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: 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=KmtehZBvQ8FHrHdjfV2nyNHi6QaRR6lTpkmbGqVhkOw=; b=sSAX9YR/EaTonCaRf7vNEgwmw KP69vG4OfEv0NRDcdkTfwzgPcEB0NQwSJxnTvMJE/KtPNYg1nqYGjAeOwi6lO7mPKxkgaZn+aeqqo ThHzOSSk0aYb0eR/1i1QcW+Gp4ZXefa+6Ojwy0uGokpuZ//14EJH10848bx221n0ueKhHHou2WX3A YsV6hOQqAl8YvRFMRwlDia+yvNFKXGFId0tU/wnGUDk3WT7jmhRA2zGGqJS1ecGkQLRmdkLZflf5g 499lkTI0JyHCYRMgi9hiHm6Vw4/qnO/tERq/FxMjBtJSFoIDYFMq8RRJh/1exfwo4w//apFJ+4eRW HHxAnsqdA==; Received: from clnet-p19-102.ikbnet.co.at ([83.175.77.102] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1flC7U-00058m-BW; Thu, 02 Aug 2018 11:50:17 +0000 From: Christoph Hellwig To: tglx@linutronix.de, palmer@sifive.com, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: anup@brainfault.org, atish.patra@wdc.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, shorne@gmail.com Subject: [PATCH 01/11] dt-bindings: Correct RISC-V's timebase-frequency Date: Thu, 2 Aug 2018 13:49:58 +0200 Message-Id: <20180802115008.4031-2-hch@lst.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180802115008.4031-1-hch@lst.de> References: <20180802115008.4031-1-hch@lst.de> 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 From: Palmer Dabbelt Someone must have read the device tree specification incorrectly, because we were putting timebase-frequency in the wrong place. This corrects the issue, moving it from / { cpus { timebase-frequency = X; } } to / { cpus { cpu@0 { timebase-frequency = X; } } } This is great, because the timer's frequency should really be a per-cpu quantity on RISC-V systems since there's a timer per CPU. This should lead to some cleanups in our timer driver. Signed-off-by: Palmer Dabbelt Signed-off-by: Christoph Hellwig --- Documentation/devicetree/bindings/riscv/cpus.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/riscv/cpus.txt b/Documentation/devicetree/bindings/riscv/cpus.txt index adf7b7af5dc3..b0b038d6c406 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.txt +++ b/Documentation/devicetree/bindings/riscv/cpus.txt @@ -93,9 +93,9 @@ Linux is allowed to run on. cpus { #address-cells = <1>; #size-cells = <0>; - timebase-frequency = <1000000>; cpu@0 { clock-frequency = <1600000000>; + timebase-frequency = <1000000>; compatible = "sifive,rocket0", "riscv"; device_type = "cpu"; i-cache-block-size = <64>; @@ -113,6 +113,7 @@ Linux is allowed to run on. }; cpu@1 { clock-frequency = <1600000000>; + timebase-frequency = <1000000>; compatible = "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>; @@ -145,6 +146,7 @@ Example: Spike ISA Simulator with 1 Hart This device tree matches the Spike ISA golden model as run with `spike -p1`. cpus { + timebase-frequency = <1000000>; cpu@0 { device_type = "cpu"; reg = <0x00000000>; -- 2.18.0