Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5528097rwd; Wed, 24 May 2023 03:11:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7y1M+QEuUpLfDPalUkOTSkHsXuNcsE8q1xAaD4e7VJSJm8xpenryq5U0vKy3QBbox/oLsF X-Received: by 2002:a05:6a20:144e:b0:10b:97c8:2e12 with SMTP id a14-20020a056a20144e00b0010b97c82e12mr10505609pzi.60.1684923106557; Wed, 24 May 2023 03:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684923106; cv=none; d=google.com; s=arc-20160816; b=bM4qxVOvX3JrPYqytl4vfs+6xCypQ89vY4b5bH/qp+2cIxY0O39njx3xS9VIBwJUl9 7UP9LHYQQijrIIuGTOseIvUjAtrXWKZas1u9XMjtrTQljkNoyG2JFlUPFIFHjoTGZkRn ld0rnFR4HVNGwg8O8ITJFTN93/KcUTZIeHmfpbnh1q0ldkj5+10Ri47Xnheiv9ZtVKb3 ic+ieGy58Vo7Yl0NFS/qJgXFhNcd0UPAzbC/yqvCrf/SGaI/0ScgObuF79yox9ugBkqA ZEbVxeQGSv77AwrO+BzN4ZGczd4KlXXbXOSRd8s5DETCtlxkTQpKjI7FyZQwv0Q9anrE 4Slw== 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=vH2+XRfLbLSg7dX3ECLEuFafMqGcT0nmYiMVQ0VO/PQ=; b=yd45wFznmwFubBRbslWNmO9sYRdmAQ/7rtJR2kQQMdD5VAvdVv6jDrqmOhIhTeA2Dg q7TVdrk3SWIBqzBnDS0PpXy1NXgsrBb7lYr2OSt2zFlN5SVrxGQKqcK0bxskedQ1Sx6f GwZye8MTnC04lYHDthfVz7U3wtCbxIj13lyzyGdXTTj/ze+d8bI8n2c/2sFUyDOd9HZE UzrlHgIOr8Lo1rpzlExU4NuNARwQnPKBzlvez6IqMsV+ARy8RTBCsq4aDFI3gM5D+fa6 LJbV1hwDj16IC7VwqI291a2yYToOc/60e2UzqqLR98taFQ36hP9VFd9vuj7sqguVmRxH k2cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iOEW2/dj"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a17090a868b00b00250a96ec646si1070579pjn.21.2023.05.24.03.11.31; Wed, 24 May 2023 03:11:46 -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=@linaro.org header.s=google header.b="iOEW2/dj"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231867AbjEXJ5L (ORCPT + 99 others); Wed, 24 May 2023 05:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbjEXJ5H (ORCPT ); Wed, 24 May 2023 05:57:07 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE3B131 for ; Wed, 24 May 2023 02:57:05 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-ba8a0500f4aso667186276.3 for ; Wed, 24 May 2023 02:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684922224; x=1687514224; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vH2+XRfLbLSg7dX3ECLEuFafMqGcT0nmYiMVQ0VO/PQ=; b=iOEW2/dj0DCI7mcTXMDXrLv+AO07KE9MkpVYnkH81hXbJ6cXQRNIVP3lE3INLp8FPc BigpxgYT8Md1dDGHyDIUmFA4vG28TXl1inmwRqaODbWcX1vok0M/XdW4X8EwqxS/veNL yy3SVWB9ZkTu5r68coUC7ubnxT3zweVbl9u7wEztcCHHkySZlUKQ28+kT8q8qx4aI5ND kgPqvxpr/StwubC+NmjOg+usoBLi9r7GCBNPG4U8W7si/W8byF0xJi7vgvKCa8v9RsKX n4NP7ua7JiDxWL8Iv4uSc6eAFKfhEoWmPsk15EOzV4hWx2b1Zc1cNqL43XFGpYdRp+LH gMEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684922224; x=1687514224; 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=vH2+XRfLbLSg7dX3ECLEuFafMqGcT0nmYiMVQ0VO/PQ=; b=WveZRCPU7/829g7yCg5f89X+a631r4oiubWARc1m3XDt8/j6rJF4mdFhazkySppCW8 AHA5etK4dlzo+M3TS/qCYaw99C4yFFrfiwwnlHPCWGScsjqRIBcVYa4EPHDsUCEBz/3o CFLcII35IXcR40UrPnmWVtUGqIhHtzggUwHdXedK1/gfv6YC+mmKblJ6c/VH04fp53cW iAYPPjwFnVuljkHl5b70E9h4Mjmmpcu8pqKnDV+fJX4BsCfr5AAHk9LtgaTqu4LFj2He 0RXcVIsNpokwWpQTGFUiFjRHqWyaIo9uXSrOdxNct3XiS5qR5Qpyy4dsqRzjagYD2m3Q lVkA== X-Gm-Message-State: AC+VfDwmbW7G5f3CqHAYuJrQRo7vmUtD6ktZp45eBPxyft6P6gNY5plp GmThxgfGoMMX4fzZiHxeIzuCdfIWLuLcGolyVX7SuA== X-Received: by 2002:a25:73c5:0:b0:b8c:54d:c60c with SMTP id o188-20020a2573c5000000b00b8c054dc60cmr16230310ybc.34.1684922224229; Wed, 24 May 2023 02:57:04 -0700 (PDT) MIME-Version: 1.0 References: <20230424110933.3908-1-quic_mkshah@quicinc.com> In-Reply-To: <20230424110933.3908-1-quic_mkshah@quicinc.com> From: Ulf Hansson Date: Wed, 24 May 2023 11:56:28 +0200 Message-ID: Subject: Re: [PATCH v4 0/3] Use PSCI OS initiated mode for sc7280 To: andersson@kernel.org, Maulik Shah Cc: dianders@chromium.org, swboyd@chromium.org, wingers@google.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, sudeep.holla@arm.com, jwerner@chromium.org, quic_lsrao@quicinc.com, quic_rjendra@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Apr 2023 at 13:09, Maulik Shah wrote: > > Changes in v4: > - Add missing s-o-b line and reviewed by in patch 1 > - Address ulf's comments for error handling in patch 2 > > Changes in v3: > - Add new change to provide helper function dt_idle_pd_remove_topology() > - Address ulf's comments for error handling > - Add reviewed by ulf for devicetree change > > Changes in v2: > - Add new change to Move enabling OSI mode after power domains creation > - Fix compatible string to domains-idle-states for cluster idle state. > - Update cover letter with some more details on OSI and PC mode > comparision > > The dependency [2] is now merged in trustedfirmware project. > > Stats comparision between OSI and PC mode are captured at [3] with > usecase > details, where during multiple CPUs online the residency in cluster idle > state is better with OSI and also inline with single CPU mode. In PC > mode > with multiple CPUs cluster idle state residency is dropping compare to > single CPU mode. > > Recording of this meeting is also available at [4]. > > This change adds power-domains for cpuidle states to use PSCI OS > initiated mode for sc7280. > > This change depends on external project changes [1] & [2] which are > under review/discussion to add PSCI os-initiated support in Arm Trusted > Firmware. > > I can update here once the dependency are in and change is ready to > merge. > > [1] https://review.trustedfirmware.org/q/topic:psci-osi > [2] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/19487 > [3] https://www.trustedfirmware.org/docs/PSCI-OS-initiated.pdf > [4] https://www.trustedfirmware.org/meetings/tf-a-technical-forum > > Maulik Shah (3): > cpuidle: dt_idle_genpd: Add helper function to remove genpd topology > cpuidle: psci: Move enabling OSI mode after power domains creation > arm64: dts: qcom: sc7280: Add power-domains for cpuidle states > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 98 ++++++++++++++++++++------- > drivers/cpuidle/cpuidle-psci-domain.c | 39 ++++------- > drivers/cpuidle/dt_idle_genpd.c | 24 +++++++ > drivers/cpuidle/dt_idle_genpd.h | 7 ++ > 4 files changed, 117 insertions(+), 51 deletions(-) > Looks like this series has not been queued up yet. Note that patch1 and patch2 are needed for stable kernels too. Moreover, patch3 (Qcom DTS change) is dependent on patch 1 and patch2. Therefore I suggest Bjorn to pick this up via the Qcom SoC tree. Bjorn, is that okay for you? Kind regards Uffe