Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1827907rwb; Wed, 26 Jul 2023 20:28:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGpTLm7dUszSWkN4EeCbKf51wP0SMONREbs8jW6871mSPL3kEnIIsQGAVQ/gIlSYXbz61J4 X-Received: by 2002:a05:620a:3915:b0:767:954:a752 with SMTP id qr21-20020a05620a391500b007670954a752mr4181662qkn.73.1690428488075; Wed, 26 Jul 2023 20:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690428488; cv=none; d=google.com; s=arc-20160816; b=UtCoExHZuh0lqSuz3SVmlvpPRLOfGq19xVx6PDayRY74A+GWOEu+MhBCXgkbmfh4/S Z1KxDiAgm/R6N9Ui+fodNKyC81qFz3XZvERzxSe4KmpWq7747+COREQ7TxKylmwHQ/Kb 8ags05/j+q5MYHJHqxfLBp59tGngRW0zaO01fWwwg/vN9VIec4fP2O+y3c4YRWhAg241 Vu4iTDSzMuupGoDYqfe40zuuKWuyGKfVzhjnODOxfmKNTq5y1plE4O7IGVU1xI7lqjPw PFsNnq6PJiuJGbNsS7uj6+QFzZmLZXohg7vGVxSuEJBLOmItAUHGufwxzzBE9HFEM7yD EdpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j4aARu0MkArEU5RCLOwlPl8+9JwP9fo0BEv/2Jdj1/g=; fh=EYF9gw+rie7MjsQ4P2rB2Dz5D3KWJaku2NEk4FX7Eg4=; b=l2LR0c9OrzZmKbY0OLmEZQ+0JMSc229jvYMYiUqQOZ0tAsL7qWdMmuXc8KaTCmbYMh vTgCiI26SU9BH2Pt57CoWzk86exUNBVgwEUedxWR5itryB8MmApZVxwMDfSr16bAORHI AolHIQ8AL4t49VYyUAE+aaL9lfnXaWTwoXQ8mX79cj1cHur96YuS1Z6TTscw/EGL9KEp oiFA8/VMngklIFlbp1RlQKqAfj7Gccz+jY4I4l14EN5sWaHj+7BuHQNV0pBjKMgRz3aZ U+ePfJxjumcfcDyDsJG+8sAd/oF93fkQmjVWVb+uGD6tGsZ3EdHYeLvcc72TWLQF0ugu t2CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mSaSXrcp; 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 l13-20020a17090add8d00b002563fbb8a85si509130pjv.111.2023.07.26.20.27.55; Wed, 26 Jul 2023 20:28:08 -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=mSaSXrcp; 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 S231320AbjG0DBC (ORCPT + 99 others); Wed, 26 Jul 2023 23:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjG0DBA (ORCPT ); Wed, 26 Jul 2023 23:01:00 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0F741BCB; Wed, 26 Jul 2023 20:00:59 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36R2JCa1009162; Thu, 27 Jul 2023 03:00:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=j4aARu0MkArEU5RCLOwlPl8+9JwP9fo0BEv/2Jdj1/g=; b=mSaSXrcpOO7LNktBZnxbNwhcmsY7qcvu8dX6CejE5OEuSp1vdXarOu96D2h1Rs20pJuP MbS3MsZ4smx3LLAn7O6UjZ7bJL5URvw0bKg5+h4VquRp1YNlEE8LGMozCzAcwr5lh9pm 3dwmS4asu5+Oxr7biROh75QS0DB9TXULNnrtlnFPU/rjJG3sN1VW5jRmV2HaFhSAFZCh WRXQuy8v0b6oyYd4CyWDWpH6BsWxoz3QGXc8vqvTl5S/ezwRa9HetgichqQJAqEIJcyq ekpzEfDrDyYhguMgU4+M1ABUOu7oEC5WjhatUPmIqM9+5QIxFndThjLgEMW9Q3UoZB2g HQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s336t1j6h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 03:00:49 +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 36R30mM4013784 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 03:00:48 GMT Received: from hu-pkondeti-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.30; Wed, 26 Jul 2023 20:00:43 -0700 Date: Thu, 27 Jul 2023 08:30:39 +0530 From: Pavan Kondeti To: Elliot Berman CC: Pavan Kondeti , Mark Rutland , Lorenzo Pieralisi , "Sebastian Reichel" , Krzysztof Kozlowski , Conor Dooley , "Rob Herring" , , , , , , , Satya Durga Srinivasu Prabhala , Melody Olvera , "Prasad Sodagudi" Subject: Re: [RFC PATCH 4/4] power: reset: Implement a PSCI SYSTEM_RESET2 reboot-mode driver Message-ID: References: <20230724223057.1208122-1-quic_eberman@quicinc.com> <20230724223057.1208122-5-quic_eberman@quicinc.com> <46744a2e-139c-4e4e-89b2-66346f64c3f2@quicinc.com> <6a0ea31d-814b-6745-d301-c1f6dadf9718@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <6a0ea31d-814b-6745-d301-c1f6dadf9718@quicinc.com> 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: 5uIHP9ddzcxBs_J2QaGvp2NLe92urYsY X-Proofpoint-GUID: 5uIHP9ddzcxBs_J2QaGvp2NLe92urYsY 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-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 clxscore=1015 mlxlogscore=794 adultscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270026 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 On Wed, Jul 26, 2023 at 10:19:01AM -0700, Elliot Berman wrote: > > > On 7/26/2023 3:41 AM, Pavan Kondeti wrote: > > On Mon, Jul 24, 2023 at 03:30:54PM -0700, Elliot Berman wrote: > > > PSCI implements a restart notifier for architectural defined resets. > > > The SYSTEM_RESET2 allows vendor firmware to define additional reset > > > types which could be mapped to the reboot reason. > > > > > > Implement a driver to wire the reboot-mode framework to make vendor > > > SYSTEM_RESET2 calls on reboot. > > > > > > Signed-off-by: Elliot Berman > > > > Do we need to skip the PSCI call from the existing PSCI restart notifier > > which gets called after your newly introduced callback from reboot mode > > notifier? > > > > No need, the vendor SYSTEM_RESET2 call shouldn't return if the call worked. > From the documentation of restart handlers, restarting from reboot notifiers may not be correct. Since you hooked it up with reboot-mode driver framework, you may restart the system much early before the actual machine restart kicks in. Pls check. Thanks, Pavan