Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2848429ybh; Mon, 5 Aug 2019 07:49:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsntsSdexclyGz0e5S2C+Z7U7bgYeLpLPlLcUVQfv8wgyCzlE9jepuXwLCv8vtynfD1qSb X-Received: by 2002:a17:902:b944:: with SMTP id h4mr67945336pls.179.1565016549737; Mon, 05 Aug 2019 07:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565016549; cv=none; d=google.com; s=arc-20160816; b=wikkXEVxzkmqDsLnCEfEIEqS1SUGc+Yv/A/6G5HhufxPW7hc8/aSv10hZBeDpeYDJw /bXdXPytpmccJcnZnQ3U/5XsxbKHXEMcDQWQXIDXjGnM0xwGS1FD81SeR5t8bfbjpnOi 6qasyHdooIvOULSFqNvaLTRoy+Qx2Y/TmuMeCpJErenK+P5OGrDBTmau6clKIbgwNWXD Qk57fN/Kyh11MFbi4Tr2118GG4dA2nRJqwJRS+m/9o+UKnK/tMMDYRhwswvjqL9OVoHF b2R/+P5xYcgJ2fLky+LHzTaNa5on3JJnBaTYSDlle10jMalGYg6ocDWZnqeZ9BQwCSUw ll+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z1w0clcKaTNPgFpFrxb5Rc4P9JC7xzLypxvR7kfRDFs=; b=XpApRT8zH67EWrmNbfI8sy+p1wsx6kuDmvvYPL+Ebp8ok3zUYNxGyEoxVbvMKfxPXY hCGKHmyN4/Qy8jqt7rIDugbL67S0Y+ZKSTgqZuwG4lbZOhfUdaEsaXDxkbRPm+4FK7y5 1T9xdU1m0iEB9bNt/VUYH0i0e4eaiUqE/OsW3mKgGEC4mIm7lurxHIGtro+TtxFao+xC BjzOIF69GpJ/Y2S9VV8kiaAvF7oa+Dbm8O/trz/PPp9nGTQhPlbg16D9rmU/YUEFK918 7JT6jIqbysCWlyhIcFMYLXYnZmHW3dSBfvyYBuZ+qzRMJWtUhCvx4Indoy3seRJTNkXu nPHw== 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 r10si42934210pgv.530.2019.08.05.07.48.53; Mon, 05 Aug 2019 07:49:09 -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 S1729003AbfHEOr1 (ORCPT + 99 others); Mon, 5 Aug 2019 10:47:27 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57979 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfHEOr0 (ORCPT ); Mon, 5 Aug 2019 10:47:26 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3C5AE80311; Mon, 5 Aug 2019 16:47:12 +0200 (CEST) Date: Mon, 5 Aug 2019 16:47:24 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Douglas Anderson , Heiko Stuebner , Sasha Levin Subject: Re: [PATCH 4.19 04/74] ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend Message-ID: <20190805144723.GC24265@amd> References: <20190805124935.819068648@linuxfoundation.org> <20190805124936.173376284@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8X7/QrJGcKSMr1RN" Content-Disposition: inline In-Reply-To: <20190805124936.173376284@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8X7/QrJGcKSMr1RN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-08-05 15:02:17, Greg Kroah-Hartman wrote: > [ Upstream commit 8ef1ba39a9fa53d2205e633bc9b21840a275908e ] >=20 > This is similar to commit e6186820a745 ("arm64: dts: rockchip: Arch > counter doesn't tick in system suspend"). Specifically on the rk3288 > it can be seen that the timer stops ticking in suspend if we end up > running through the "osc_disable" path in rk3288_slp_mode_set(). In > that path the 24 MHz clock will turn off and the timer stops. >=20 > To test this, I ran this on a Chrome OS filesystem: > before=3D$(date); \ > suspend_stress_test -c1 --suspend_min=3D30 --suspend_max=3D31; \ > echo ${before}; date >=20 > ...and I found that unless I plug in a device that requests USB wakeup > to be active that the two calls to "date" would show that fewer than > 30 seconds passed. >=20 > NOTE: deep suspend (where the 24 MHz clock gets disabled) isn't > supported yet on upstream Linux so this was tested on a downstream > kernel. I guess this does no harm, but deep sleep is unlikely to be suppored in the stable kernels, so ... is it good idea there? Thanks, Pavel > --- a/arch/arm/boot/dts/rk3288.dtsi > +++ b/arch/arm/boot/dts/rk3288.dtsi > @@ -227,6 +227,7 @@ > , > ; > clock-frequency =3D <24000000>; > + arm,no-tick-in-suspend; > }; > =20 > timer: timer@ff810000 { --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --8X7/QrJGcKSMr1RN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1IQXsACgkQMOfwapXb+vIQFQCcDqoHomorKYueQyyNsOqXSktm Q+QAn3UWCuZSg3hdCm/euN1HlYfzBlKT =AyXM -----END PGP SIGNATURE----- --8X7/QrJGcKSMr1RN--