Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25884477rwd; Mon, 3 Jul 2023 02:20:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7+rx7Eg5DzNvZcMeDWKO/bhv0N0SA3nxcYHJhPG4IQQHjTBfEILEoQkDv+1OUWrb4K7VV X-Received: by 2002:a05:6a00:1742:b0:66a:5466:25c6 with SMTP id j2-20020a056a00174200b0066a546625c6mr9544322pfc.18.1688376010883; Mon, 03 Jul 2023 02:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688376010; cv=none; d=google.com; s=arc-20160816; b=g0jWJJ6pI4kW4IY9bydm94BzIeMKJBf0Ag0hranClRRUzPgGLC5jagW+7YQ6NniIht FWu9Fyr6YsqyPVFPYOFEDkPZnsxs8WAEKlcDoITU5IWMj3/c4tN/OJ5DHyGhg0F01h2s eVGrepb90kgSm+JycvrbTd89GUcjuSh0TAJ3su93B8j0tCUA3T1NtVslK0U3eUhukc9z YVsmBPET/MbkzdXrqcl2lTskM7hi9m/nl1I/YmHgzVmmcfhY/axyXPBZvBjwLRTvsxPv rHR7SvJ3A82Ph1M1Vdkpg4fIlGwBCQ+dceSoqGf3A6TmLhQPl88oBFzjmwLhJ0tSuTak c92g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ao5B1L7Z9WlFHmxqd829UX/dmx+1R8Pmn86bPrgwTB4=; fh=LpinFkl5kKTbbMPYArSkYjFypWcrlvdKqQwacKeE/+A=; b=bk/P+jDZCFbCokd/ZD9GKAsFS3SG2nw72WKW+KeHCrru7WKyO198grbwoeh+ntGMNt Sv+ILVV0OVB1PQ2fiuL3xCb2vo6zQQOqvjZKfWjuYvLSM5gtJOgBxUa6t/0TaqlaicVt xkR+wixI59dDo7a1SiyJ6IoH+8lzTFPf85zcyVovcJG7hqsVFKlhCL/6kJmSlYrp7Umk zD2S33QKdRlq8Jwpd1uDaXeD4MRtr7EfvYlo1tW/dwSURo0icom0OdehPyn7uAhYaVwU z4PpgNI579/QNrCMMFdyfEhMvoa7hZgmEqtH11WTKcy1QcYWiOEzIB/DIvEW7Ae5Kcum aTAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GQZhSIZZ; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p23-20020a056a000a1700b0067b77e7f473si13578947pfh.232.2023.07.03.02.19.56; Mon, 03 Jul 2023 02:20:10 -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=@quicinc.com header.s=qcppdkim1 header.b=GQZhSIZZ; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjGCI4h (ORCPT + 99 others); Mon, 3 Jul 2023 04:56:37 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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(-) -- 2.17.1