Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1843089imu; Fri, 14 Dec 2018 01:18:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/XyRATj/RYu+uo0r3qN97Uit4StdatmLroin0MfsaEHhzC14xXpk67VDt85CWb8mQw5Ac2P X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr2194971plb.332.1544779119672; Fri, 14 Dec 2018 01:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544779119; cv=none; d=google.com; s=arc-20160816; b=KGj+7QptW7Nn+0pC4eXZxfiedwUhR71Elb1WTn3EheG4V2g41zgjto5UIyr0qfK4mA OaTgk2Kgt4p0YpbxA6bKcyWCzrOfLvKKq4bYbOYZMvm57K676easc/RW/k7YIxM+IzIu o8DkE7nobS2VaXIN+Oowc0A1MZVt0jiHTUhvDq7sBXVZN5hbOb3f2QsVNQCXB1GtLKPv VUGv7u797hhskIctalY0dTdeiVBqeIQQhLwxchEFMl90TwCemWGrpy2ZeoGRR26UAAS0 xzdrivPGkjmXlPhS54QxvY0sHU83XLutYR24SMsiWVfbxLDXXBaPe3nwkHxjx9/lOmGt GrMg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7UCphVpGxcgorfFMBuUs6+drT6tpgBRcwZsgdfxlhF4=; b=wQcvcnwf+zry5jBmn2LlyOZYHn7ZQ41s6q1zP+K1RZCyZV5eTTZQDJHyLcZgajbSob fANyYrn2hF31xW3dwyJfRivoEYK/e0WRw84XfoXC5X65c+PWoZe54ZjDCJLnIJDaaJVW u6yW2Q2i4jZGGYQbPsUYJfQwnw9IJTGbMOFV+TOt67xntA3NAExfnjx9TJjHRoIihVJi pXI0UYesB0YFmpP1hhABxf7vco93i82VxmFSloi8q1PF5rTdQBVwg+SJd5OAgArRmn9/ JTDhcUMJlE1sjwgHTHucWAGQQGfCM2v06xXGPuCRacrzApezxb/DrRCRoj8bBx9pJwpM crRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CHk5BADs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si3434689pgv.541.2018.12.14.01.18.24; Fri, 14 Dec 2018 01:18:39 -0800 (PST) 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=@linaro.org header.s=google header.b=CHk5BADs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbeLNJRa (ORCPT + 99 others); Fri, 14 Dec 2018 04:17:30 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50888 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbeLNJR3 (ORCPT ); Fri, 14 Dec 2018 04:17:29 -0500 Received: by mail-wm1-f66.google.com with SMTP id n190so4976533wmd.0 for ; Fri, 14 Dec 2018 01:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7UCphVpGxcgorfFMBuUs6+drT6tpgBRcwZsgdfxlhF4=; b=CHk5BADsuqOP/zMPk6h9fYHYJRhPt5i4RFkjYeHyiAlqQZUQj5DS70zq5W5O5WlHEL L9FNz24uf4eYK1XoruC11b0/4hiXrzxH48FU1SHEMQdfoQ4OZQOV9VT5v0Sj0gFr9CHG ToD3N2JY3ymOLXEsjqDRJXOnDp6EEPqx+W9+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7UCphVpGxcgorfFMBuUs6+drT6tpgBRcwZsgdfxlhF4=; b=IgHlxooU/1vPn9l0Juz2gtnMmwlsfVm2TXSs19H0qHbfQNmbvPUfoR28ugPz8J27uS U+Vv/ceWccLE72WN7iCmSwXdUqFZ42JNwbUeBzN9H/X2300ZLUrObFy0gWwYbH12msMs B/TzYoEkJfzwz9hLEwtb0iAL2i5045b7PXbR2PQRGvHTzegSm5lxWrANJ75beFfQB9ny +yIvBvjVvHWjJFDOOfaQo3LeOzQRriMWSN5y6Q4DOfDv6AzNiPc4DKm/ctOL1uJw9Ybo +ih1gAkzBGAEI5i2gKrjy5QhCgIIlagkdWPUIkIXJkJ6Sr0+3NG5DqmdeFgRBirnLDop V2wg== X-Gm-Message-State: AA+aEWbCAYD4sa6z+xP+xkr2bXLcXQvolouSxyiaIwnxAofpw+b1e7pe 54dzJOWMHIAXA9PH3Ilu988I4Q== X-Received: by 2002:a1c:a58a:: with SMTP id o132mr2712844wme.6.1544779047107; Fri, 14 Dec 2018 01:17:27 -0800 (PST) Received: from [192.168.0.40] (77.37.95.92.rev.sfr.net. [92.95.37.77]) by smtp.googlemail.com with ESMTPSA id b12sm2861827wrt.17.2018.12.14.01.17.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 01:17:26 -0800 (PST) Subject: Re: [PATCH v2 1/4] dt-bindings: Correct RISC-V's timebase-frequency To: Atish Patra , linux-kernel@vger.kernel.org Cc: Palmer Dabbelt , Christoph Hellwig , Albert Ou , devicetree@vger.kernel.org, Dmitriy Cherkasov , linux-riscv@lists.infradead.org, Mark Rutland , Rob Herring , Thomas Gleixner , Anup Patel , Damien Le Moal , Christoph Hellwig References: <1544742869-19980-1-git-send-email-atish.patra@wdc.com> <1544742869-19980-2-git-send-email-atish.patra@wdc.com> From: Daniel Lezcano Message-ID: <5d652370-4782-23b2-9896-b9666b3cc1e7@linaro.org> Date: Fri, 14 Dec 2018 10:17:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1544742869-19980-2-git-send-email-atish.patra@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/12/2018 00:14, Atish Patra wrote: > From: Palmer Dabbelt > > In RISC-V systems, timebase-frequency is per cpu instead of one > instance for entire SOC as there is a individual timer per each CPU. > Fix the DT binding accordingly. Why not use a fixed-clock instead of this timebase property which forces to declare a global variable to be exported from arch/riscv to drivers/clocksource ? In addition, please add the 'Fixes' tag > Signed-off-by: Palmer Dabbelt > Signed-off-by: Christoph Hellwig > [Atish: Update the commit text] > Signed-off-by: Atish Patra > Reviewed-by: Rob Herring > --- > 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 adf7b7af..b0b038d6 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>; -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog