Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5079871imu; Tue, 13 Nov 2018 00:25:31 -0800 (PST) X-Google-Smtp-Source: AJdET5fspqr/ZCtvvAYMoihNBkaz1UjfM/zX41n+z488EvTizLHvfLhKtYOWrEpzHANHD56QQyNg X-Received: by 2002:a62:8d51:: with SMTP id z78-v6mr4176427pfd.234.1542097531691; Tue, 13 Nov 2018 00:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542097531; cv=none; d=google.com; s=arc-20160816; b=i4xZ1SKk4r8+U1TjjbHrU8bjR2mK33LgK5z2i6qdtS0BqUD18KCjKZmYHNPLwiY2SJ OtaBhLhjBJ5sXp5dWnz/9CLK0j76bCqIKNVzQ+fZ/tqkvMCHAgfdmZx5qMNN5YibaTyp HkPmTGi1HKVA3K+DMpMdLMOX3dv2Gzm3jy8+s1GUjqKZwUeU8DY9j0IDUvCJotg4rVfk 6g+nNZilmY1zI/frI3oZ7sErpetJ1fO26QI1M0SuXtVFQYZmndQUi3u44QQ+RpqFW1vo vBbuwEc4++obut8Yj4YbNtnroyoo9LbdGAUtDTC5z4z8ZnawvSAPYZl6p4S/8FF3qBe7 gs0g== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=5AE1ok4zE17TW0bCUbkSxwRKLjVn+j/ZKwar8AT50xE=; b=WFXSGNexwH7fqRIF+Wt9vSmoxIyoHWOTox1cjhz7LwV3MGUy6YJbZYKg5NQC+PbDed l9asD4hBEmHii+btRXdtsoBYKZ79wLllKFS1JtIq+RhFdJ6PrrVV3KGHuReg4JX0UcYQ 699ZflHhDFKZL3074y71XjxNvlAkF1YIzK7BpHAeeuiTUJgzBTcza1JLef6ajvgidkzf mkQRaUN1i6MdR9j7m/fC65BdXgK77OrOp0TH1dqW/otZdk8K23wNm9VimYXkSIRBUKoQ CB3IUp78O0nVbne57YfuF2C0Njhb2bI6rb/jCMMAbd0PG8doFCvJK+kneOMfxBk7KdVP YTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A0hI7ZVI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si19194343pgy.408.2018.11.13.00.25.16; Tue, 13 Nov 2018 00:25:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A0hI7ZVI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731593AbeKMSVj (ORCPT + 99 others); Tue, 13 Nov 2018 13:21:39 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41259 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731350AbeKMSVi (ORCPT ); Tue, 13 Nov 2018 13:21:38 -0500 Received: by mail-pg1-f196.google.com with SMTP id 70so5337596pgh.8 for ; Tue, 13 Nov 2018 00:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=5AE1ok4zE17TW0bCUbkSxwRKLjVn+j/ZKwar8AT50xE=; b=A0hI7ZVISWsuwxkb9eDCkXYouueaewPoON7s9ckSeI3TpfjP/kRkxfrK1NfOCAFktk tkgsMXhEsrSN3pTjVhn7YuLBhnnztRGw4wDnPWJZdiJjZ7yRzVlL8V6aw00mYLgrGFKq clGByIWt22ELgbfvyY/teQVCOmDLPsjhiYA5tjYmP5j0YuGJwqMOn9V7RBY/YuJSrSkQ AsqN7NxYk5pQsS7nrDXqzV4hMfiVE+q3I5RVAL9SYCnwwrHSE2rOkQfnukdHczLiH3lk 9UBGrqbeijo530FyhynY1BKJtOBdVjqS/DGaboluDPBuQXV3WLumAE+pFdDISeh8Hibd QOSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=5AE1ok4zE17TW0bCUbkSxwRKLjVn+j/ZKwar8AT50xE=; b=YpURiPYOzxiqMwouevV3I8W877W+WqI/CsrpzIHA1Jn67LlMVt1wGu1WbxDs9Mzlr2 mhpVwuBGyHoQ4E7XmAiajAn089gN5qdro3pdM3zCrent2rvbihD5fr0gQAhBgWCWwsXX OATjJnldg5KMQjRzKh0kJ1mFyN3G5h5W7gfwtUf+U+IjxQC0ya+7LoFTg3RuegChGIQz oLjG7HksZVgvRQ62aDgMg/shlY8cnuHZZB65wQVqUfLKKEyQ4iVlIb6fI0Lt6/NKZmHS GxbMuOgp6ZBEWdymDAru5cJhSItDapzqXF56Io0Az0Uen7mtQMi5cN0sEQj0ke02QgGT 0h1Q== X-Gm-Message-State: AGRZ1gJ+hHPIWSqdrmwxNIBhFpZo9x9aDR9yEK6KBZFnTcVRdDh4ywJh 6MWpQHr5i2JMPsnL4IqhVm4= X-Received: by 2002:a62:fc86:: with SMTP id e128mr4256560pfh.54.1542097478239; Tue, 13 Nov 2018 00:24:38 -0800 (PST) Received: from [192.168.1.101] (122-58-176-92-adsl.sparkbb.co.nz. [122.58.176.92]) by smtp.gmail.com with ESMTPSA id 124-v6sm46327734pfb.132.2018.11.13.00.24.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 00:24:37 -0800 (PST) Subject: Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET To: Finn Thain References: <74edaee07800f91eb416ab3e72c4670b8ef4bd4e.1541995959.git.fthain@telegraphics.com.au> Cc: Geert Uytterhoeven , Arnd Bergmann , Stephen N Chivers , Thomas Gleixner , Daniel Lezcano , John Stultz , linux-m68k , Linux Kernel Mailing List , Philip Blundell , Joshua Thompson From: Michael Schmitz Message-ID: <0054c37f-ef34-e892-ff1d-02968ab529fa@gmail.com> Date: Tue, 13 Nov 2018 21:24:30 +1300 User-Agent: Mozilla/5.0 (X11; Linux ppc; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, Am 13.11.2018 um 19:15 schrieb Finn Thain: > On Tue, 13 Nov 2018, Michael Schmitz wrote: > >> >>> (It appears that a QEMU-emulated Mac does not benefit from having a >>> clocksource that's more accurate than the 'jiffies' clocksource, in >>> spite of "clocksource: Switched to clocksource via1".) >> >> With the current code, kernel log timestamps have 10 ms resolution on >> Atari. Time resolution of times reported by initcall_debug is roughly 40 >> us. I'd expect that changes with falling back to jiffies only. Might be >> worth a try on QEMU Mac. > > The initcall debug output shows the same precision as my earlier tests > with userland. The VIA timer only gets updated when QEMU wants to update > it, which seems to be about every 9765 us. Hence, using the 'jiffies' > clocksource would be effectively no regression for a virtual Mac. Running a recent kernel under ARAnyM shows 40 ns resolution so the Atari hardware emulation is a little more complete. Using that for initial tests, I can confirm that timer resolution is reduced to 10ms after patch 6, and gets restored to 40ns after applying the full series (once clocksource_init runs, that is - the first part of the boot is at 10ms resolution only, a regression compared to with use of arch_gettimeoffset). Unfortunately, I can't log in at the console with all patches applied. I immediately get the 'login timeout exceeded' message. Weird... Cheers, Michael