Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1766285imm; Thu, 9 Aug 2018 01:23:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyqJQoF1MvGsamslyoSucqxV1MHERFP9DTdSxWxGGCjqqBwCAdOp9ARjZwt2oMwyPHy/EF5 X-Received: by 2002:a17:902:b58b:: with SMTP id a11-v6mr1171819pls.34.1533803022851; Thu, 09 Aug 2018 01:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533803022; cv=none; d=google.com; s=arc-20160816; b=BtzTk3zTtXkLRtNJ9xDL8q/Gh9+6l/nt2UPLDzK0TM9c50AbvzxiI9ijzs8j3fOp+g li0QQ5dEgT9wwMnsiypLs+slORawqtet48UI8xV3XeKl0wAICUP8QNNllDA9K7fpXTqj 1xh8+bMF89mp0FgTaDmcYQSffY2fldNvYYQ2M4ppRO84YFW4TyHsZQoBPDyBSO5XUlzb r7RZlkavExgjTpyqlV+UxwE2GITpMxvje6bCoNsOhElmskmkeGK3r1vnjKcO7UBO9/fx +4TVOkgbLVP6LNaCS1deNRb4XS45/THlRWMWeF1NzjKLmDw5Y5DvfFG5Fjl/jOGGmqTH M+uA== 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:arc-authentication-results; bh=6moqEkAqJ9yQSb1CGGiua1TbylBIg4wgvxgQl1iMTAY=; b=Nb6LKTocVVQOFcnY+1HIAZpDfhps6fVUw6/Si+esUBwkspyetyYfcZ3Mverza/ooYG 64ns5rh7cbvH4cxlrqwc1SJ3x22sF/AV/4Om2TLpAVoLhwnWHlmkdBeMfa3cfveygMG3 kokeoDucGfPN3qC4r7YLSBLktU4kxjrvQg8scv1yCpwnHVt1diMPjrQs+Pcf9vJLNJrX Ocyr2NvZjvlEeqrVEKmHxGNZ1e5/+r7cxWptgCFfIj80mbJ4txKmuah8Dr1JB1bTQ7uF gAtwXiBwPOd89aoYXe5CgV6WhLVd+BTb6jvICReMMWAHN3RClxPXrcQQY4qJMZfyNw/z 7BPw== 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 f15-v6si4891747plr.470.2018.08.09.01.23.28; Thu, 09 Aug 2018 01:23:42 -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 S1730007AbeHIKqP (ORCPT + 99 others); Thu, 9 Aug 2018 06:46:15 -0400 Received: from muru.com ([72.249.23.125]:53150 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729172AbeHIKqP (ORCPT ); Thu, 9 Aug 2018 06:46:15 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E525B80B7; Thu, 9 Aug 2018 08:26:04 +0000 (UTC) Date: Thu, 9 Aug 2018 01:22:29 -0700 From: Tony Lindgren To: Pavel Machek Cc: Michael Nazzareno Trimarchi , kernel list , linux-arm-kernel , Linux OMAP Mailing List , Sebastian Reichel , nekit1000@gmail.com, mpartap@gmx.net, Merlijn Wajer Subject: Re: Droid 4: suspend to RAM? Message-ID: <20180809082229.GU99251@atomide.com> References: <20180725200205.GA29594@amd> <20180725212853.GA1965@amd> <20180727113214.GA32069@amd> <20180808090512.GQ99251@atomide.com> <20180808213204.GD15831@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180808213204.GD15831@amd> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pavel Machek [180808 21:35]: > On Wed 2018-08-08 02:05:12, Tony Lindgren wrote: > > Then for deeper idle modes, you need to also idle UARTs, and unbind or > > unload USB related modules. You should get to something like 160mW > > power consumption with mdm6600 enabled and SoC suspended that way. > > That's slightly interesting. echo mem > /sys/power/state should do all > the work, right? Disable UARTs etc. Plus, is 160mW still a bit high? Yes suspend will do it, you still need to configure wake-up events though at least for the UARTs. I think I got enabled mdm6600 to low-power state after connecting over UART ts27010 and then suspending OHCI: ohci=$(find /sys/bus/platform/devices -name \*.ohci) devices=$(find ${ohci}/ -type d -name control) for device in ${devices}; do echo -n "auto" > ${device}/level echo -n "control" > ${device}/level done echo "usb-phy@1" > /sys/bus/platform/drivers/phy-mapphone-mdm6600/unbind For power consumption, 160mW is high yeah. We currently cannot hit core retention on omap4 until some GPIO issues are fixed. I've been trying to think for a good fix for that, but need to debug it more when I get a chance. From few months ago, I recall I got droid4 to run at around 65mW idle with WLAN connected and modem off with my test hacks. With modem on and USB suspended I think I got to around 100mW. Then I recall measuring droid4 with stock android in flight mode measuring at around 15 - 30mW. But that requires off mode to work on omap4, maybe we'll get to that too at some point after core retention. Regards, Tony