Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1918486rwd; Mon, 15 May 2023 05:05:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Juwtn0B7nN/VaAryjCaOo0IPYwQI6gaKxm2wUY8UnAN0Ci0HkZjxpZOrBjMj267Zge27Z X-Received: by 2002:a4a:c202:0:b0:54f:58f4:19da with SMTP id z2-20020a4ac202000000b0054f58f419damr12048214oop.0.1684152342056; Mon, 15 May 2023 05:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684152342; cv=none; d=google.com; s=arc-20160816; b=EdwooP/YYxgbolwN9TUFtk5GX0TVm+0F4+H60Sgup8gRs1zGOmZ2eaqp0lwfCuUHmt Oft3PD12PiljkyGE/7U3NQ9SJQ/+x/R0+1kCvohnmz/iL8XSAsXxUWpy3NB3o+lQSafZ 0ZDGYq4LbkkUMow+bO1s6NylHg6EzQtX8FbieI/4bDs2FBAHtPG/7DVkGFUrhksFoGhg oFhmTBkZmbHQzi1SXcI+Q4Q0oXfFDGkbLtgpn327Uf9JA3q59GCD0gDUgg5oz4PTWZmA IgcwbOZnDDWCFRzhOErEcqf+iP99snesETmUeqBIDKSnpjCluNtSnswvG2Nurkq9EP4/ pXiQ== 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=bR1SGoxntwN9FVZOWU9wlF4OOHi9NNzh6DiuG39APqk=; b=UxiQJPRghTtnXXsi3YWLgcOLjxpCho8AuUVUwZWjhr8VSu9yxVvtPgSqF2Pr2h/Fxh tBrRqzKX9axx5wGN5cw4OGhCPZs5N7TZNI3YA8EAUGnF3gj4IWdRP5y1h5yIFPMjchT2 3sEeYEO+pifGnsCfojNT57/RLf+U1VtGvQT/+4Iq17S/HqbopCnXv732ocLgSt1V4k53 7L3tIp0o8my5S5uYJUYwqzEP1XTVnxF6gC8xJZTBJvjOwYWgowM6VJ/kEbcmZgkIUqt7 wsw3VXFV7kHdXavFiijXchqXQ1r8vYjV+40J9bscYCpG37BxZC26JJ0fwF63aJGOxppJ Dqbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LoYBJJXk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a056830418700b006addd6cfdd0si632290otu.357.2023.05.15.05.05.27; Mon, 15 May 2023 05:05:42 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LoYBJJXk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241450AbjEOL5H (ORCPT + 99 others); Mon, 15 May 2023 07:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241667AbjEOL4N (ORCPT ); Mon, 15 May 2023 07:56:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E3133AAE; Mon, 15 May 2023 04:52:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 261DA62250; Mon, 15 May 2023 11:52:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81C9DC433EF; Mon, 15 May 2023 11:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684151540; bh=Cx0m8x2Mhqcbhl9YWvPjb4YVogzNRjcf/Utt/v0UfWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LoYBJJXk7CZp5oKEZA5udpnT3rNMSbJEkfWCbjTyFmnhfNDxLxW1BX798rikxsA7u EAF5eNYF5/DJDJg2mGnlECbFu3Gw1nf/d9nC1sOQE8I3AH4l1JG4lcvJssD7CeI680 fe7OEEb7KihZHIOihJLB7vh/bk3HFxJf5IVGcp9ZIQYNChgc3USc2CO3lWnCh6sA2q +0K5V1oC1qQeFB0AdDs8Qgt6YMYG2W0WprbNA73gyzFcywkpn7ckJ6+XPl34tiRFOa Kwf9j6lmHr8gQcBC/CjOSsh00XagIMC+Fsi1lISurYg15VbmR0s8WGt3mEV370jKIQ 6pXmOjd6RX5Rw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pyWkT-0003yW-2Y; Mon, 15 May 2023 13:52:17 +0200 Date: Mon, 15 May 2023 13:52:17 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: Flush RSC sleep & wake votes Message-ID: References: <20230512150425.3171122-1-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512150425.3171122-1-quic_bjorande@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Fri, May 12, 2023 at 08:04:25AM -0700, Bjorn Andersson wrote: > The rpmh driver will cache sleep and wake votes until the cluster > power-domain is about to enter idle, to avoid unnecessary writes. So > associate the apps_rsc with the cluster pd, so that it can be notified > about this event. > > Without this, only AMC votes are being commited. I'm sure I'm missing some details here, but from reading (and tracing) the code it looks like the cached votes are still being flushed albeit via rpmh_rsc_cpu_pm_callback() as the individual CPUs go down. There wasn't really any obvious motivation in the series adding support for the cluster domain as to why the new mechanism is preferred (e.g. if this is an actual fix or just an optimisation done to align with downstream): https://lore.kernel.org/all/20221018152837.619426-1-ulf.hansson@linaro.org/ Either way, this appears to work as intended even if it does not in itself have any significant effect on the X13s power consumption (in idle or suspend). > Signed-off-by: Bjorn Andersson Reviewed-by: Johan Hovold Tested-by: Johan Hovold Johan