Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4124342ima; Mon, 4 Feb 2019 10:36:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IbqFFPPWWqgv89nZuF7CkGl96fK6XSLtVladWGX3DpN3BxWKR7zfvHLQCMv8shzJFZX2nDD X-Received: by 2002:a17:902:8d95:: with SMTP id v21mr806260plo.162.1549305368078; Mon, 04 Feb 2019 10:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549305368; cv=none; d=google.com; s=arc-20160816; b=KZu0IQaktUNaG/04pcK14MvpfGol0xGXuKTvL2enh0PctqJ2uwOzyDu84G8Atxj3ZE 6xuGY4ceZcbJ0Nc3K393qJfNiffY5FSpZGfd2ETq5W36smfnDjL+daqNEVlFYBsbChBu /64X+mqOet3/0teNofEOgzKZmjGgRQs4DHZkUPqmwdTz/3LUpZtt2ZacNVLRf1ykCyzJ X+05b+MAynqp/9bokt/w9MO2dayf/k/aYlMzwbmW5XtOtBTaHlLxQekhbZ4aJyAHJ3dJ kxZHBTJHDMFsqAClqh8vZU0BmHt02OT7Ze/rhweujt7cvU5VbegTVnDMdaWgH08M+wqR rGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=NGO7Ic5XZkItH3LF0+bIv+Wx3vHk3m8cWCn1TQooGOg=; b=XEPnS2sFNOvrh/tFfC8IpXnfkTSOBHS+mrjZJFCQFXoswt/m1iTnVUYk+etYZ+RsMm DEh4/oYXuNPi9sbqC78MRXAo8F+zdbZKsKUrxFSuDHs93qQ7TKip3E2WA56uGBY+EUZM eHbhLkkUy/0g6XA6SzLL+GODTLCY8XNnfCq4ixlgb8HK3VjeSB7keuBnLQSdXBMuuEfC LDGxa01SlcQJ0CaxzZFxrOADltpD0aPrUTve/dmgFkX0eiYNrkaEhYmmWEYlxhN3lWMI FDIS8i8Pt6YvIuMkOBWNGFI2U/z8d6EDGiEDaXlhXRavHhbPEU4idDDwGopo+gbYKzBn aOvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Czei7OQV; 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 87si699948pfs.7.2019.02.04.10.35.51; Mon, 04 Feb 2019 10:36:08 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20180802 header.b=Czei7OQV; 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 S1729206AbfBDSfq (ORCPT + 99 others); Mon, 4 Feb 2019 13:35:46 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:54658 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfBDSfq (ORCPT ); Mon, 4 Feb 2019 13:35:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NGO7Ic5XZkItH3LF0+bIv+Wx3vHk3m8cWCn1TQooGOg=; b=Czei7OQVfTM4QpPuefeIDbCL4 W/sEL8v3ap8UPFvwMWHiQ33x1SBJzx/rS6UvNBYNmoJs0u6Y4k+FzqZv7J/dyspLLW5LYvgCj1zRd Kn6YlXupfo3EdWKVo0aZJYS6RNvI0sGMnDC8iZlE58ELNLbk1pC4uzu0922hY686GizCM=; Received: from p200300ccfbce42007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:fbce:4200:7ee9:d3ff:fe1f:a246] helo=eeepc.fritz.box) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gqj3Y-0004E9-II; Mon, 04 Feb 2019 19:33:20 +0100 Received: from [::1] (helo=localhost) by localhost with esmtp (Exim 4.89) (envelope-from ) id 1gqj3W-0007Ts-VX; Mon, 04 Feb 2019 19:33:19 +0100 Date: Mon, 4 Feb 2019 19:33:11 +0100 From: Andreas Kemnade To: Tony Lindgren Cc: linux@armlinux.org.uk, khilman@kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Subject: Re: [PATCH] omap3: give off mode enable a more prominent place Message-ID: <20190204193311.102a60e6@kemnade.info> In-Reply-To: <20190204155604.GH5720@atomide.com> References: <20190202055827.12956-1-andreas@kemnade.info> <20190204155604.GH5720@atomide.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/cZTCPF4_0JCD8_K5dVyf4=+"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/cZTCPF4_0JCD8_K5dVyf4=+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 4 Feb 2019 07:56:04 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190202 06:01]: > > Enabling off mode was only reachable deeply hidden > > in the debugfs. As powersaving is an important feature, > > move the option out of its shady place. =20 >=20 > How about let's enable always if we have the twl4030 > configured to allow it? You can just check if the dts has > "ti,twl4030-power-idle" or "ti,twl4030-power-idle-osc-off" > properties set. >=20 > In order to enable deeper idle states, the user space still > needs to idle the UARTs and possibly other hardware blocking > idle. So we should be safe there. >=20 Let us not mix up runtime pm and system pm. The uarts need to be idled for runtime suspend, but they are off/ret for system suspend without userspace intervention, so allowing off mode will have an influence even without uart runtime suspend, and also probably for other powerdomains (non-core/per). So we still need to be sure to handle at least some erratas and context save/restore correctly. Your Idea seems to be in pseudocode if (powersaving_wanted) enable_off_mode() I had something in mind like if (system_is_trusted_to_handle_offmode() enable_off_mode() Regards, Andreas --Sig_/cZTCPF4_0JCD8_K5dVyf4=+ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEPIWxmAFyOaBcwCpFl4jFM1s/ye8FAlxYhWcACgkQl4jFM1s/ ye+kpxAAtyNv7KqReXE73tqndnZZKlspBriMnP2PreLqcpI8myQPpBCb+aCtP+AS q1HAXiiMZVF41tdQ8cDXpEQPi537pGz7bmLxh+QLdAMrh6gVweUtBPX3dLIdn8+B lC+3awFj4B9d4jNCveHh8OeAb7mDYZN9XZDzSBaJztcXGNsY9P4sr57Ird4NzoFc A2zGUSofbgVKN2JPZT7FaSnv8sgd4khFwAV5FbIVK1R5gFWyj8ZCsnpdVSHYQIEd yUM9qTtYshGLs/0W19h6SFxlLk+2qCiLKdslXUytkpdcHZ/0zL6rJtHSIhlua+Gc UH6DoPhRO5Qo9Y63fy60lyRFm5cMeAosghDfzhvEBt58doLJVPwi06coRY/Tdmxn gK8/YSMTt+S1Sj3FvDODxsOACg1MxzdBwcG/sGQDBzV/8iyiiyA28WWcHFcNiQJ7 wzPPk8FMHRP2oipVIj7gQVz2Q+HvD+stuJhS8SPIiNKmNeZSdF0qh1s7kCrOfK+6 RQUNl2goH2+8ldkWhCdcswfGQyhpr00cdhxoxrKSaat/roLpbyTalGx/cm9lgoPH UkXzWKVTaqdjrN7/VxWjzamgjy4VMnq99BuF91UaOz0a63KPO6ob6cW+jVdtJ/I9 m/TeKon7/F+zxpuDxk5QWyZlA7YTFhzhCCMGXybBl9nX7m+bovA= =sAHi -----END PGP SIGNATURE----- --Sig_/cZTCPF4_0JCD8_K5dVyf4=+--