Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp905992pxb; Wed, 16 Feb 2022 06:58:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyczYLy4GGdR0CxVi7+BwQYXe6cPpj1fWHN+/i+pWzhV2anh1rKmegKRmjnaDxFyKk/45Nr X-Received: by 2002:a17:902:b7cc:b0:14a:f110:84e3 with SMTP id v12-20020a170902b7cc00b0014af11084e3mr2957917plz.110.1645023502680; Wed, 16 Feb 2022 06:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645023502; cv=none; d=google.com; s=arc-20160816; b=R2RaeESeoy0eOXuijPsFt1qfFuDkopYCHCI3uL/nxEMfzU1texeBQ9HvkPjUNkpj1B yRvzmO6OXMWu5RmNBgow3ZLaKqA1q0LNPiX5HJaqvgGrda4wRpo49jaoQgtDz1/2leVM QCwj/bc5IBxJvQj6HrvqQWbGBAoUKJMYvdxiioCKvdmr+cstgWmvItcy+WI9C/BaqQTN R6h0NHDlQX9b+DGfqHsrNXrPPXnJWGI0gBUv8xkSOU5GdbTNoin1vylw5x69/FOcdUS9 YX1Q6XgzfSp4J1L3z9uBqkZL+Ii+a2i0sSIu3+b/434pLRVfeZiweTwDDwNYc04iw/rr uvCg== 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; bh=tgqZTdJ+4ofspXJm0uERtDBrIRkyfAZT3Ap3nz2D3Dg=; b=0gTeQC+XPbOh+moeOPmXA5CwTV0ggkQ+IpP4XiQarz3j8wR+DSHmn6FmFGlnClbHRX mLR7QZSAc4NHVtQJ0L+08Hu2V9TH8dbCldvnQwH/AIIJcATUCH7zqAhwcoJ7wfO7v779 Ak2qnbKvJD20YwDWJtkqX5356zlG7QG2eCuxCQDlGgR0LaVHEkt4V0G/yB1TRgc+hStJ DGUi25z8mQFZySd7ae5mwJDeKxFnDVfviJXbsN9jfrR1khU3anOA93w8Od7uNOxMssNE dWUAsdYFNjp9vB0c+OqLG7zLnlr1WlZcRivCuKf63Zui7BWT6b//bTbMDoBjIfyK+4Ah SObQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21si9675691plr.574.2022.02.16.06.58.05; Wed, 16 Feb 2022 06:58:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235209AbiBPOur (ORCPT + 99 others); Wed, 16 Feb 2022 09:50:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbiBPOul (ORCPT ); Wed, 16 Feb 2022 09:50:41 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B64262A39D0; Wed, 16 Feb 2022 06:50:28 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7ECD1113E; Wed, 16 Feb 2022 06:50:28 -0800 (PST) Received: from bogus (unknown [10.57.3.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C16E3F66F; Wed, 16 Feb 2022 06:50:26 -0800 (PST) Date: Wed, 16 Feb 2022 14:49:37 +0000 From: Sudeep Holla To: Shawn Guo Cc: Marc Zyngier , Thomas Gleixner , Maulik Shah , Sudeep Holla , Ulf Hansson , Bjorn Andersson , Lorenzo Pieralisi , "Rafael J . Wysocki" , Daniel Lezcano , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/3] cpuidle: psci: Call cpu_cluster_pm_enter() on the last CPU Message-ID: <20220216144937.znsba7zbdenl7427@bogus> References: <20220216132830.32490-1-shawn.guo@linaro.org> <20220216132830.32490-2-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216132830.32490-2-shawn.guo@linaro.org> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Ulf (as you he is the author of cpuidle-psci-domains.c and can help you with that if you require) On Wed, Feb 16, 2022 at 09:28:28PM +0800, Shawn Guo wrote: > Make a call to cpu_cluster_pm_enter() on the last CPU going to low power > state (and cpu_cluster_pm_exit() on the firt CPU coming back), so that > platforms can be notified to set up hardware for getting into the cluster > low power state. > NACK. We are not getting the notion of CPU cluster back to cpuidle again. That must die. Remember the cluster doesn't map to idle states especially in the DSU systems where HMP CPUs are in the same cluster but can be in different power domains. You need to decide which PSCI CPU_SUSPEND mode you want to use first. If it is Platform Co-ordinated(PC), then you need not notify anything to the platform. Just request the desired idle state on each CPU and platform will take care from there. If for whatever reason you have chosen OS initiated mode(OSI), then specify the PSCI power domains correctly in the DT which will make use of the cpuidle-psci-domains and handle the so called "cluster" state correctly. -- Regards, Sudeep