Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp165004rdh; Wed, 22 Nov 2023 23:39:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFETLcw9R8uEgAQ7qygD6pA9lW3kUqBDYnkivV0RIaBtrLVQ+3oVxlqkH0UNiPRjTVvJoeS X-Received: by 2002:a17:902:74c8:b0:1cc:419e:cb4b with SMTP id f8-20020a17090274c800b001cc419ecb4bmr2914962plt.19.1700725157931; Wed, 22 Nov 2023 23:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700725157; cv=none; d=google.com; s=arc-20160816; b=hljaiEfVNyb4yvmlK1yUXK8JGRD1Imw6cgAJQLQm9w3xC/MeV78L5PO4FGEAozYi3B 51NBSeQyZk25yfXWOzxLub4MJd0WapgYYga+VUdzAXlySYDCntkXFegauegu5eIaxyIf DFUq1gogxuGrnZnP2IdLpDvhuxOZGBmdmZDU57VzNWc3mB+E+z99oc8bLjeLr9UqiiV9 BuZQN9W8qFQ/1OnO27BY7h/nbFou0x0Onf1Qr4r983selv+Lgss2HpiFxBvR4cvcfWMc gaUL9mwqhX0X29+gyEOvJmdw/pLVjagzE2cbQqL0ad7LemNLLSnE1wGe9kkWsmAc+itA 1How== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xnV2yqKOcPNVU/h0qUFRaNBNtVv3KcbN9dof9BEc7kQ=; fh=mm60ilwbMpLEs8VsimGIbXclvWUCXRopICpGTvDr7Ik=; b=Vmqrcr5zinM1HKMEUyxrFmSaF/Esymhuvr2c09m2PkejWo3ZrTsGevsfgIxQ5+eW75 SjaS/JfXGYSXBaYrDGgY9hvZVLcLCVWHkUon6ZgCBn3C2a/qQ943VSeKXDD1rz60VMNn KN0YjsQiEOr8+pjKwdKEyh6Djxj0JyrJqdkm+38V0/vXVA1LxYXv5jAUW225s+/dUZUo 6qhCEWAOrE5SF3xwY5LcPQnr3WuZ0BGeAJv6FJElFOtzxgoP1xvlA4o25lRRwc1Pqza0 sJwHuK/pgMy00FdD+j5Iwh4diRWz9OE70S8jdJBZBwU9yh77nW4paWPoq4rDx7U0DCBW 2IOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYtVk2yq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ju4-20020a170903428400b001cc686a4128si595197plb.600.2023.11.22.23.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:39:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYtVk2yq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 4A093826BB8C; Wed, 22 Nov 2023 23:39:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231407AbjKWHi7 (ORCPT + 99 others); Thu, 23 Nov 2023 02:38:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjKWHi6 (ORCPT ); Thu, 23 Nov 2023 02:38:58 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D2521BD for ; Wed, 22 Nov 2023 23:39:04 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6cb55001124so1229253b3a.0 for ; Wed, 22 Nov 2023 23:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700725144; x=1701329944; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xnV2yqKOcPNVU/h0qUFRaNBNtVv3KcbN9dof9BEc7kQ=; b=UYtVk2yqDQ7Lu8oprclAEfT45nJrY2hJQ+/whB1lYpT4jsWMHZTo9zV8s1KMwYEFI+ H9wldtNcJzz2lTj1n9RsUjIRry705tibUHePkOA1CiQNM5tTxR9rhjbUv0vxyEaEglOD ywKF4p6MzQJmBsuZ7h+TmYLp7FVpeWP/JEYdtth7vn4zNSBDbrMqodENcXCzq7eBYGlC ycnsZ0jZ/LLIN+iCMYzDGj3RFEijzXSNE2CJ5soiOq206BpVd8SA6Je2HSdlxrFPSlIQ LYpFXr74dG+cKgiLumwzQD37DSUl4lA/DtODqeWb+q/V4LdyZd8+vEzKnXbAvvMfIBnN G/Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700725144; x=1701329944; h=in-reply-to: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=xnV2yqKOcPNVU/h0qUFRaNBNtVv3KcbN9dof9BEc7kQ=; b=PY5U2+SWFTivrPncaE4hUgMEcBZk5TnGCx4GU7B+HkuwWWgKw+nCQR5GnI+1iEN5O6 zcNCe/9hkyyn6Urcn89x0teB8A/7wB2b3Iejd+jQ6AlaVFrIjaja7+SJPfHYeEahIloz kIan/lCUlklayHMQG/B+iXmj26wWk32sicdPzJiBP+S3sqlmjQAFLc9pswstmHmriig0 aYKk4i73MaQEjt0Zbs6J5i7eH6Etm/QfVtJlXGei4bxwL/vcs92vN6/xyMdrOuqMUnAP P0G5QBQu11CKiAlt514cQRM0B6NnYe5GwdYCD3LZ7ZYnLuLhPhUK+RWOrJsaxgHvyCmG 2jxA== X-Gm-Message-State: AOJu0Yz9bpT5L+tTjN3G2ZYxxgXT9pTCVX0gB70IjJJ2Xdj632GjhAja G8Kdx3IWWNyd3/KMA+09tuIzMA== X-Received: by 2002:a05:6a21:6da3:b0:187:bb9c:569 with SMTP id wl35-20020a056a216da300b00187bb9c0569mr2883617pzb.5.1700725143897; Wed, 22 Nov 2023 23:39:03 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id v13-20020aa7808d000000b006c0fe2cf26csm615737pff.107.2023.11.22.23.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:39:03 -0800 (PST) Date: Thu, 23 Nov 2023 13:09:01 +0530 From: Viresh Kumar To: Stephan Gerhold Cc: Ulf Hansson , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stephan Gerhold , stable@vger.kernel.org Subject: Re: [PATCH v3 0/3] cpufreq: qcom-nvmem: Fix power domain scaling Message-ID: <20231123073901.meb7p4yzueg2lkou@vireshk-i7> References: <20231114-msm8909-cpufreq-v3-0-926097a6e5c1@kernkonzept.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231114-msm8909-cpufreq-v3-0-926097a6e5c1@kernkonzept.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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:39:15 -0800 (PST) On 14-11-23, 11:07, Stephan Gerhold wrote: > The power domain scaling setup for QCS404 and MSM8909 in > cpufreq-com-nvmem does not work correctly at the moment because the > genpd core ignores all the performance state votes that are specified in > the CPU OPP table. This happens because nothing in the driver makes the > genpd core aware that the power domains are actively being consumed by > the CPU. > > Fix this by marking the devices as runtime active. Also mark the devices > to be in the "awake path" during system suspend so that performance > state votes necessary for the CPU are preserved during system suspend. > > While all the patches in this series are needed for full functionality, > the cpufreq and pmdomain patches can be merged independently. There is > no compile-time dependency between those two. > > Signed-off-by: Stephan Gerhold > --- > Changes in v3: > - Drop patches with MSM8909 definitions that were applied already > - Add extra patch to fix system suspend properly by using > device_set_awake_path() instead of dev_pm_syscore_device() > - Set GENPD_FLAG_ACTIVE_WAKEUP for rpmpd so that performance state votes > needed by the CPU are preserved during suspend > - Link to v2: https://lore.kernel.org/r/20231018-msm8909-cpufreq-v2-0-0962df95f654@kernkonzept.com Applied. Thanks. I picked the pmdomain patch too, lemme know if that needs to go via some other tree. -- viresh