Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4227401ybl; Tue, 20 Aug 2019 08:46:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqytYbOJ+q+w0MCxRcK1D7Bkfb44OSWPBq1UXJ+gQx8rN9RSo+RylQxsi1IuHRRfWRaq8/AD X-Received: by 2002:a63:3006:: with SMTP id w6mr25574233pgw.440.1566316008521; Tue, 20 Aug 2019 08:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566316008; cv=none; d=google.com; s=arc-20160816; b=SdJdVQHkzRaAG8qNTUAteNuishLA8a0jkZhEe+HLpu1NOQBZxVGRK7rmML31e2no8F 7glV5DbYYafb00MGOvz7SJMKIRQLMJJ/T6XPNzR/Ybb3I+QgsiOL0mW8ElReM3oYuBhQ k0Si1C5pPOjVAK5KqLuKiDjX14S+DvLdQ50O8PSuOyWB/Z6sCnhEftTGvptI4aYGpNrG hE8X8nLhVuM/Zd2jY4MLOzxv1d6IJR8Il6QPrLhO4Fx5f1blqnsAJN4Xso0SdTdo/SEX ujs6afYaw0/ugBgu9Qg1DZlCiNU6S2OIDXN9iF65OhriaStlIRRF68VmO4JmBpH9pndb aRMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GDk1i5qgMHxMmCIYSUfM//cZyAICWCVMORBkryWxfrw=; b=e1qVaVwVvy4oFbxrRnQ/7FJJ11Kf5Ke/2XAfJ5jxJB8zPc9d6dEQHd6g1ReNwqxTeQ jQXP0S1YoHqsazNSk82wf0RSFnsmoFVU02EQfwH7EbKkuqpfgsCR7fMPu6OOw59IYiiN scMTCMRf//n13SQEEhHsBL1Zhm+T/7aNNR1c3gpeht0zXFD4ivR5VOOVUsfP/v7gHJkM /f/yDaPc51m9qPopKXuPlZs0oVN+ZMSzxD3c95mn2jn2GugFN26jHfNJDkqxtjmAEXHB 5+MLsgHgHFnbmLL/MlGnOrcU0MRFaGPhYD8FezHK0LDi69Ac/0HZEhCRC4No6jUgHXcM iCWw== 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 y27si13600942pff.50.2019.08.20.08.46.33; Tue, 20 Aug 2019 08:46:48 -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 S1729968AbfHTPoV (ORCPT + 99 others); Tue, 20 Aug 2019 11:44:21 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:59791 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbfHTPoV (ORCPT ); Tue, 20 Aug 2019 11:44:21 -0400 X-Originating-IP: 90.65.161.137 Received: from localhost (lfbn-1-1545-137.w90-65.abo.wanadoo.fr [90.65.161.137]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id BDB841BF207; Tue, 20 Aug 2019 15:44:18 +0000 (UTC) Date: Tue, 20 Aug 2019 17:44:18 +0200 From: Alexandre Belloni To: Alexander Dahl Cc: linux-rt-users@vger.kernel.org, Sebastian Andrzej Siewior , Thomas Gleixner , LKML , Steven Rostedt Subject: Re: [ANNOUNCE] v5.2.9-rt3 Message-ID: <20190820154418.GM3545@piout.net> References: <20190816153616.fbridfzjkmfg4dnr@linutronix.de> <2182739.9IRgZpf3R8@ada> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2182739.9IRgZpf3R8@ada> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 19/08/2019 13:03:51+0200, Alexander Dahl wrote: > Hei hei, > > just tried to compile this v5.2.9-rt3 for SAMA5D27-SOM1-EK1 based on > arch/arm/configs/sama5_defconfig and with running oldconfig and selecting > defaults, but that fails if CONFIG_ATMEL_TCB_CLKSRC_USE_SLOW_CLOCK is not set. > > I think this is due to changes for Atmel TCLIB in v5.2 and the not yet adapted > RT patch "clocksource: TCLIB: Allow higher clock rates for clock events", > right? Patch clocksource-tclib-allow-higher-clockrates.patch needs to be changed so: ret = setup_clkevents(tc, best_divisor_idx); becomes ret = setup_clkevents(&tc, best_divisor_idx); Also, I would think clocksource-tclib-add-proper-depend.patch could be dropped. Instead, setup_clkevents should use atmel_tcb_divisors. It would then be necessary to move its declaration before the function. Sebastian, can you take care of that or do you expect a patch? In the latter case, do you want a patch for the patch? > > What's the recommended setting of this option for RT? > Using the slow clock, will make the platform wakeup less frequently, having a higher clock rate will give a better clockevent resolution. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com