Received: by 10.213.65.68 with SMTP id h4csp411994imn; Wed, 28 Mar 2018 06:06:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx48G6HJ2CC77mLpr18oX0iIS/xZ2oNsE2E4nQG5R0GribhC+1QnM4cdsDht/J9ZO9lSFpcXS X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr3765847plb.108.1522242392841; Wed, 28 Mar 2018 06:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522242392; cv=none; d=google.com; s=arc-20160816; b=Ui1iHW/II/bC/tyTDRAc50NLKZd3pn+zAKNkCP3/KyaM5G5Ej5c7HvpIdh/Ph06UiO 3bOU0m3i5rd7hD6b96IyRviOhQc2e+OP8vXGeOwyyHxO89c+znCXqURKQXxVapXi4neg U4DQXBLD5T04ki0zAjkzdgnj1EW2z/Z/+dhAiOoowe+1EkUIxpgwlU3SF9dvE/2cyIkj lEdgDmEFoZhtk77oFuN8h4L5SC3kaBHmk3EC9wPjYEk1485mLRUg4VV0Zp6iNlLAFwmj Zwl4qHfRurdiYxAsDHTAj/KRqlKsZOSZYqqdAWQ5XcUEOa3YWaB0Xm7niUXqTqLeagaN 7DSw== 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=NLCsWcMRN3WwkI0Y4PH48nPoKrVjlegFczPD6wUD8ws=; b=YO+wUx25ZoXwNorrap1I6EQBjFbfM939D/6Ichz7dn3EsV760BTHBkiramypIPm/C8 hd7lTR0Njd1QbYc82DBFEcuObiT26YYqECU+4f+cQ9XJCe5MChvmmVNXFpAUbeCNmXUB HNmLCKH/IphHBBaAGo2tEyjjkhicOp8J5WAJpqCYMVkXVAaUuY4MdeoLID9Q3ghtUPde Lhwk1z7jmPQv6DgXZYL8UeJlh7TZONg6UyB5NrXevF+H6e5FrfJY8GoYPqs3GXz71Rgh Xqwc3W6E4lp7c/XjbwPDygNEarK3liYsWMPvPTUucs2q8ybT0ni8K2x53LU2sPT0Bdrb I1Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCZgm6pr; 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 j5si2473606pgn.340.2018.03.28.06.05.47; Wed, 28 Mar 2018 06:06:32 -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=FCZgm6pr; 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 S1753225AbeC1NDR (ORCPT + 99 others); Wed, 28 Mar 2018 09:03:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52747 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeC1NDQ (ORCPT ); Wed, 28 Mar 2018 09:03:16 -0400 Received: by mail-wm0-f68.google.com with SMTP id l9so4829214wmh.2 for ; Wed, 28 Mar 2018 06:03:15 -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=NLCsWcMRN3WwkI0Y4PH48nPoKrVjlegFczPD6wUD8ws=; b=FCZgm6pr+VCtOJH9ISD1HlIO1IHwkkKVEG2tuAStU2RAMMkUchq9OGUTTIMIqfQsUx GnYb3V/l9Xg+Qxz7dfrez2fjucPcET90gU7GXheMuanbecElleBr3jRsrldXkUCbZgn+ zXlkGhvJh2k8xIQY2CwJpgMAyVxaTSPc8bozE= 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=NLCsWcMRN3WwkI0Y4PH48nPoKrVjlegFczPD6wUD8ws=; b=iNXn3y9Zwk2CMitV3T9AbyOTA9JCWvCUUSrANCfMQ5hyOhlWUAp6seJWHG1u1/Lkht jn7zTCRkfn6acZy2udIKFDJ+d/43YMmbuvpQ0v1wsyBw74qPl4rIeyffEd986FHtMT+e g3AHhEe3QZ+Z8Z4tSOVDFL185juoFfK61gkz4OnuwM+crNKyE1HyuiR2b9gl/AJA0BWW GijGk8Ju1dhrr0rRS7zcR91vFy59gBkM5AvXoplmWEoPsk/96wGpcuxk90HpkPXrvBh+ FyWdn2ZkcKD3soAbl2qtaImIM0xFAgpx1JyAD0q8JfoZ7ct1xbstdwAGQ/WhYZbf40E7 w9qg== X-Gm-Message-State: AElRT7GDZTVkDK7+Dm9gmLcBxfisbB/wq+gOPY0LK7bAGRqpFRO6E7hB V/l3BCML6WZhi5Mi/b8njJLCbA== X-Received: by 10.80.181.58 with SMTP id y55mr3377694edd.256.1522242193990; Wed, 28 Mar 2018 06:03:13 -0700 (PDT) Received: from ?IPv6:2001:41d0:fe90:b800:b0a9:da92:8c72:d9e2? ([2001:41d0:fe90:b800:b0a9:da92:8c72:d9e2]) by smtp.googlemail.com with ESMTPSA id c9sm2415044edl.23.2018.03.28.06.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 06:03:13 -0700 (PDT) Subject: Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver To: Alexander Dahl Cc: linux-arm-kernel@lists.infradead.org, Alexandre Belloni , linux-kernel@vger.kernel.org, Boris Brezillon , Thomas Gleixner References: <20180223171558.7037-1-alexandre.belloni@bootlin.com> <9761072.pX2B0LJlSJ@ada> <989df8a3-462a-c645-87f1-9f956e1b22c9@linaro.org> <4073350.0MmxRoANOi@ada> From: Daniel Lezcano Message-ID: <6d43177a-bbea-6a01-5fa5-1c7891e18412@linaro.org> Date: Wed, 28 Mar 2018 15:03:11 +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: <4073350.0MmxRoANOi@ada> 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 28/03/2018 12:29, Alexander Dahl wrote: > Hello Daniel, > > Am Dienstag, 27. März 2018, 13:30:22 CEST schrieb Daniel Lezcano: >> Can you can give a rough amount for the irq rate on the timer ? > > I used itop [1] now to get a rough estimate. First with kernel v4.14.29-rt25 > (fully preempt RT): > > INT NAME RATE MAX > 19 [ vel tc_clkevt] 397 Ints/s (max: 432) > 26 [ vel eth0] 4 Ints/s (max: 38) > > Next test with kernel v4.15.13 gives (slightly slower, but non-RT): > > INT NAME RATE MAX > 19 [ vel tc_clkevt] 248 Ints/s (max: 273) > 26 [ vel eth0] 4 Ints/s (max: 11) > > With kernel v4.16-rc7 plus this patch series and tcb as clocksource: > > INT NAME RATE MAX > 17 [vel timer@fffa] 2164 Ints/s (max: 2183) > 26 [ vel eth0] 5 Ints/s (max: 10) > > Is this the information you wanted? If not, could you point me on how to get > the requested irq rate? It is perfect. Thanks! It confirms what I was worried about: the clocksource wraps up too quickly thus raising an interrupt every 400us. That is why I asked Alexande about a prescalar register. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog