Received: by 10.213.65.68 with SMTP id h4csp1454205imn; Thu, 29 Mar 2018 05:09:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/YNCNQXxX+Kn1KdsTJaN/XCzzsIMDYy1PjKpWqVcihdYl6bpM+xCd89i74YbEyqxFSw+25 X-Received: by 10.99.95.214 with SMTP id t205mr1296337pgb.145.1522325356814; Thu, 29 Mar 2018 05:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522325356; cv=none; d=google.com; s=arc-20160816; b=CSGgnCw34w/yJFLB6TvkYO2mI8vMMEC8AHc3bCJsGxIVtDnJCNpU+whJcZTY88o56p UAdyzCFMFAC5AT1G8x91he2B4onoUSSN2htdb2HgHzxOYqvtOBbvg06P8/i9Ora8YVgZ wLUrcpcZWQD2MMDorqTiSkm86BL3ME6ANIvZmqWGYWCqyMZ3ZFDmzT+S7PchuRXIYKQx EFYxgDuWrXvGjC5t9KNhLtBnl0JwBYlfyI6NhlYjbS4znB6+XbiYn2m7ynpot7F1RnKF +l0LWK5NwfsST7NaRmFhmI42nTPdsIx06+oibZsosuowETalRKLFM8S479+OfGtBeDfZ WPGA== 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 :arc-authentication-results; bh=OrYORt5lVAMncmHvEPSYRHRscFCO1GT+om4a2jcw26U=; b=qOOGBIuTH4gx6ODI7CXpUQ1roJsj96WwePdIr6Bjvpiy0EjIc5Mh53Q0bmzufcFZHT HYtJ3EXkI03Oq1jkKymc/R9IBVNx+brqNcBNGhOs/Qj9mt1Bg9CREWXfO+9H041km7jw I/SRETuKCT4fkX8yI0zrMTldLmf7TQnxcLxQ8Mg0Mnc//JcX7O0DKXmcorNJ4AJhP7+r i5v/uG9fdBBtRWaa21SBAF85LWU6uoMHsfIcPk/fs6Eu9mStOxVw5vHQuAxI1f90njYY Ud/41933vuACRnzyHkBqHFgLEYzLLfKjxU2+XaqgWcNqqIq0cgWBAv7Atv+CbGZpi76j DnCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hr9MG5mU; 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 h61-v6si5597726pld.610.2018.03.29.05.09.02; Thu, 29 Mar 2018 05:09:16 -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=@linaro.org header.s=google header.b=hr9MG5mU; 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 S1752649AbeC2MHj (ORCPT + 99 others); Thu, 29 Mar 2018 08:07:39 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37858 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752299AbeC2MHh (ORCPT ); Thu, 29 Mar 2018 08:07:37 -0400 Received: by mail-wm0-f68.google.com with SMTP id r131so11128948wmb.2 for ; Thu, 29 Mar 2018 05:07:37 -0700 (PDT) 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=OrYORt5lVAMncmHvEPSYRHRscFCO1GT+om4a2jcw26U=; b=hr9MG5mUaQWcumxsfbQ4GSR/7cri0SZPqw0t7A5uE/Ih1HKAZcVQ8R57t020Rd3Ta4 Te9u82Lv+cEz3UQlMPEnpvDcRbBJihfHpOlBYmn3eLkLJfWIWhkovKPGu4HOwzIMy3Vz 8/RkZfvIsDkJE3dJS5DSYSoxbIRQlAw0+DQgo= 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=OrYORt5lVAMncmHvEPSYRHRscFCO1GT+om4a2jcw26U=; b=o/6Mviu8ak3nnxd+GU37bzHu65e2pOGZi5bD/pnAe3Nkw81vbPI4QGwY2MvFRjpidt Fj49l/er34kPERTl3yNHGiz3Xu8lG6cCvyrGAPT3W/AQACEL8r7BwJSIkxSWnkGDbefP yEbudQi+wLFFEOZcot6jEE2SXCIQO76xuZ5dEEdGr3BY4IWRYczco4I5OH/a5LYDQHLv BfEDK6VJQTo4MBtyajX7xIA47CZsxm8diaewvTQmJrMWEdC5QVoZeQs/gEsFuDVJDhe1 Fa2QoWnXvf1IVlNRCFgaGqWiUbL4nl4EIvGJ0DggCFxDfTF+Um3jWH4PC8mjecjrWiIR DlXw== X-Gm-Message-State: AElRT7EQFx5F//pGKAdnYprxdSCrOxigMlv5gvY3q5DkGXrLG0U0GVsC iiTotgAmzCRiQf7sVCOPNdyOTpTSjpw= X-Received: by 10.80.215.195 with SMTP id m3mr7139789edj.296.1522325256434; Thu, 29 Mar 2018 05:07:36 -0700 (PDT) Received: from ?IPv6:2a01:e35:879a:6cd0:3e97:eff:fe5b:1402? ([2a01:e35:879a:6cd0:3e97:eff:fe5b:1402]) by smtp.googlemail.com with ESMTPSA id m23sm3697092edc.69.2018.03.29.05.07.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 05:07:35 -0700 (PDT) Subject: Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver To: Alexandre Belloni , Alexander Dahl Cc: linux-arm-kernel@lists.infradead.org, Boris Brezillon , Thomas Gleixner , linux-kernel@vger.kernel.org References: <20180223171558.7037-1-alexandre.belloni@bootlin.com> <3478710.yJBBt3uoRT@ada> <20180329104542.GK13942@piout.net> <3103570.fW0XyqvKVi@ada> <20180329114255.GL13942@piout.net> From: Daniel Lezcano Message-ID: Date: Thu, 29 Mar 2018 14:07:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180329114255.GL13942@piout.net> 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 29/03/2018 13:42, Alexandre Belloni wrote: > On 29/03/2018 at 13:31:18 +0200, Alexander Dahl wrote: >> Pretty sure. I rebuilt the whole BSP and added another line to the kernel >> source to see if the tree I applied the patches to, was actually built: >> >> >> diff --git a/drivers/clocksource/timer-atmel-tcb.c b/drivers/clocksource/timer-atmel-tcb.c >> index 7fde9cfbf203..f85affc74a86 100644 >> --- a/drivers/clocksource/timer-atmel-tcb.c >> +++ b/drivers/clocksource/timer-atmel-tcb.c >> @@ -222,7 +222,8 @@ static int __init tc_clkevt_register(struct device_node *node, >> goto err_slow; >> clk_disable(tce.clk); >> >> - clockevents_config_and_register(&tce.clkevt, 32768, 1, bits - 1); >> + pr_info( "*** bits: 0x%x, BIT(bits): 0x%lx\n", bits, BIT(bits) ); >> + clockevents_config_and_register(&tce.clkevt, 32768, 1, BIT(bits) - 1); >> >> ret = request_irq(tce.irq, tc_clkevt2_irq, IRQF_TIMER | IRQF_SHARED, >> tce.clkevt.name, &tce); >> >> > > I've just tested on a g20, old driver: > INT NAME RATE MAX > 16 [vel at91_tick,] 175 Ints/s (max: 231) > 19 [ vel tc_clkevt] 129 Ints/s (max: 129) > > > new driver: > INT NAME RATE MAX > 17 [vel timer@fffa] 129 Ints/s (max: 129) > 18 [ vel ttyS0] 175 Ints/s (max: 231) Can you give in both platforms how fast the clocksource wraps up ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog