Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2745281ybh; Mon, 5 Aug 2019 06:12:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdmXSrhbTVgqIwmzy8kdh1MY2XuOLWUV/qb1R4iqZWd0Hu9Ol3LtgWFW9sfIJLIbHoLfEK X-Received: by 2002:a17:90a:3086:: with SMTP id h6mr18641897pjb.14.1565010729240; Mon, 05 Aug 2019 06:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010729; cv=none; d=google.com; s=arc-20160816; b=Hx2wbN/dkR5eZLnyxyaahBwIPZcTS0wgJsdp+IwRfvkVlIV9ZXsK+twP27qDrij85Z fOePqfhoeNKkJZgdvDTWZpEV0zy727FibtpHJycIXlV6s1zWmr8hnA2Yb4Anxdw+dgzJ 79D8VlH2cl9sK2nZd/7n3dx3v0PKuEwdCmKcKv6X+//CJY2H92/E45Jie3uqon1JrUBa /UHgu5d+5X37wxtESIo6r/je6WH+6bdUBsUfO9KQ69pCk0MRPBVC0+gEcN7q7y7JhZVh K2E/tlwoi1B/PSN/6j2CRvLi7UFkxFc/nTQ/crEZIXoutrmuoLtMJV5iVlTuV+6F2gmI /6Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M1zT/lsN5Jf7qb0+Omdrhne9CDXXoQjXEIXOWkdZlQk=; b=K6SixJX2xbgLyglWeqFrEWx43erBLxn4syC65QiUGvuClqLo2cTRNEMcc7lpC/i2GL ZKZff6GotX8nCcA5EIyfV8nmN2mRSFtfsSYmA5W1k+b0YzNMBBBKny90ml8qUGNHHPFI tLvV1UvBIoey0DTDuRqJDVJIZDLZw1vnN4yTXhF9r2Cp4gmjXQS8f5JU8rBs2hekz/OT fjdOi7B/bq136fqBnPf+5GJJsmpXN2+dR6owbO8GWUKYJhF8yrWJWbxLAEPJRWQe5RwN KNfkm3F0Y6RrDoKmtLb/Sb7Jcks65vYt3Lx1dRy5FkCEprDzMmYD1wmE5FBTEF51K0Wu HSsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y7TyR0lQ; 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 l1si2338066pgn.367.2019.08.05.06.11.53; Mon, 05 Aug 2019 06:12: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; dkim=pass header.i=@kernel.org header.s=default header.b=y7TyR0lQ; 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 S1730168AbfHENJW (ORCPT + 99 others); Mon, 5 Aug 2019 09:09:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730167AbfHENJT (ORCPT ); Mon, 5 Aug 2019 09:09:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 859C32067D; Mon, 5 Aug 2019 13:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010559; bh=AdIBBppb60+JFHEX9nqiH89j8foZ7m3Kvw4Kbc3JHEw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y7TyR0lQWdke4UzzyNU+2I7wkZGjZIJRFMAREeaNMTEhSFaHWvGHMbUU0SleAon9e j10Aa8tszXGSYeWP3z/99GJZm0B9qlMi8IGK4UMeYS94/q7FABPvhwoEmA81+oSNst JFWOC2meAks4LB+h7jCT5zNOrquk/Yhkk0TaYmxI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Anderson , Heiko Stuebner , Sasha Levin Subject: [PATCH 4.19 04/74] ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend Date: Mon, 5 Aug 2019 15:02:17 +0200 Message-Id: <20190805124936.173376284@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124935.819068648@linuxfoundation.org> References: <20190805124935.819068648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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. Signed-off-by: Douglas Anderson Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm/boot/dts/rk3288.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index c706adf4aed2f..440d6783faca5 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -227,6 +227,7 @@ , ; clock-frequency = <24000000>; + arm,no-tick-in-suspend; }; timer: timer@ff810000 { -- 2.20.1