Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3245467imu; Sat, 24 Nov 2018 00:59:17 -0800 (PST) X-Google-Smtp-Source: AJdET5d8C60fDmv/pCiibT2H9qtL1M7qy/7qqHZ5vQ2bqTO92Mow6CugAN2g16pZhQ8n93vZZf3T X-Received: by 2002:a62:6d83:: with SMTP id i125-v6mr19707743pfc.184.1543049957449; Sat, 24 Nov 2018 00:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049957; cv=none; d=google.com; s=arc-20160816; b=VJ9yD+FowJXj+4ulc+7po5pTxHguttC+O/Csgcrq7QNn8vw6sIced3U3SXslvlNvgj 1++t5zv3rq09MIejpXOUeqvjH1Mi4WsYs8Ytkw+KptHHtDncxPh7vy1IaWhkGYM6RjCI 2f3Yaf88t0CuJn3IBPI2Za+shqucccjZ+bi7UlKUT6vyvUs08wXu/rPLW7R9GV4F1isX j+zVLdkcfGfH9ZRNBU6Fz3CVY3i1VK0aIQiU1pBugTRWeVNjdYg3QGMChDhdNZlPUd6v lj1h9kpyER5j8XEwxtckaxP0gqn39ejnyUISY5ETNMP1nO/pe0YAt4znvN5rGQ/pd7z8 oCew== 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=v+Dz5VqEgEI40IqW5uwpGptIi9RxHREkwosDRbtvkfQ=; b=sF640/sdEvLhi0SdSraazAJfTesxPfuEOpqZ0vj4VUB0RvRG3pxBRgubsMK8pNUtuW NelNFg/qS/xPk/9MBgzt59WeY+yPqQP8nL2As+1aYkkrvSs8h8oEIzT703TXpQqhtxwR nqmIkZGNi6/5CQ33hopowNHg/G3+um1BFkDRTpFnxVhfGV4FYvM918r86wVjMZKtN3sa Ta6M3gIL4xattYPpjDXvjRMksHrGW3PrnnySSgTHczwn6VU0aap/zzALgadkn0PUqDIQ 45xQBXM3YVTzpoIlssgt8WHYCmAvy/V1A37882yAimhCVmevcVfclKok74fiqVR8R7zc LMGA== 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 97si14828222plb.3.2018.11.24.00.59.03; Sat, 24 Nov 2018 00:59:17 -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 S1730120AbeKXNzb (ORCPT + 99 others); Sat, 24 Nov 2018 08:55:31 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:56486 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729519AbeKXNzb (ORCPT ); Sat, 24 Nov 2018 08:55:31 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 6442C27813; Fri, 23 Nov 2018 22:08:41 -0500 (EST) Date: Sat, 24 Nov 2018 14:08:49 +1100 (AEDT) From: Finn Thain To: Michael Schmitz cc: Andreas Schwab , Linus Walleij , Geert Uytterhoeven , Arnd Bergmann , schivers@csc.com.au, Thomas Gleixner , Daniel Lezcano , 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: <9035c015-85ef-6d14-d12c-f1d5002ee49a@gmail.com> Message-ID: References: <9035c015-85ef-6d14-d12c-f1d5002ee49a@gmail.com> 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 Sat, 24 Nov 2018, Michael Schmitz wrote: > > Am 20.11.2018 um 23:02 schrieb Andreas Schwab: > > On Nov 20 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. > > > > Note that not all timers can be used freely. Some of them are > > hardwired to generate the clock for the serial interfaces. > > Timer A is used by the DMA sound driver - no workaround possible there. > > Timer B is used by the framebuffer driver, but it's used only once to > reprogram the screen base address at driver init. This one could > potentially be used after framebuffer init to improve the clocksource > accuracy. > I don't think it would make a good clocksource as MFP timers are all 8 bits wide. It could be used as a clock event device in the course of a GENERIC_CLOCKEVENTS conversion (discussed elsewhere in this thread), though the longest timed interrupt inverval would be only 21 ms. -- > Timer D is already used to generate timer interrupts used to poll the > ROM port network card / USB adapters. This timer is initialized early in > the boot process, which prevents using the MFP UART as serial console > (something that I hadn't properly considered before). I'll send a patch > for that. I'll also consider using timer B or timer C interrupts instead > to poll ROM port hardware. > > There are no serial drivers anymore that could use the MFP UART > hardware, so that point is somewhat moot at present. > > Cheers, > > Michael > > > Andreas. > > >