From patchwork Mon Jul 3 08:55:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Shah X-Patchwork-Id: 13299740 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 CD2F2EB64DD for ; Mon, 3 Jul 2023 08:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjGCI4g (ORCPT ); Mon, 3 Jul 2023 04:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjGCI4g (ORCPT ); Mon, 3 Jul 2023 04:56:36 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E4A93; Mon, 3 Jul 2023 01:56:31 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3638OmbI025624; Mon, 3 Jul 2023 08:56:23 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=ao5B1L7Z9WlFHmxqd829UX/dmx+1R8Pmn86bPrgwTB4=; b=GQZhSIZZrcP/98VPlV7L+ezgDtkarK0+D753sK8dDUs4A9ock46C8avyraBcN7rdbrS6 T2WJh1jzcHpyP9zbl8JDPuwSjueKTFmBe9yxv3czmFhafadRH4xpx/V0HRnaz5+uSymz BA0APs4gpFvKG68HQuKzXkQVx+EkatHbf4gAXQb9GYnwo2WbTZbLYNSVxZAE8jwwR4N9 JkP9ax+0m9HLWN/O0Tsfd2RBAziAtuEKUXaG6mDPxEurXYUdlHH3EfVH+tdPibKuqsFc zhSq98GYpis0vHUMaTMAInEIVsj4RhtcXgIh2x9MYUSql0EOV7LFceBdQH4ojxWX7Skq 6A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rjbrd3k27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 08:56:22 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3638uLi9025264 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 Jul 2023 08:56:21 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.1118.7; Mon, 3 Jul 2023 01:56:16 -0700 From: Maulik Shah To: , , , , , , CC: , , , , , , , Maulik Shah Subject: [RESEND v4 0/3] Use PSCI OS initiated mode for sc7280 Date: Mon, 3 Jul 2023 14:25:52 +0530 Message-ID: <20230703085555.30285-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-GUID: WL26umEOSKvq9E1PSy62wAu9hHz7okRv X-Proofpoint-ORIG-GUID: WL26umEOSKvq9E1PSy62wAu9hHz7okRv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-03_06,2023-06-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 mlxlogscore=684 lowpriorityscore=0 phishscore=0 clxscore=1011 bulkscore=0 impostorscore=0 adultscore=0 priorityscore=1501 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307030081 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This is resend of v4 with patch1 and patch2 Cced to stable kernel. 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(-)