Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp608530ybi; Fri, 24 May 2019 08:36:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrSanUvyqaYeYlTXtDMnLaFq042P872yEhEQ9NMnIPLl9zkgjP8AfckOi0DOAC4dPUsBVv X-Received: by 2002:a63:5cb:: with SMTP id 194mr106451669pgf.294.1558712218430; Fri, 24 May 2019 08:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558712218; cv=none; d=google.com; s=arc-20160816; b=GbfW6ETUo7JW8GFpDPUHcyBM2XnABVES/350vpUrAKrRGhcx8z262OSHDFUn7HpVI8 GTUN6BooQVbLgrJlJYv0oqrCPaEypy3nKh71BCHqDJ4tKqtSzzFHnM0HEwmir1UqtPnq ePb1Ru4RHAzyi78GJ8G/KBxYtsUvXPKgjjq1RpxT4qFQF3nueNMVkK2DYoTvdX5V3cSb EUYrnqIsbbAkNaB+6+kBh3aHKGtbdoNSHiNH2rsSimnhj2UKd4D4ZBeOLUrbgen8cNxn FranQmw/mJPMlmScaF/d49guSA8uha/pvCrBSJ14kQ7DHE7zxk+ypENWmtYpjVNDfX3O Vw1w== 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:date:subject:cc:to:from:dkim-signature; bh=p7Liv7qd8+5BtHD0U0PqHlvEgsBKMReX1LuzLFCMHK8=; b=we7YuUvNf2F8CyaPussYEVjfzXWDDIy2FFAvYJAz9svl5PHV5z08faSr1w+wDlpWeD 4j5XoocF0l6VaDOC1xKA6o3sCk6b+9rMM+jR2KtSfdvqqPcvrvfGhyX9GNgNlSeFB/Ev AFmcVVQc/v3RSXpiV/QvSxG3bD/pPBrFO6o/TbXIBUNTit+0J/gO0ZL5OG+bfqcJVpn7 pON/3ZSfYkFDypy8i4BK84lCTIWvvn7jhTfqnZUAsIiNZFbin8HkWznH0xN0yjDUwoaf kFcnIwqyqZ/CsxOHfOYAuv/J3r0tc1U8jHRwiRdLmHYC215+wyBlU8mCPAltyuUz1eOl OrHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jcU0PA0h; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4836057plh.231.2019.05.24.08.36.41; Fri, 24 May 2019 08:36:58 -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=@gmail.com header.s=20161025 header.b=jcU0PA0h; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389765AbfEXPf2 (ORCPT + 99 others); Fri, 24 May 2019 11:35:28 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40720 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389203AbfEXPf1 (ORCPT ); Fri, 24 May 2019 11:35:27 -0400 Received: by mail-lj1-f196.google.com with SMTP id q62so9040051ljq.7; Fri, 24 May 2019 08:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p7Liv7qd8+5BtHD0U0PqHlvEgsBKMReX1LuzLFCMHK8=; b=jcU0PA0hUnXW9X1FBpgsbvZrt3YIH/dGhht9rrB9VJN9krvINOfGpAaPxzGqJCaSD+ +BF07DjsNNPv46E28PMY+wul6aCLtG7uteRyM0dINjhbsKWJvUF3B28uJLXQn7o2FwMa OeEjA351SWervSm0262UEjgyf7H0WaE5EIoRwsjzG91uyzhcQ2W44lqm7/R1Q07C97CK pP7DHrvXL9ZxrEsPyl9Vv5dmceB1fyAxIbkHM42Mzvj8HJeA91Q6kXF/jLE1Hka6YkT9 jK+x4eoxMWZ/mL2Cq/upnWGm2AQezaR7AezYaSWRUzIXsp8iSOhj5UfFt/Y39lkMYTXA Aglg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p7Liv7qd8+5BtHD0U0PqHlvEgsBKMReX1LuzLFCMHK8=; b=dymcQBrP81edz/iSIaEIYt/sAqyKbAeeWHK1dkJi6Gla9bsIXs4jlR6919jmDrG94G t4Kf+BPztMDpGWtTHzOtatKVXq+rQFhiuW6uIn5mtldvM+rPjBBOJfjBde/+rQBn6b7+ yl5/pGFy4dEIgkOBrOIW/RS3Sr8gsPMkJMnWhdkfc83cTkbbPYgioZmoGmTuwFejBi1x lYCmUsND3ldWxrdffG9oAWpxj1gqTduzvKxh1nHs+24yntCUlqRhHWCXdNkeHmWElQPX R8ozxKw7VTQ8fqjjiLjXmdXQoc75ocioCOPWuvNsNZVvRoQYXpdvkKtdgMlWiQxg29XC qCNg== X-Gm-Message-State: APjAAAXrxwgy6sdvgVP7aCPI9ahGGud3vTeYonAPTU0oiNCVUzAWKcuN nXQAeYPwEmkbT0eFRCNAdy0= X-Received: by 2002:a2e:7808:: with SMTP id t8mr13805852ljc.78.1558712125783; Fri, 24 May 2019 08:35:25 -0700 (PDT) Received: from localhost.localdomain ([94.29.35.141]) by smtp.gmail.com with ESMTPSA id y14sm572316ljh.60.2019.05.24.08.35.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 08:35:24 -0700 (PDT) From: Dmitry Osipenko To: Daniel Lezcano , Thomas Gleixner , Joseph Lo , Thierry Reding , Jonathan Hunter , Peter De Schrijver Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Chauvet Subject: [PATCH v3 0/8] NVIDIA Tegra clocksource driver improvements Date: Fri, 24 May 2019 18:32:45 +0300 Message-Id: <20190524153253.28564-1-digetx@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 discouraged on all Tegra's due to the time jitter caused by the CPU frequency scaling. The series was extensively tested on Tegra20 and Tegra30. Changelog: v3: Fixed compilation on ARM64. Turned out that it doesn't have the delay-timer, thanks to Nicolas Chauvet for the report. Added new "Support COMPILE_TEST universally" patch for better compile-test coverage. v2: Rebased on recent linux-next. Now all of #ifdef's are removed from the code due to the recent patch that generalized persistent clocksource. Couple other minor cosmetic changes. Dmitry Osipenko (8): clocksource/drivers/tegra: Support per-CPU timers on all Tegra's clocksource/drivers/tegra: Unify timer code clocksource/drivers/tegra: Reset hardware state on init clocksource/drivers/tegra: Replace readl/writel with relaxed versions clocksource/drivers/tegra: Release all IRQ's on request_irq() error clocksource/drivers/tegra: Minor code clean up clocksource/drivers/tegra: Use SPDX identifier clocksource/drivers/tegra: Support COMPILE_TEST universally drivers/clocksource/Kconfig | 4 +- drivers/clocksource/timer-tegra20.c | 276 +++++++++++++--------------- 2 files changed, 127 insertions(+), 153 deletions(-) -- 2.21.0