From patchwork Thu Mar 30 08:42:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Shah X-Patchwork-Id: 668669 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 E8326C77B62 for ; Thu, 30 Mar 2023 08:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbjC3Iuf (ORCPT ); Thu, 30 Mar 2023 04:50:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbjC3IuT (ORCPT ); Thu, 30 Mar 2023 04:50:19 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E0A17AB2; Thu, 30 Mar 2023 01:50:18 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32U2pZdi019171; Thu, 30 Mar 2023 08:43:04 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=J7+5ct0VEHzZzbNzyV4O0cs7IaRpfqzKPCl/3I6M24s=; b=OxttD0JKwOOP3iSinTDRk/9uR6xnbrCZfbVe4A/S7S/4mxo69Ih8O7IXFZ3wRYyYlSEc KN7izRJfgi5UGemtyCKiyjmSyHdBmtLqxuvd5a2z5AoDuqcqxCUBciDkvVp/wgpAY5d7 sPgRsZT8akEE2tAXo3JeGGCmH30OBPTsCg3pX9g4NejePveT5Au6ulP2c0BiPGU708cn 9il4vaCGXtim0VHYZKQJP3+WEnc8YAYL2Yk1dpeMmXKeVyCP6HKKlzwMb8hcXh4sBgiw mC334bnk1HVpmoQV3wtYIDY56plPkR0xE//CNVgtSAKTcjTwzf5SvvgdQy7InLoQk5lK eQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pn1a9s0qy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 08:43:04 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32U8h3Tl030280 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 08:43:03 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, 30 Mar 2023 01:42:59 -0700 From: Maulik Shah To: , , , , CC: , , , , , , , Maulik Shah Subject: [PATCH v2 0/2] Use PSCI OS initiated mode for sc7280 Date: Thu, 30 Mar 2023 14:12:48 +0530 Message-ID: <20230330084250.32600-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: Fu3WaiTdnNF-h1HcNXVAPhCslXb_nesu X-Proofpoint-GUID: Fu3WaiTdnNF-h1HcNXVAPhCslXb_nesu 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-03-30_04,2023-03-30_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 malwarescore=0 mlxlogscore=900 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 impostorscore=0 clxscore=1011 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303300069 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 (2): 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 | 29 ++------ 2 files changed, 80 insertions(+), 47 deletions(-)