Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp161237rdh; Wed, 22 Nov 2023 23:29:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0RHs1cjvM8mr7m32LHySkCCTnPexjyI4womPc3vFOs7rK5KZdey6XsXwKhPn1qZ63qYHE X-Received: by 2002:a05:6a20:8e26:b0:18a:d8ba:db42 with SMTP id y38-20020a056a208e2600b0018ad8badb42mr2503967pzj.1.1700724540648; Wed, 22 Nov 2023 23:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700724540; cv=none; d=google.com; s=arc-20160816; b=bndU+/WVCjpL5fU+qAE0SXS9+Hs/hMIRTu3FrvzOvw4kgwTBpA4ccKD0WBX8n6XpOo +P5MG7bz7iFDosFoYevZ1K8e27Yyt3LWElGqO0w+oetA2wxkzmX6qjD4PNrd1KRs+3nz r9HYjyPAtEI1bzogX7TREPk8Gc5jvugGtGlKL5rOyLca2vrlvmRA+pDn7U2EU9R609dH LWf5mjyuNTB4oDmJT/wGEQnd/rppY1Pdlb3+lDNK3D8/0d32RqiKpYOxtYNC7j/VUXt4 6ZstwMyPZ73xtVqlrw58FMLyxguQnTwQ7I0wm7+8eL/fBdg8D3th0UEomjRZrttA5jsa JjmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oOpcXmiBIDh/X0eIBXMfB+uo9xCU3x3A5tDFUwNRRs8=; fh=VGLCYA9bCh6Q4ukvZUWO2b3v/ChxnOfj+Ii5AEEbEdo=; b=AlyL63gCUU/EQbdh/aPgceJ4jhr5Z6fmRcTejgu1T/y27WUDAZBfpnIbgvhD3DvTGI KibbJgyt04CsLY2ton0L1P1+1zhn3Y70h3CTJABolteUEKO+vEYmB118QtT3Ywm49v9p qKCTbEjLLoaVc8FOpaq5QmIsEsos2JU1UWFjltWGg/WkAxUljknmqSTIZZ+U61Akn+UU AfTYztNQnonc+megBI9C4cxbj67UkIf/kHHF5jX028djR33KqrKh85Cc0yK7H2QP4PrJ mkcESRmtaGqp7jIfLSwNjqQ4FU1/8WRK28qRI2znqcfWvCk6aEMUjVNBqrS7pPKGc5ti O87A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JZhH8/68"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b36-20020a631b24000000b005aa83686f32si805995pgb.42.2023.11.22.23.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:29:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JZhH8/68"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EF043830F556; Wed, 22 Nov 2023 23:28:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjKWH2m (ORCPT + 99 others); Thu, 23 Nov 2023 02:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231539AbjKWH2i (ORCPT ); Thu, 23 Nov 2023 02:28:38 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11D7D7E for ; Wed, 22 Nov 2023 23:28:43 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6cb55001124so1224603b3a.0 for ; Wed, 22 Nov 2023 23:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700724523; x=1701329323; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oOpcXmiBIDh/X0eIBXMfB+uo9xCU3x3A5tDFUwNRRs8=; b=JZhH8/68k04HsvjGBrFDXqDrHdHRjMHHgn7h1XvrM9gjCiPzgEBuw6V0wCQTyY8gZc oIpyJosWKNRuaBYEwdrmXTlD+nyXD6vY1tMT39Ik2xp9oBryFu6nbjl/AZ+qhLIF5GZT R8zG9Um3KoXYAxcu1HDHRPzSVQPaV/wOLtIBf8Bh/9qB6oCFNfxxqiGMKWq9xImqb1tA E97SXTn1ZEYzTjmg3pE1oCo/AVGZOYCLsNHaBhilA+M8yJGtq1OpcPm/8B3CCFYu7e0k RQ7MJ+8tHqqNg9mAYkh6O8RbJZMu0EY1EnrE+35Qg3NGhiY1q8pye7AeS9qRvSdoMfQt TQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700724523; x=1701329323; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oOpcXmiBIDh/X0eIBXMfB+uo9xCU3x3A5tDFUwNRRs8=; b=M879Z1jI8B3HzosQwAIA5sOdN4AHlrkmuTF/s5A5nhGOThqDX2KtIhQD0KhOpmGJB+ e7BZOT346B4jkxD+tdlNyQXyVAPiR4WP7ucrT2AljPOZsMOgj70d3EqHZQrZyD9SzBso xo6k0w6e6Z3sByaV31d21oxzf4ECCY5pDwg0zznp+7fpTsvSli4MMDUigu9Uc/jii0p6 S2WMeGjTTSz7TsYOX0HSfy12AVmNvTEZ+FlGvwVkN/C3Vvb6T4Oq7pjAfUeFNqw0rleR 3lRkwt0K8EqSJne9dJWnfUTdRXz9MDZyn1s4xjbTxiBw6Vb83QocJBARcr4hx0/rjXxe AiOQ== X-Gm-Message-State: AOJu0Yy5/erLwDdJzPqiWUyS3MSy13p4pNO/HpMEkUxgOI4rvkQI/M4G Me3xI5ZdgTp/pAVQRUaiuUxzyRCP0knhv6WYeyg= X-Received: by 2002:a05:6a20:3d8b:b0:18b:acc8:a5fa with SMTP id s11-20020a056a203d8b00b0018bacc8a5famr455309pzi.7.1700724523028; Wed, 22 Nov 2023 23:28:43 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id x8-20020aa79188000000b00686b649cdd0sm607620pfa.86.2023.11.22.23.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:28:42 -0800 (PST) Date: Thu, 23 Nov 2023 12:58:40 +0530 From: Viresh Kumar To: Christoph Niedermaier Cc: linux-arm-kernel@lists.infradead.org, "Rafael J. Wysocki" , =?utf-8?Q?S=C3=A9bastien?= Szymanski , Stefan Agner , Shawn Guo , Marek Vasut , Fabio Estevam , NXP Linux Team , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] cpufreq: imx6q: Only disabling 792MHz OPP for i.MX6ULL types below 792MHz Message-ID: <20231123072840.vds22wlb7hzgnye3@vireshk-i7> References: <20231122134113.63670-1-cniedermaier@dh-electronics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231122134113.63670-1-cniedermaier@dh-electronics.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:28:58 -0800 (PST) On 22-11-23, 14:41, Christoph Niedermaier wrote: > For a 900MHz i.MX6ULL CPU the 792MHz OPP is disabled. There is no > convincing reason to disable this OPP. If a CPU can run at 900MHz, > it should also be able to cope with 792MHz. Looking at the voltage > level of 792MHz in [1] (page 24, table 10. "Operating Ranges") the > current defined OPP is above the minimum. So the voltage level > shouldn't be a problem. However in [2] (page 24, table 10. > "Operating Ranges"), it is not mentioned that 792MHz OPP isn't > allowed. Change it to only disable 792MHz OPP for i.MX6ULL types > below 792 MHz. > > [1] https://www.nxp.com/docs/en/data-sheet/IMX6ULLIEC.pdf > [2] https://www.nxp.com/docs/en/data-sheet/IMX6ULLCEC.pdf > > Fixes: 0aa9abd4c212 ("cpufreq: imx6q: check speed grades for i.MX6ULL") > Signed-off-by: Christoph Niedermaier > Reviewed-by: Marek Vasut > Reviewed-by: Fabio Estevam > --- > V2: - Improve the commit message > - Add Fixes tag > - Add Reviewed-by tag > --- > Cc: Viresh Kumar > Cc: "Rafael J. Wysocki" > Cc: S?bastien Szymanski > Cc: Stefan Agner > Cc: Shawn Guo > Cc: Marek Vasut > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: linux-pm@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > To: linux-arm-kernel@lists.infradead.org > --- > drivers/cpufreq/imx6q-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c > index 494d044b9e72..33728c242f66 100644 > --- a/drivers/cpufreq/imx6q-cpufreq.c > +++ b/drivers/cpufreq/imx6q-cpufreq.c > @@ -327,7 +327,7 @@ static int imx6ul_opp_check_speed_grading(struct device *dev) > imx6x_disable_freq_in_opp(dev, 696000000); > > if (of_machine_is_compatible("fsl,imx6ull")) { > - if (val != OCOTP_CFG3_6ULL_SPEED_792MHZ) > + if (val < OCOTP_CFG3_6ULL_SPEED_792MHZ) > imx6x_disable_freq_in_opp(dev, 792000000); > > if (val != OCOTP_CFG3_6ULL_SPEED_900MHZ) What about another similar check ? if (val != OCOTP_CFG3_6ULL_SPEED_900MHZ) -- viresh