Received: by 10.213.65.68 with SMTP id h4csp510037imn; Tue, 27 Mar 2018 03:50:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELtnad3amhz0u/23u91eXrsbaN5DcntjfW/kLZZV5cOaBnF4DOV9dMzAhvEBoyOPj5ezvbjF X-Received: by 10.167.129.195 with SMTP id c3mr36281674pfn.14.1522147822991; Tue, 27 Mar 2018 03:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522147822; cv=none; d=google.com; s=arc-20160816; b=q1s5Gx5tv135lYpWufTlrx46Ud6ATrMs371EmRh+lSZhnRFXQ9nEfKdc1Fp+tlp3e+ xZAGsTDmLH4frg3Tx//ZKW+jMDvDqjZHz6ZB+ZCPYkKFx5e9nn5r85lBi1zld+4NyPpq Q4BJx+vdQTwYAVlkHxr28NVi/h5W1G9YiYSWEd9YDDeGE8ImMENOEyWQAGDPn2rG4vUj +fYABBWDrXea80RTSXR4k4OPkYxQpRkCktvWQw26yWVh+6gueBelsiLDLwXOUoCIUN+8 JTFvn+NDmHK4xEyuBgKxjh6jcnjLMu05MOkpvYOPNMVxd31eBCnnmQka1jG3gDmmYq9q Knkw== 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:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qGWsaemRe+kCxsbOC9+hFyx9e6iI5bx6XKYDo2KRdCU=; b=vPXXETRe+j1ekFr+GPpruHAAlj3649p7yNkNsNQPTJBwlBmUKQgCC/XfvI3nzAkk8m icm3hjERgmXH1thX5po/iYFtomp0jk/e6aD664aAMG0oKaAbUe+fd0cZmEKSg85ZNSO5 VQlC7dzqhpzWjmSDek0WK3wny7BLJJ3qKkC78mNTa37vK5unLTABuEaHObbKuJOV9PJe J9aS+0t6+WI4FopLWYvc/AzUYWcTV0jD/1qDj8nGgjo8RkqZNYBY7ce9zmCAGaTFRo+1 P3U6wZtDCozytU715jz6bnODMors0U3XSGWJhiqBM+07vzqL9J2RAXNE4Ncy9tMYW84s qWlg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si1000483plg.650.2018.03.27.03.50.08; Tue, 27 Mar 2018 03:50:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbeC0KrX (ORCPT + 99 others); Tue, 27 Mar 2018 06:47:23 -0400 Received: from mail.thorsis.com ([92.198.35.195]:55000 "EHLO mail.thorsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeC0KrW (ORCPT ); Tue, 27 Mar 2018 06:47:22 -0400 X-Greylist: delayed 368 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Mar 2018 06:47:22 EDT Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id 75DF63A4609; Tue, 27 Mar 2018 12:41:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYblzcBg9o_7; Tue, 27 Mar 2018 12:41:12 +0200 (CEST) From: Alexander Dahl To: linux-arm-kernel@lists.infradead.org Cc: Alexandre Belloni , Daniel Lezcano , linux-kernel@vger.kernel.org, Boris Brezillon , Thomas Gleixner Subject: Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver Date: Tue, 27 Mar 2018 12:41:08 +0200 Message-ID: <9761072.pX2B0LJlSJ@ada> In-Reply-To: <20180223171558.7037-1-alexandre.belloni@bootlin.com> References: <20180223171558.7037-1-alexandre.belloni@bootlin.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on seven.thorsis.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Alexandre, Am Freitag, 23. Februar 2018, 18:15:52 CEST schrieb Alexandre Belloni: > - using the PIT doesn't work well with preempt-rt because its interrupt = is > shared (in particular with the UART and their interrupt flags are > incompatible) This is actually quite annoying when using the UART as a serial console,=20 producing garbage when you type too fast. That's why I tested this patch=20 series (on top of v4.16-rc7). Target is a at91sam9g20 based board, quite cl= ose=20 to, but not actually an at91sam9g20-ek. =46irst test was with the previous kernel config updated by oldconfig, so=20 basically still using the PIT: +CONFIG_ATMEL_CLOCKSOURCE_PIT=3Dy On the serial console with v4.16 and the patch set without switching to the= =20 new options, I see this on boot (no surprise, this is what it also prints w= ith=20 v4.9): clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns:=20 14468723050 ns =E2=80=A6 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_n= s:=20 19112604462750000 ns =E2=80=A6 clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff,=20 max_idle_ns: 115749784805 ns =E2=80=A6 clocksource: Switched to clocksource tcb_clksrc Interrupts here: $ cat /proc/interrupts=20 CPU0 =20 16: 4802 atmel-aic 1 Level at91_tick, rtc0, ttyS0 19: 24041 atmel-aic 19 Level tc_clkevt 26: 124 atmel-aic 21 Level eth0 28: 1 GPIO 11 Edge reset Err: 0 Second test with tcb block added to dts like in=20 32ce250b0af3b6971fc746445fce87861a9f5628 and with changed kernel config=20 according to defconfig changes in patch 5 and 6: +# CONFIG_ATMEL_CLOCKSOURCE_PIT is not set +CONFIG_ATMEL_CLOCKSOURCE_TCB=3Dy -CONFIG_ATMEL_TCLIB=3Dy -CONFIG_ATMEL_TCB_CLKSRC=3Dy -CONFIG_ATMEL_TCB_CLKSRC_BLOCK=3D0 +# CONFIG_ATMEL_TCLIB is not set -CONFIG_ATMEL_PIT=3Dy +CONFIG_ATMEL_ARM_TCB_CLKSRC=3Dy -CONFIG_PWM_ATMEL_TCB=3Dm The output on the serial console contains this: clocksource: timer@fffa0000:0,1: mask: 0xffffffff max_cycles: 0xffffffff,= =20 max_idle_ns: 115749784805 ns =E2=80=A6 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_n= s:=20 19112604462750000 ns =E2=80=A6 clocksource: Switched to clocksource timer@fffa0000:0,1 Interrupts here: $ cat /proc/interrupts=20 CPU0 =20 17: 5727291 atmel-aic 19 Level timer@fffa0000:2 18: 5523 atmel-aic 1 Level rtc0, ttyS0 26: 5031 atmel-aic 21 Level eth0 28: 1 GPIO 11 Edge reset Err: 0 So, the board boots and runs like usual. I don't know if that qualifies for= a=20 Tested-by? Hope that helps. Greets Alex