Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3930978ybi; Mon, 3 Jun 2019 02:49:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYWWj+idENXAXd+p0StqOvMkn4tBoNaskfRnIwXnMVICT7uc1BM3uJFl48i3UpclcuuAku X-Received: by 2002:a17:902:2e81:: with SMTP id r1mr28711202plb.0.1559555374726; Mon, 03 Jun 2019 02:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559555374; cv=none; d=google.com; s=arc-20160816; b=eVjy7DrJWKrwPdHONolUm710Yl46Yp4Kti9dxRDgFGNau+WDMxIme8pNR7bPAKN1g7 CPQ3E5Bu41k4hS4AEBGOHX5SgGGVuNPxpgQpr6EGO+ntdwj8ho7CcEoIwieH/zoJowAE AWaP1T8ItDJ/we+GOk6chpprotnDf+kli7KU2MG2fX62L7cEm6tHGcyyU5kvNpeX5xg9 zV5z0zczI5xkNrqY3eixLFEWlVsX7o/eNx6uWVm64FIHOpwpKu4h6eY3HQbWQ1Wlh1YP 3I/0PHaJ5Pe8SwGMYQ2K7dFnRdnIRaNVZPrZIN+pbpYk1DDjRIJcNOI+Pg4QjXQhdDJp pVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=a37niGOpSiUOzqAL8lSPqZSbY8EBi/kHt4NfhyqtnxM=; b=LvPmN8Pw72rMW+wybfdHCPYXi7dWHYXq0wy6Pq5OnwmFn9aF3Q0GxsVaTjvpsClYaJ KditunXtcbv0drlCmNFI7whLs3tJ0pAN5tomuPeM0Ou23qFc9ULmdFen85bWOX9mzlGz 5XjgLXvRio55/FKVE0TO0WlaR+8/h0r+B/3zgthAYTUMCPNA5HR3bZfXZesrzRIql6il Kbwj3Tum2cwG7xWzBAZGG1zAOz2gW0PouqL1gPIV6+QQvPLjOnt0Cmzwr56s9y2gJ1z8 0bmJhShfHWVR0VwNAiHmQjyk3ONhPdwQBwFynuHG/4SFyIIVeShCE9eJR1T9yNKAuIdE 169A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=LZoD3S5q; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si16066915pjq.79.2019.06.03.02.49.17; Mon, 03 Jun 2019 02:49:34 -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=@nvidia.com header.s=n1 header.b=LZoD3S5q; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbfFCHRy (ORCPT + 99 others); Mon, 3 Jun 2019 03:17:54 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18654 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfFCHRy (ORCPT ); Mon, 3 Jun 2019 03:17:54 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 03 Jun 2019 00:17:41 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 03 Jun 2019 00:17:53 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 03 Jun 2019 00:17:53 -0700 Received: from tbergstrom-lnx.Nvidia.com (10.124.1.5) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 3 Jun 2019 07:17:53 +0000 Received: by tbergstrom-lnx.Nvidia.com (Postfix, from userid 1000) id CED9E43068; Mon, 3 Jun 2019 10:17:50 +0300 (EEST) Date: Mon, 3 Jun 2019 10:17:50 +0300 From: Peter De Schrijver To: Dmitry Osipenko CC: Daniel Lezcano , Thomas Gleixner , Joseph Lo , Thierry Reding , Jonathan Hunter , , , Nicolas Chauvet Subject: Re: [PATCH v3 0/8] NVIDIA Tegra clocksource driver improvements Message-ID: <20190603071750.GA29894@pdeschrijver-desktop.Nvidia.com> References: <20190524153253.28564-1-digetx@gmail.com> <20190531082634.GA6070@pdeschrijver-desktop.Nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-NVConfidentiality: public User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL108.nvidia.com (172.18.146.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1559546261; bh=a37niGOpSiUOzqAL8lSPqZSbY8EBi/kHt4NfhyqtnxM=; h=X-PGP-Universal:Date:From:To:CC:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To:X-NVConfidentiality: User-Agent:X-Originating-IP:X-ClientProxiedBy; b=LZoD3S5qfj4ORc7lr68N5p/NbgDnnmLeHtvjtWvH9Apn+cWoQXoJQLkIzvNagOuv5 ZT24T3ZbPA4QxnuKnKym24oRsNcvTHDvJpC2G1VQGAyVx7rbkUuafsFZQk5CoTbfEb Jo617lMOeKx7OEgOgBbxTOfBLQsU6eYMaFPTG+K0gMUAUyxvhYFwQoBFgX6ZqkmewQ rA5QSL3Qm4qce57ofGuDT6XEZ4yIwt8N401fpNWQHX3wJ8yboPPDC1JIp9yVCXwIEV 5y/sQ9VnR+Lc4vUKFzfmhH02oJW7dRJYEXQ7zq9F6BYFuSAsndBZ7C2KcZRNgcD5Cg EHbYTZB82j32w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 31, 2019 at 03:33:41PM +0300, Dmitry Osipenko wrote: > 31.05.2019 11:26, Peter De Schrijver =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Fri, May 24, 2019 at 06:32:45PM +0300, Dmitry Osipenko wrote: > >> Hello, > >> > >> This series primarily unifies the driver code across all Tegra SoC > >> generations. In a result the clocksources are allocated per-CPU on > >> older Tegra's and have a higher rating than the arch-timer, the newer > >> Tegra210 is getting support for microsecond clocksource and the driver= 's > >> code is getting much cleaner. Note that arch-timer usage is discourage= d on > >> all Tegra's due to the time jitter caused by the CPU frequency scaling= . > >=20 > > I think the limitations are more as follows: > >=20 > > Chip timer suffers cpu dvfs jitter can wakeup from cc7 > > T20 us-timer No Yes > > T20 twd timer Yes No? > > T30 us-timer No Yes > > T30 twd timer Yes No? > > T114 us-timer No Yes > > T114 arch timer No Yes > > T124 us-timer No Yes > > T124 arch timer No Yes > > T210 us-timer No Yes > > T210 arch timer No No > > T210 clk_m timer No Yes > >=20 > > right? >=20 > Doesn't arch timer run off the CPU clock? If yes (that's what I > assumed), then it should be affected by the DVFS. Otherwise I'll lower > the clocksource's rating for T114/124/132. >=20 No. It doesn't. This is the big change between A9 and later CPUs.=20 Peter. > TWD can't wake CPU from the power-down state, so it's a solid "No" for > TWD in the "can wakeup from cc7" column.