Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp315975ybl; Mon, 12 Aug 2019 17:05:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqpT5yabLY08ytZOL8tEA40XgzZEYofWqnjJgZE5lEQqrXQp/67ocb3h5Ca8krQocWGkpv X-Received: by 2002:a62:d0:: with SMTP id 199mr19032846pfa.157.1565654700432; Mon, 12 Aug 2019 17:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565654700; cv=none; d=google.com; s=arc-20160816; b=bT6ABNBigd8e0ANzwxU/+pt7OWcsn8xVBN+gdfDe5XdMbvijGcQv0hJtw5+VsG5l3z HTR6cYfi9IyPKC+yOIhWHfvuphks3vBiisyDmvR1i+XlQxzc8kOYnSsMioE3PVVMpcUk 8qz2FxjpeVr9xptkH1s4s/mx0PEJJ7KZbO4NKuWBh+XsTbNARcjmlwoJrSRncxiMs/Ht ij73brfRbFEMXpo0TFy1aTWBJ1T/xkoMjrQcfhoD8KdCBbpMzV+9/jK2XOQo5DpZJSVx D6eEec/BzvV6PNhz8Z0atAlA4UowUc08R+qSmD2Jyc4ecreRQfJkP96rCLCeiyEtRKCY MrQw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Hzo1eKAep9i0qhpDX70sNk2Pbj0GpjM4DfNd2KKwDRI=; b=ROl3Ws2/PzbfGCtOAc3IAdqlyrKkkbvBupVwk2l1K8Li/ydhhWjYXnkjfu9Hvwt5RT Jha6V6Yk1NVgaGN9ohrENF0PVWSTq6LxHzUqNdG+3423OmEoMUL9uNfB1SvDVTjH1PE2 i4xYxhYY7BKKXVFWNAPowRv5B3CXgYecxSgLDT2E+8J2EH58GGFzNgkabKdAZDvMp95y 7C4Uw5Sfqz8Nf2Bq/k0ySbztBj0EU7tjynTacoKIrXE9aPFrg0UWeJ4jr+q/e7NHNyAA Bwxck5EnX+QC9kGWi6ySg9L1xjrAMGs9lnncXFnp8PxsyA5Yk6gfvqpl5ZsSV5kWrthD s11Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j45DEIZL; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ds20si666575pjb.9.2019.08.12.17.04.43; Mon, 12 Aug 2019 17:05:00 -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=@chromium.org header.s=google header.b=j45DEIZL; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfHMAEK (ORCPT + 99 others); Mon, 12 Aug 2019 20:04:10 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42603 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbfHMAEJ (ORCPT ); Mon, 12 Aug 2019 20:04:09 -0400 Received: by mail-ot1-f67.google.com with SMTP id j7so21080194ota.9 for ; Mon, 12 Aug 2019 17:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hzo1eKAep9i0qhpDX70sNk2Pbj0GpjM4DfNd2KKwDRI=; b=j45DEIZLaaEgSfO1vni8mgZGeUXMdlD5ryIBWBskCuBYx967JbbQX15YUx5aqqBDD/ uyhJ8ngOhyD8KvmZhhQPXftKLeBo4n9gaZICSkgymDrP/NleClGKrg1NWFhkCEiDBTXE beDhJvg0sreyQ5624oebkio+3GkaOQbJ4Xn0w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hzo1eKAep9i0qhpDX70sNk2Pbj0GpjM4DfNd2KKwDRI=; b=XhtGTF0MzGN+smKVqD4wNFm6nv1Ir2ogtnpNgQuCeMLhLukmODnaJZlzOIWMF0aq5M 8hC5FSjevxrCVX3+bHzwz0/9LxKVAz3Tp/Ag4662g6X2z8xGsm5uDrVdzvo+Y2QUB0Jm HXazHPkR3tVvZsgfIYVw8cXCsjAqN+cZXfW1yejGvvNmb/Gj9DCCH5i+WE+F5PrtNI3B EbjG0Uq4OAbxH7WsmRVGWa1HKclTXhJl+A0Svt2bv1T8av/I4LVbIEfWzLBH+tiPrtSA nXs4jbfn8X7tyoq7Z9RzOJ1P2xt9hhS4AtXXgmxQCLZ7ylpjyDAhbUiuYrk0b3L2jJBK aAWg== X-Gm-Message-State: APjAAAWAlmXEYVA+BYfqsD3Z/+DZFVvZANDFE+1SpLvJnJr9emnTqsgB aNy+bvlOagcjv411jyhBqkb075bUV6c= X-Received: by 2002:a05:6830:120e:: with SMTP id r14mr21449450otp.4.1565654648477; Mon, 12 Aug 2019 17:04:08 -0700 (PDT) Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com. [209.85.210.49]) by smtp.gmail.com with ESMTPSA id q5sm35538220oih.2.2019.08.12.17.04.07 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 12 Aug 2019 17:04:08 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id e12so21569178otp.10 for ; Mon, 12 Aug 2019 17:04:07 -0700 (PDT) X-Received: by 2002:a6b:e013:: with SMTP id z19mr10853986iog.141.1565654647521; Mon, 12 Aug 2019 17:04:07 -0700 (PDT) MIME-Version: 1.0 References: <20190805124935.819068648@linuxfoundation.org> <20190805124936.173376284@linuxfoundation.org> <20190805144723.GC24265@amd> In-Reply-To: <20190805144723.GC24265@amd> From: Doug Anderson Date: Mon, 12 Aug 2019 17:04:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4.19 04/74] ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend To: Pavel Machek Cc: Greg Kroah-Hartman , LKML , "# 4.0+" , Heiko Stuebner , Sasha Levin 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 Mon, Aug 5, 2019 at 7:47 AM Pavel Machek wrote: > > On Mon 2019-08-05 15:02:17, Greg Kroah-Hartman wrote: > > [ Upstream commit 8ef1ba39a9fa53d2205e633bc9b21840a275908e ] > > > > 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. > > > > To test this, I ran this on a Chrome OS filesystem: > > before=$(date); \ > > suspend_stress_test -c1 --suspend_min=30 --suspend_max=31; \ > > echo ${before}; date > > > > ...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. > > > > 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? People do merge stable kernels into local trees which have extra patches (which might enable deep sleep). Chrome OS is an example of this. If the patch does no harm then merging it seems nice. That being said: we already have this in the Chrome OS tree, so unless someone else is also mering stable into their tree and trying to support rk3288 with deep sleep, this patch is unlikely to matter. ...so if everyone doesn't want it then it won't bother me. -Doug