Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp162967rdh; Wed, 22 Nov 2023 23:33:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqCsuISrHplHWwXZW16exzSU32DR+YkA8eTMJaKamrUbgUg9i96g+TEAeKLqVH9Pa1rNWE X-Received: by 2002:a05:6830:3b8e:b0:6ce:2789:7195 with SMTP id dm14-20020a0568303b8e00b006ce27897195mr5041879otb.31.1700724809692; Wed, 22 Nov 2023 23:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700724809; cv=none; d=google.com; s=arc-20160816; b=dISLwq58Ie9XPYOU7KY8gi6byj3LU486jFWdzWYPS8fs9bWu14pmRZJmZJlGn6eLzU ammCK/aHbrHiBk3Dc7XdkkwFfNUJRCFV438RMZ0CHHlP1sojJDduO0aZGcm4xHcdq39L eQdm0uFM1gyAJj4wxaHiZ8zvm6W0JBPy8q7RaMLzWjMahSALzyeFds4Kgbm1p5Jlf+sX FzA7M2v14ltR/kjEzrvA5yRwanvItTo1a6KNg2saaqifHw4j2mEDWsh6ZRicsxSdMxxu +65kv7LnTbX6HsAE38F8IuSra5Z3HaI5WiztYVJXt/twRbZV6v8BoKR0ZrWyDel14/qB 4JpQ== 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=ffEiV3gyDVMcASEwnogOw570ilHF1Jzww0yDLp3D91A=; fh=VGLCYA9bCh6Q4ukvZUWO2b3v/ChxnOfj+Ii5AEEbEdo=; b=N20fz5PQa3tjF/ixhKuz9WjJvrIvHex53RSxTqMxeFVEr9EWHA2aWc2KDf5xYZiW35 qZcjwBeEFaxhAi1gwZUpjS+KUv23ipB0PcLVI2DjK2SAZVT3nrWloOzr22+OOFBe+8GQ xXmG9//4EwmgIl7i34f8do3VO9Xgy22uc5a2kLsDTt1XNriLfWkqfr0n6gYU56HvWNFC 253HVE1eFpIbu26IReentOmPKyaUXWNmwmX6Fiqzc61rj3EfdBpvS/HIt2bjnZbfkAN0 eNuVXcGAcF2wIXBlJYspJWc+zqjUY6W1cHVmOPitXGXlpxXKBXfRZrAU+sj8yPBN8Is6 YtkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2lKM+wF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g9-20020a632009000000b005c203ad0d45si766441pgg.821.2023.11.22.23.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2lKM+wF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id D86A983BFC4F; Wed, 22 Nov 2023 23:33:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230390AbjKWHdG (ORCPT + 99 others); Thu, 23 Nov 2023 02:33:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbjKWHdE (ORCPT ); Thu, 23 Nov 2023 02:33:04 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945AD109 for ; Wed, 22 Nov 2023 23:33:10 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-280200949c3so471124a91.0 for ; Wed, 22 Nov 2023 23:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700724790; x=1701329590; 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=ffEiV3gyDVMcASEwnogOw570ilHF1Jzww0yDLp3D91A=; b=G2lKM+wFbbLHzvkBsHKo2taPk5w6kKP3KV06AG90ck1QDpqSbKV+NqeGYnBhugatEt 7lvebqUyBKZRsHcck7WRkpAQF4wF0bufBiStjdVy3TW1XCd50+uBepeQifgPZSs1yyZ9 r+kQ2dB8asilo+VGIa72bwpiFZcDAxkMKDbwFrhLdSCODRiKrwBKZv9xs2v2tH1Sk2vJ 3ewTrHnsn6PCKKUd0DfEe1yAOSfLz0289xbd1Ns9bPKur7ahouT/uDFF0qi+p+vjZJuR /jwpi+kpJGhB8TvxjQrLHW/1izl8Bk4atmiLeOv7hXDM+QqvVkIO5vRzWwNsHGU8clx2 DnLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700724790; x=1701329590; 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=ffEiV3gyDVMcASEwnogOw570ilHF1Jzww0yDLp3D91A=; b=tYPlCji+KAg+ES52zBECyblP3WfzqeLs0PzVM7A/6OPWRVNGj2wd8Q3H6gjzqQQ9zE 1AXbNVaPJ9Gkgl2KFW8IdsuuqB6khpBIXB0AV2olteSoNbqNJE10t7Gk9Y5vVHeoxt9Z JJVmM3MnTh5c+0dU+c/5KhVJGdtdMD6PR0r0LCDXgt2RevSEevdtJC00gTW7EHUSItgl MOrVv71NmOXKvCVX6tihL76k9cXIv6MQx0IvoqtJ+KdPOuReJJSGv1BfOyrfix7UfaA7 qmL11UcFzd3panXGoOgCNxtB49JodslwIayaJ1vlqtF3o8DHARxC3TXQ0ag86t7W4lKP QCpA== X-Gm-Message-State: AOJu0YziZTg1vIvhLT9b3HRUBo9hLQoyfNp1nppdnGygbmT3Af+CWrOl 4WEaeM8pFk8rkIqDV4LYlLt03Q== X-Received: by 2002:a17:90b:4c4b:b0:280:2652:d41 with SMTP id np11-20020a17090b4c4b00b0028026520d41mr4398418pjb.4.1700724790066; Wed, 22 Nov 2023 23:33:10 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id ci8-20020a17090afc8800b0027d0adf653bsm666844pjb.7.2023.11.22.23.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:33:09 -0800 (PST) Date: Thu, 23 Nov 2023 13:03:07 +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: <20231123073307.kvw25kg4hjce5jbp@vireshk-i7> References: <20231122134113.63670-1-cniedermaier@dh-electronics.com> <20231123072840.vds22wlb7hzgnye3@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231123072840.vds22wlb7hzgnye3@vireshk-i7> 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:33:27 -0800 (PST) On 23-11-23, 12:58, Viresh Kumar wrote: > 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) Yeah, that isn't required I guess. Applied. Thanks. -- viresh