Received: by 10.192.165.148 with SMTP id m20csp675416imm; Wed, 25 Apr 2018 06:04:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dwmOuhUEqQJKKV0tglMDwrtKYZkR2JVbfGZ12l3IesEhKzQAnBcG2P5K88ymyt52xrgAX X-Received: by 10.101.71.132 with SMTP id e4mr20523879pgs.196.1524661483859; Wed, 25 Apr 2018 06:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524661483; cv=none; d=google.com; s=arc-20160816; b=jB54CYPVGzUUKLlsyEgTPfaX+kmPPS5bNPaaPOtzI5WRLu9f2g9LouWk+dzG7x0vr5 HViVreT/tP1Q6CYIzw8meSRHS26cjjmXZ29oB1339J49jCK3Wr4ydgzwn+mdvdh8Oo4a c2MfVMX7FTEzFLRaXp3s+Vgd8jVyOuy1u/VdnVtNQxIuE5kQQbTghQ5+pZnHCKxl2arM mkDdorXh8ml5iunwd9fpgMf6Cj3/TlI42uldz3usl0utde3kZTGN+k5jkMTS5uJi/mit LdmU2ycFyvMjRe6UlvwdsQ2bBUWHpqLR/EqiWO49cmDe+RVuEiun+yJVWAwMZyB+0I1P cCFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=NPmRbhmR5B7JxHz3YeETFZ6UtxBIE/x/wMiQH8d2Bng=; b=Dqv3jyN+KA6vNjy/cE1fy65LFIqcYvSEfZDt3qvQMwP+h8Q8/SaUUlesswg3RR/LZm LTsfi6iL+l7WRf8QY3SsQOmHo6HGUxDOJlPpaPvBbkLsl5sgxozK4ETpZw4sPwCkkIrz q47s7QMLvp8iTWp+mjmX82tFZDNo2lVNYR+J3w6nOCy6qOKtxy/XL2ofH2QCicg9k0Cu hBoIzViASE+G/fNz1qeUhCGKYWJwRIKY8e+sEwMXb4TG0NNDVnpJsR3uqyKpwhNM4Igw 2pxCLVQuMfhdgjM1J5feLW/aROOho52rgq96s3GsXqF0HGgFFBguFDTPfq8NiS3lFY7l AvbQ== 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 y40-v6si16155802pla.470.2018.04.25.06.04.22; Wed, 25 Apr 2018 06:04:43 -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 S1753960AbeDYNDW (ORCPT + 99 others); Wed, 25 Apr 2018 09:03:22 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:40599 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbeDYNDT (ORCPT ); Wed, 25 Apr 2018 09:03:19 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fBK4o-00080K-9d; Wed, 25 Apr 2018 15:03:14 +0200 Date: Wed, 25 Apr 2018 15:03:13 +0200 (CEST) From: Thomas Gleixner To: "Rafael J. Wysocki" cc: John Stultz , Genki Sky , David Herrmann , lkml , Sergey Senozhatsky , Linus Torvalds , Peter Zijlstra , Pavel Machek , linux-pm@vger.kernel.org Subject: Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME In-Reply-To: <1858767.c2KKoU8fl2@aspire.rjw.lan> Message-ID: References: <1996930.B4PaKZ6i1F@aspire.rjw.lan> <1858767.c2KKoU8fl2@aspire.rjw.lan> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Wed, 25 Apr 2018, Rafael J. Wysocki wrote: > On Wednesday, April 25, 2018 10:52:18 AM CEST Rafael J. Wysocki wrote: > > On Tuesday, April 24, 2018 10:09:28 AM CEST Thomas Gleixner wrote: > > > On Mon, 23 Apr 2018, John Stultz wrote: > > > > > > > On Mon, Apr 23, 2018 at 7:45 PM, Genki Sky wrote: > > > > > Quoting Genki Sky (2018/04/23 20:40:36 -0400) > > > > >> I came across this thread for same reason as [0]: Daemons getting > > > > >> killed by systemd on resume (after >WatchdogSec seconds of > > > > >> suspending). I'm using master branch of systemd and the kernel. As > > > > >> mentioned, systemd uses CLOCK_MONOTONIC, originally expecting it to > > > > >> not include suspend time. > > > > >> > > > > >> Correct me if I'm mistaken, but I don't see the ambiguity of whether > > > > >> this patch series breaks systemd. If it's implemented correctly, you'd > > > > >> hope it *would* break it! > > > > > > > > > > This sounded a little weak on re-reading, sorry. So, I just confirmed > > > > > that after booting a "git revert -m 1 680014d6d1da", the issue no > > > > > longer appears. (I.e., a suspend for >WatchDog sec doesn't result in > > > > > any daemon getting killed). > > > > > > > > > > Let me know if I can help in any way. > > > > > > > > Yea, this is the sort of thing I was worried about. > > > > > > > > Thomas: I think reverting this change is needed. > > > > > > Sigh. I hoped that something like this would be catched before I sent the > > > pull request by those who were actually interested in this change... > > > > The "git revert -m 1 680014d6d1da" makes resume issues on my Aspire S5 > > go away (cf. https://marc.info/?l=linux-kernel&m=152460804018920&w=2). > > > > I'll try with just the "monotonic" vs "boottime" clock changes reverted. > > FWICS (so far) system resume still works here with the commits between > d6ed449afdb3 (timekeeping: Make the MONOTONIC clock behave like the BOOTTIME > clock) and 127bfa5f4342 (hrtimer: Unify MONOTONIC and BOOTTIME clock behavior) > inclusive reverted on top of 4.17-rc2. [I probably should revert commit > 92af4dcb4e1c (tracing: Unify the "boot" and "mono" tracing clocks) too, but > it doesn't revert cleanly and it doesn't apprear to affect things here too.] Right, it does not matter. The real interesting one is d6ed449afdb3. Thanks, tglx