Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6545825ybi; Mon, 8 Jul 2019 04:48:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUvymK3/xoqK0FK31DUnuiB97M7oHuQjwV8hG3talaUSBIeDGprCoDMVpt6rscZ8+0z0aF X-Received: by 2002:a63:d415:: with SMTP id a21mr22448016pgh.229.1562586537441; Mon, 08 Jul 2019 04:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562586537; cv=none; d=google.com; s=arc-20160816; b=sZVOxxhEY7MlDo0ZhslYXb+0XQrtqe5cUwBARkanUX6jmfsoRCT/3tq1/LoSj3LLkt li6r2+DhpBoEx6kdpDqBjV6cEO8LR2ZSvIxh8UMA9t0RnuRnqMzdNqDjXS7s+Ub50TOe GiWyqTr7C/9viFwZXwdIOcBNS1a/2UwGIm8bmaGlp4rBiGthOyzHC/RFKojFZykZSeSJ Xknmeap3DUg8fthJ+DQmYZIXk37WG03voPrOBO+O3Xirvkl7BlYqkb5760EkDovIxOkW Fs4MZtT1q48HTPosxM45Bkoce3GQaGF0kzR2pvhSwhjsA+mGqoafgbqMkKLZSL5jrF3I 8HZw== 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:dkim-signature; bh=HBSOpGeilh1d+k1ITUctDAa0jlGTfzm/XYHfd6NAVZs=; b=W2dF/7AnLgKbq0+YsQFEnCI3PF6KNPRbtNKe1B+yybfn1bAd4JS5xohpv1lxq45BSC Nwwa3hzoiCLVHwPHd4B7CQOVfoXQdmyx9yfC3hvVgVUpAmF26GLWPv1Z/Hbvr3MZV0xV cCCn9f1ATHhBt4J1DoaqjCVjT7sc/zMgm3M4D7f5clA2tr8CBakmzjVkSuZOp01D9HWr qrp4nBZT7qGmsfNnPgZDVnVMiGfhPeZgbYlmhRPxCjEHKfSy/2EbxlujzS27SlpHa0Kg DQfo2FMjpzdI59kbECZscarYpF2PWBGfD8cxygR0rbnufhPzwuoFyHc5OJqjtqFD3anv wBHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TvcxpHNW; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si17798869pla.348.2019.07.08.04.48.13; Mon, 08 Jul 2019 04:48:57 -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=@linaro.org header.s=google header.b=TvcxpHNW; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727513AbfGHIZP (ORCPT + 99 others); Mon, 8 Jul 2019 04:25:15 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40828 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfGHIZO (ORCPT ); Mon, 8 Jul 2019 04:25:14 -0400 Received: by mail-pl1-f193.google.com with SMTP id a93so7865848pla.7 for ; Mon, 08 Jul 2019 01:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HBSOpGeilh1d+k1ITUctDAa0jlGTfzm/XYHfd6NAVZs=; b=TvcxpHNWz4hgGUB+LNuHI5YWHzDVJt/1XgqQ6DFUhvMzKA3okKMpxbvr4ipDQOrT6v cwArEjpPjqqcYw8uYvas1+s7vRj7ogC++JHqyLHMMj42y9wJKuSrE99NAaIapSSpHd0Z bX3Qd8NBsMFZOfz4Dxqr3ghsVHfjX5JWFsctmRGbOuQQkxw+te0XbnZkUMzFGfHV+xDi X1W1bPjecr55Nnewqc2U778mZbu4vyBHm/2woeQ+8Lyvq6WLSKzDktV/ZgZTtD+d1W8R dCeTcHk0vXB/0ru0tum/y/vkPNnHtMUbAsKqibaCZaPqNAKKOV3l2wR1Y1vl+UFCpR2A LFJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HBSOpGeilh1d+k1ITUctDAa0jlGTfzm/XYHfd6NAVZs=; b=th31eM/SCyw6dEkMgPo/0d21GEQfx48c8Nr+BY7Y22Zws7e2cLcYJmYXCV5CM5EbjU OKUHPAFgvPbfo6KmjM3z16x7h/ClhCU4+cD1Irj87k6YJuB+izTHsICBRVuxUvDzQCQB Qr4vmy6gll4x+6lraySZ7wPySIbvAUsTO+hX+7+YtO5vkUbaUaep2sktdzo0Vvt63ASv xDZTP7rwxpwZI9NC0sPLzIcH7OrfZZq3RVf8A0nc41oH9DWpxPRyAVYcdjf9TmJij+CK TCQPe5Wbh/1nNnPbziBbZxq9+G9DcXluNjjIsGtKwPPmDjgslltyArI+FMIC4fl5BRNy mrKg== X-Gm-Message-State: APjAAAVxosV+meH+9cDfSpl+dsf0n4qcoevxFmyMd71xFXBEdGaCL5rw sQnwi9TUrVKgzETYoUprhjmSag== X-Received: by 2002:a17:902:8b82:: with SMTP id ay2mr21412249plb.164.1562574313802; Mon, 08 Jul 2019 01:25:13 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id k22sm22327205pfg.77.2019.07.08.01.25.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 01:25:12 -0700 (PDT) Date: Mon, 8 Jul 2019 13:55:11 +0530 From: Viresh Kumar To: Leonard Crestez Cc: Anson Huang , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Jacky Bai , Daniel Baluta , "l.stach@pengutronix.de" , Abel Vesa , "andrew.smirnov@gmail.com" , "ccaione@baylibre.com" , "angus@akkea.ca" , "agx@sigxcpu.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 2/2] arm64: dts: imx8mm: Assign highest opp as suspend opp Message-ID: <20190708082511.py7gnjbqyp7bnhqx@vireshk-i7> References: <20190704061403.8249-1-Anson.Huang@nxp.com> <20190704061403.8249-2-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-07-19, 07:49, Leonard Crestez wrote: > On 7/4/2019 9:23 AM, Anson.Huang@nxp.com wrote: > > From: Anson Huang > > > > Assign highest OPP as suspend OPP to reduce suspend/resume > > latency on i.MX8MM. > > > > Signed-off-by: Anson Huang > > --- > > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > index b11fc5e..3a62407 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > @@ -136,6 +136,7 @@ > > opp-microvolt = <1000000>; > > opp-supported-hw = <0x8>, <0x3>; > > clock-latency-ns = <150000>; > > + opp-suspend; > > }; > > }; > > What if the highest OPP is unavailable due to speed grading? What does this exactly mean ? How is the OPP made unavailable in your case ? What will dev_pm_opp_get_suspend_opp_freq() return in this case ? > Ideally we > should find a way to suspend at the highest *supported* OPP. > > Maybe the opp-suspend marking could be assigned from imx-cpufreq-dt > driver code? Sorry for jumping in late, the latest patch from Anson drew my attention to this topic :) -- viresh