Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbcJDRtJ (ORCPT ); Tue, 4 Oct 2016 13:49:09 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35048 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbcJDRtI (ORCPT ); Tue, 4 Oct 2016 13:49:08 -0400 Date: Tue, 4 Oct 2016 10:49:04 -0700 From: Brian Norris To: Marc Zyngier Cc: Daniel Lezcano , Thomas Gleixner , Mark Rutland , Stephen Boyd , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, wxt@rock-chips.com, dianders@chromium.org Subject: Re: [PATCH] clocksource: arm_arch_timer: Don't assume clock runs in suspend Message-ID: <20161004174903.GA3098@localhost> References: <20160916054917.16930-1-briannorris@chromium.org> <57DBA81F.2060404@arm.com> <20160919231441.GA60928@google.com> <57E0E97B.5000106@arm.com> <20160928012309.GA29518@localhost> <20160929170847.1227a312@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160929170847.1227a312@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1608 Lines: 41 Hi Marc, On Thu, Sep 29, 2016 at 05:08:47PM +0100, Marc Zyngier wrote: > On Tue, 27 Sep 2016 18:23:11 -0700 > Brian Norris wrote: > > On Tue, Sep 20, 2016 at 08:47:07AM +0100, Marc Zyngier wrote: > > > > rk3288 (ARMv7 system widely used for our Chromebooks) has the same > > issue, except the kernel we're using for production (based on v3.14) > > doesn't have the following commit, which stopped utilizing the RTC: > > > > commit 0fa88cb4b82b5cf7429bc1cef9db006ca035754e > > Author: Xunlei Pang > > Date: Wed Apr 1 20:34:38 2015 -0700 > > > > time, drivers/rtc: Don't bother with rtc_resume() for the nonstop clocksource > > > > And any mainline testing on rk3288 doesn't see the problem, because > > mainline doesn't support its lowest-power sleep modes well enough (see > > ROCKCHIP_ARM_OFF_LOGIC_DEEP in arch/arm/mach-rockchip/pm.c). > > Arghh... So even my favourite Chromebook (from which I'm typing this > email) is affected? Not very nice... Yep. But if you're running mainline, you just get to have high S3 power consumption instead! > > > As for the 64bit kernel, it would be interesting to verify that on > resume, the VDSO does return the right (corrected) value, and not > something stale. It would be interesting, except all my current user spaces are built for 32-bit, so it's not too easy for me to test. Perhaps I could pull in this [1]. (On the bright side, this means that VDSO can't possibly be breaking on my systems!) Brian [1] http://www.spinics.net/lists/arm-kernel/msg530185.html