From patchwork Fri Apr 14 05:54:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Shah X-Patchwork-Id: 13210974 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F9E9C77B6E for ; Fri, 14 Apr 2023 05:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbjDNFzf (ORCPT ); Fri, 14 Apr 2023 01:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjDNFze (ORCPT ); Fri, 14 Apr 2023 01:55:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E423E2729; Thu, 13 Apr 2023 22:55:32 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33E41Uxw023924; Fri, 14 Apr 2023 05:55:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=3Wh0prCU1ejq7nrX9crPczw2njNZBh3BqT7rNeT2G4U=; b=BUlAbopZAyEcpNdiEk94IZpavyxAe7WBjB/seCVdoy07TtjOPmP4EExYWRs4drjgCvHL O9YqSE4R7zdPN0jQ+0bfmeL4rRiILzOE8Eit10Uf0f8ouuFdOn7cnGnfshawQCsRL1Kr wDOYc8acPf/B8GkOYvw1EVX027IhAfMsu+Rw889v/Dx+44mnwdFckjykVQs54/tnC7eC z4rD4N9EqLfRbYeqU2b4IgUJ+j6ksKu6ot0OwZ+a7bQ38emxAcl9uZ48Apo2RjlCpPaU hX/ZY+vvRZxUYKO+hzgv4y+Oss6JXgD+5QTCPiuPIhy22Xww/c6hL4cO4jG1DFxIbAzJ Jw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pxbx5tmwk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 05:55:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33E5tHPt024527 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 05:55:17 GMT Received: from hu-mkshah-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 13 Apr 2023 22:55:13 -0700 From: Maulik Shah To: , , , , CC: , , , , , , , Maulik Shah Subject: [PATCH v3 0/3] Use PSCI OS initiated mode for sc7280 Date: Fri, 14 Apr 2023 11:24:59 +0530 Message-ID: <20230414055502.23920-1-quic_mkshah@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: jHrnU84jJHbvG2hrkpNv43WBglTA1OvF X-Proofpoint-GUID: jHrnU84jJHbvG2hrkpNv43WBglTA1OvF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-14_02,2023-04-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=836 malwarescore=0 bulkscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1011 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304140053 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 | 37 ++++------ drivers/cpuidle/dt_idle_genpd.c | 24 +++++++ drivers/cpuidle/dt_idle_genpd.h | 7 ++ 4 files changed, 116 insertions(+), 50 deletions(-)