Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp462210imu; Tue, 20 Nov 2018 01:55:15 -0800 (PST) X-Google-Smtp-Source: AJdET5eUupBAaTar5e61FivSW2HEcVPejQlaPPwOkpqmcaEFkg8bjAbi2MTsOieS5wIh9Eynv6St X-Received: by 2002:a62:c42:: with SMTP id u63-v6mr1498599pfi.43.1542707715075; Tue, 20 Nov 2018 01:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542707715; cv=none; d=google.com; s=arc-20160816; b=fgGIpUyvqVsEDb3QGf2t9zVB5D7OL9qYl3X5b7m/7RsMCuK6DqEvNIjBbmKjPYp7jk KdZngT/loDspjYdszCU65MgbDEkMOH+2CmkyjIH/8EG3B4nT1Hx/12+14vAoOAtd+cA1 VJ5p+exYQrmU7E9IIA2pEn2wvgx/pvDB3ocnY7RwxZ2wS516emo8SFImdCdg+Alt6Fxw 36GlG5TpDF7ApsKPsrUZiQfTcBYC5brOYlCaLS8A7pLTw8mp0jy4YZ0fmkUGaAIQ7u4H OKAAYiIP64o5MSua4VOTbzz2t7VjEvO0VoZy+pPxJjXOQpH8Ng+Oi2CC8q2oHRH7P9/0 uQ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=rTpUExRiRB0vAsLKCRVEvCNlUhWESyymfMFkkI78Umo=; b=aox01RNVBXJKHfDuC97UHoSIZHVAQgPN1NfEzetifRhkLSzqNJVaquhLl6Wxhxan9p PisHALf3VPKnuIMyumrEmnYTAC4EDGUEu8acbraw+2sn673uA25mLAb10KVyFiV4FydI egmpgHdq5OXcoP8gH3epYoMOishNnVbqq0FKCHXjOBpF4wEbls+lcJfFz7oyBWTHPSEG bL0Emi32lQoOrARQQhpUCfIsXWvyp+DP83cBYBdxaM1B30DtSIIV1VP0jGVI9AU5jvBH D1QjZqAwiotnG/W9bHeebcNJA7kwplBMbqUQ0Hq5WiJ1tRszMlCn4BRBrej1fu7N44i1 b4TQ== 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 30si40561124pgr.396.2018.11.20.01.54.58; Tue, 20 Nov 2018 01:55:15 -0800 (PST) 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 S1727764AbeKTT6P (ORCPT + 99 others); Tue, 20 Nov 2018 14:58:15 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:57180 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727155AbeKTT6P (ORCPT ); Tue, 20 Nov 2018 14:58:15 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id B576429E17; Tue, 20 Nov 2018 04:30:03 -0500 (EST) Date: Tue, 20 Nov 2018 20:30:09 +1100 (AEDT) From: Finn Thain To: Linus Walleij cc: Geert Uytterhoeven , schwab@linux-m68k.org, Arnd Bergmann , schivers@csc.com.au, Thomas Gleixner , Daniel Lezcano , schmitzmic@gmail.com, John Stultz , linux-m68k@lists.linux-m68k.org, "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Nov 2018, Linus Walleij wrote: > > Yes you already see the same as I see: this chip MK68901 has no less > than four timers. I bet the kernel is just using one of them, out of > habit. > > By just setting another timer as free-running we get a classic and clean > Linux clocksource for the Atari. > These are all 8-bit timers. Whereas the smallest clocksource mask I can find with grep is 24-bits. You can divide the oscillator down to 12288 Hz giving a maximum period of 20 ms. My concern would be that clocksource counter wrap could still go undetected given a little interrupt latency. > This is however a very good start in untangling the mess (as is the > whole patch series). > It should be exciting to see what happens when some of these changes get tested 8-) I've only seen results for Mac and Atari so far. > As with the Amiga, this chip also has an RTC clock that should go to the > RTC subsystem, naturally. > I think some Atari's have an MC146818, which is drivers/rtc/rtc-cmos.c, arch/alpha/kernel/rtc.c etc. -- > Yours, > Linus Walleij >