Received: by 10.192.165.148 with SMTP id m20csp360892imm; Thu, 19 Apr 2018 23:50:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HfOiyhuPV0nyu5+gmjoVyEJG6W435IRs8FF9js67X2Fj17HFnzliBn8Y6LVVETu7fDdFD X-Received: by 2002:a17:902:9a90:: with SMTP id w16-v6mr9021491plp.390.1524207031429; Thu, 19 Apr 2018 23:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524207031; cv=none; d=google.com; s=arc-20160816; b=ApoHeSlZ89dZfoMvT6F+1y/g14rDSk+2eI3xlozHkvkzIZ1UrZPKvHiXcpljUuNiSr R0lhgOAfXnL5Fo6sMrRwpG052oRxhhU5lYBmTCqImJ7LWlRzqZQFER2Gd8VnOcqoMNhd 5wbiz1y3viMF0w8XGSXZUzvfxhcRfdjTSaS7Jhg3xNrUoW/bvUFKKrTT5fDTqb/QSSmR griJLnPfbkCFK7lEQrDC8/4J5YE203ARgftLMqUUFF7gh3sJkJqm05Pm87RRektyJF5b b74K6V5JEvWlvjNIaCUluEi6XcUGUDuCyyNL760ivMgH+nk/CmwZOCSQKe3dFt6YMHcT XUvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sRsAgSkIL5Pob15zO+n0pBQuAbp+gh8581UCk2ARRfQ=; b=aLeMGckHYkgXe0K9Ebl9RvEucOGjvHxaO4R2gFnEOVukCZr28+gRPGX9rJI9nt00B1 acY7H4KscKc2PmYvrXBSmBnDOHJEkDTyHM+sSGiQQu4WpPlkK4XT3GYUMlZ5I8ZTIjnx nYDnksTdTEtZwKIE27JO+SBIlDY915FL9Pmx4vj/lwDKQN+YNjo50T+oF0PncMi2FpXS cLKEr7N/HhU4ma7kuOyfyeDrzVMyCMxsufyrRMJ97p6NdVTaHNX2VHxFrQSn7q9VSG0U CukYWNhSpURhjXJLsyVqt0cgAUKgp+uFjzDFxKGhSi1LYXPwjEYeqdNzva8FF473pn+Y ulxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdxaa302; 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 h14-v6si5762713plk.535.2018.04.19.23.50.16; Thu, 19 Apr 2018 23:50:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdxaa302; 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 S1753529AbeDTGtM (ORCPT + 99 others); Fri, 20 Apr 2018 02:49:12 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:52647 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751254AbeDTGtL (ORCPT ); Fri, 20 Apr 2018 02:49:11 -0400 Received: by mail-it0-f68.google.com with SMTP id f6-v6so1367438ita.2 for ; Thu, 19 Apr 2018 23:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sRsAgSkIL5Pob15zO+n0pBQuAbp+gh8581UCk2ARRfQ=; b=bdxaa302lFkMRZ0bb5f1+akkL0nvZg4gXmn3fqv+vbib58AFHq/oJuRRvRjw+73pZF uz4XbtN3BxX/h2gwD1RU9rdZxY13lwyggqgK1XQ/zQGQv82J8Nipi3x5qXye80Zxxqqz 34l6qBfdWc7oxemwoWQ9+6y5oFJmObq4W7eWdIIgKKAFXWwpxkO4mtqleVQu6aACVtJJ u9+YM3vuBHb+D9BpmRDN+n7PtH12AvlBuwNVPNm1+lDw2hhM9L/E20HtN3IzWiMCXlIp gy265PFBX1B1b6ipQF56cNbGJB4biTso/7V2ShcsHQSG3DorCPjBSyKsv1Hiad4bAR7m 6XQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sRsAgSkIL5Pob15zO+n0pBQuAbp+gh8581UCk2ARRfQ=; b=W/8Q71c/rFNCzgDhtSFycqeIxZXzElQQ7bMxaEtsIVrG5XzOnqcEAPpcKewBjFxl/X jORX2oGZU87i87C33f5agyOeYV/ICrOXY/x8T1sYzoyUKlUyA4WpFOe5CnfOFkkUDu35 HZjVMXIYA60sIi+5vLthLhaOqKgXIAc+EBkVLnUhl27eQ7RGGe49DCNPmoy2dNtKvDzU KVEqpsC+Eiilam7Jc17Q6HV4cg/fTgj6XzI75Pmb2UpDMMFN0yxj5HJgHhsLX6RCXa50 /DsQ7b6kOxU+/fUZT38iXEu5ZiR7zNnyXEpGLh2hxMo+/LOSV2eLDhGMYHkaZWvlYQo3 Kffw== X-Gm-Message-State: ALQs6tB7352Q/HHWZS7C5x7zL7h0qx+T8LTh/2tPhlTuRJAj5NyGKrIl zGvJ3xtvcksOt+e8paqk0Bj+q3q0LjNHvjeu/6iKWg== X-Received: by 2002:a24:ac5d:: with SMTP id m29-v6mr1736855iti.111.1524206950711; Thu, 19 Apr 2018 23:49:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.157.15 with HTTP; Thu, 19 Apr 2018 23:49:10 -0700 (PDT) In-Reply-To: <20180420054457.GA26393@jagdpanzerIV> References: <20180301163331.987775783@linutronix.de> <20180313063630.zxebyb7gczeiovyf@gmail.com> <20180420054457.GA26393@jagdpanzerIV> From: David Herrmann Date: Fri, 20 Apr 2018 08:49:10 +0200 Message-ID: Subject: Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME To: Sergey Senozhatsky Cc: John Stultz , Ingo Molnar , Linus Torvalds , Thomas Gleixner , LKML , Peter Zijlstra , Steven Rostedt , Petr Mladek , Mark Salyzyn , Prarit Bhargava , Sergey Senozhatsky , Dmitry Torokhov , Kevin Easton , Michael Kerrisk , Jonathan Corbet Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Fri, Apr 20, 2018 at 7:44 AM, Sergey Senozhatsky wrote: > On (04/20/18 06:37), David Herrmann wrote: >> >> I get lots of timer-errors on Arch-Linux booting current master, after >> a suspend/resume cycle. Just a selection of errors I see on resume: > > Hello David, > Any chance you can revert the patches in question and test? I'm running > ARCH (4.17.0-rc1-dbg-00042-gaa03ddd9c434) and suspend/resume cycle does > not trigger any errors. Except for this one > > kernel: do_IRQ: 0.55 No irq handler for vector I can easily reproduce it by sleeping for >5min, so the systemd watchdog timers are triggered. The patches don't revert cleanly, so I didn't look into booting without them, yet. I will try just linking the monotonic clock to the monotonic_active clock later. Also, doesn't this hunk in 72199320d49d need a 'break;': diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index b258bee13b02..6259dbc0191a 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c @@ -73,6 +73,8 @@ int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) case CLOCK_BOOTTIME: get_monotonic_boottime64(tp); break; + case CLOCK_MONOTONIC_ACTIVE: + ktime_get_active_ts64(tp); default: return -EINVAL; }