Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp451387rdh; Thu, 23 Nov 2023 08:14:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrExWi8FhjRutgztYX6buuCmxwR0mvq1rNzkgwm+OBm/aJ7lOyJytbuzWcNACq7bb+6I+3 X-Received: by 2002:a17:902:ec84:b0:1c9:faef:5765 with SMTP id x4-20020a170902ec8400b001c9faef5765mr7566381plg.5.1700756096965; Thu, 23 Nov 2023 08:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700756096; cv=none; d=google.com; s=arc-20160816; b=MKagzqbGARmg3RwsCL5Lvlia8oHc+VX4S4mk3CDJP0ikOFjpD5Lz5AMFLvq1SQLoF6 dYjX5dUG45aOOXxRCeJP4fpuQNiLjOa2+/nj8amHMD/qdIVLaYNWkcrGo26UYh6dj3Uc liI1/6IkKyuMJhrljEjZoZDfQ/hPiWQwKlsDoAAQoImfpWseCvyU9D4hn5TBXhGZjyOA M6wxaNWFvSpG1x+pyVOJy2T44Xuib0ZopwALsQItlTY1MKqbgT0ZXN69m/0KA1KRJDfH d3H7HKzIKXskme3D1ymUeKCUrN3cY6KxZMiqKQpSHzg+uInyBBKBYrM0OEPRRk/AiWdG XTjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ipzMNGrGtolaTuN+LIIgKEncct0aftDF2s8V+J8A68E=; fh=uHjq3ofrdCJNfo4LG8Bv7FAlmSnHjfkmrQKLObnE4uc=; b=k44xTUHu0QzrHH3eljsRKusR7ygFcXmRCNp3kY50La/LvMSSc+ndEiRRgpGoAp3LCl eIesAlXJEMSdEVQMXm0VqBFcrhb2dtOPf5T42/aE/ydCmThjwHowHM7uXgetxn/ZAwSl wTHIWDdeZe5I4y+tdmQ1OtadTpKKndiyhX1STLLZ6LI9dlFUHVLppRY130Pi/mq7TUZR rdRWhDVZPdFrHZ+1NKCHXc6p0oPZwsJY3jLGi1RChvGP6s+an2QM855ElEt1HtavUU4w chHBoe33Cemn9PXyErjvoe0jPOS1jrDgUSk9XVK1I9braor56hFWmDfq6kpetgrdcjGE FLnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TB1au32u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id iw12-20020a170903044c00b001c6182d7d43si1369781plb.21.2023.11.23.08.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:14:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TB1au32u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id CF41A808A96C; Thu, 23 Nov 2023 08:14:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbjKWQOc (ORCPT + 99 others); Thu, 23 Nov 2023 11:14:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjKWQOb (ORCPT ); Thu, 23 Nov 2023 11:14:31 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97C1019E for ; Thu, 23 Nov 2023 08:14:37 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5ac376d311aso10106377b3.1 for ; Thu, 23 Nov 2023 08:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700756077; x=1701360877; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ipzMNGrGtolaTuN+LIIgKEncct0aftDF2s8V+J8A68E=; b=TB1au32u8m8eCO3UzV/gibdFPsdh5WsVOoeM3EqADr21c22opVoMNQkCvOooM127Wl G2PJ0otm4EnQfy67H383gMAr32cNWvbLl/3MRk4APIVR1FMIIHaW1kFVbtM/ZcUXv/ly h9SYLETXEGUx6WsYR0JhLnky5U+FlS1h6cyS6bEHtoQGxrqPxukBk44oWX59lQw1Bt7I nrnZ++FSyM8TCdYoM3u0bBFrekieYqQ7RlbejqgHKprziT3+EBV5YAecmZndOhXeZu1m xxMRujogWdPBWjC9Zjjale10DjBU9NtADu1hE39BWJkrOc/ioNJsXoEQ4wWbXu0lp/C6 Y4gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700756077; x=1701360877; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ipzMNGrGtolaTuN+LIIgKEncct0aftDF2s8V+J8A68E=; b=k7DquqHuR9zxD0x4zfxQhZW33ZbxD6mmvLCDJrve0Y2SCCHHvurJYLqPtS5eUGiEel hZbL9/wAbjgGXNGNhnkt2pTHcq8HZDy2J6tXV5AIJeinWAo+aP7ods4qo5bzMXBrdPAv BQ6Md5Q1u7kae+L5WixJgKRobnvKhT7C4mPZP854MFLxAvNb2lz8PxnwU/KFoMthIERc HFG/zG90sJG7/AOt4TAzynLrtJyXz7niAaEh5Dj1bzE/gGQ8nxGxskU3MQPOJt7O5b0Z 6parilBSukMPMDOCe8bAYeTQ7fgB3XQqGsP6Fp39XPinemUpdE/IBfO9PdLvlkRxdrF6 OVTA== X-Gm-Message-State: AOJu0YyKsoPU6Yxpqg8k71gZLHf2M0MHS29msYpf4uxGSF6UgJ5x4fut 6cspkh000QdXSdv/n3zxDD9IoF4LBPu91vh+Umy50g== X-Received: by 2002:a05:690c:2891:b0:5cd:6004:3549 with SMTP id ee17-20020a05690c289100b005cd60043549mr1455172ywb.27.1700756076780; Thu, 23 Nov 2023 08:14:36 -0800 (PST) MIME-Version: 1.0 References: <20231114-msm8909-cpufreq-v3-0-926097a6e5c1@kernkonzept.com> <20231123073901.meb7p4yzueg2lkou@vireshk-i7> In-Reply-To: <20231123073901.meb7p4yzueg2lkou@vireshk-i7> From: Ulf Hansson Date: Thu, 23 Nov 2023 17:14:00 +0100 Message-ID: Subject: Re: [PATCH v3 0/3] cpufreq: qcom-nvmem: Fix power domain scaling To: Viresh Kumar Cc: Stephan Gerhold , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:14:49 -0800 (PST) On Thu, 23 Nov 2023 at 08:39, Viresh Kumar wrote: > > 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. Usually I should pick the pmdomain patches. Although, I thought it may be better to keep this series together. Assuming you are going to send these as fixes for 6.7-rc[n]? In that case, I can just rebase my tree on a later rc if I find any problems. Kind regards Uffe