Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1795824rwd; Tue, 13 Jun 2023 14:30:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VwIpwWp7z3Rp9OhlD76hN5RFJTspIa635hOl9jmpar+JVH0GOxbUG6ggVbvHNdEXBLS7s X-Received: by 2002:a17:906:7945:b0:978:8e58:e1b9 with SMTP id l5-20020a170906794500b009788e58e1b9mr15885653ejo.74.1686691802488; Tue, 13 Jun 2023 14:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686691802; cv=none; d=google.com; s=arc-20160816; b=AR+yohbVKPYwstj/NSQ/N6h9XP3FoCJ1ffS8nafNY6YeipK25VBW6+7YUEUmtwwo0T /wXAXlgPcRofZm8IgG1F/H9IJjrerEvnM5+gL8kVgEyL4nKGJFW2bfoHznsSR19KtL5q UvwwAAOJNeYXRzccXTeqZ4S23VlhZSBeB0PRf6zHehVFfbWoo9eLN4nZhJakhDxPa7D7 CgplhaUE/42zsJwzas48uN43VnfjMDJMR7T1t48GEBqhV/NFzTyXRHa3hTU8lumBf1t7 xud27+0jG90jLGB33nJkoA7A1u5J5DQKgH4DSKklHMKEdq4y6TgOmA0JSOc/hQxw7Ha1 Sa0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7vW4zG8JSCB2WNlc2fX3cDVKDrFJjDxEa3RoWZwm5Ek=; b=wxW6lMs84Y3nUMxW/vaJN+tkkEFn9FbVmzCnW6qRtbBvzcXa5w5kIjD21CP4CY41FS ncX+KcMGrOQ+GO5ozqCZxg/YZAgWO+zrfD0LWE2NxyDNbWBEM5so3t5t6eVuERLeJAKj 22YxnKe0n9wlHDz8k8XWaD9EtSODW5UAxa6oYl2CNgmsV8uGoyeh16u9VlleM69+8Sag SpoE8NgHjZgsrMetWwFmtiw4yaeiJrOoFrA6XnJnnVyvBg/jfbANocRlZ6Q4BNYx5ccP O2Xn/jv75vLLDwTIJx38BwePFcEW3hmz2QzyGviLTWzouxrkoyYeczZ57D2kHzRBowTJ GNCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hphMxkdf; 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 j3-20020a170906278300b0096f6faaaa93si7123945ejc.223.2023.06.13.14.29.36; Tue, 13 Jun 2023 14:30:02 -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=hphMxkdf; 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 S235428AbjFMUzT (ORCPT + 99 others); Tue, 13 Jun 2023 16:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240742AbjFMUzL (ORCPT ); Tue, 13 Jun 2023 16:55:11 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8F51701; Tue, 13 Jun 2023 13:55:09 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35DKk3NR007039; Tue, 13 Jun 2023 20:54:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=7vW4zG8JSCB2WNlc2fX3cDVKDrFJjDxEa3RoWZwm5Ek=; b=hphMxkdfnxuypI5EnqJEpbqDOHqBgCjzqVcnLEyxQINuIXUE7kTb34YyuWhe51Hdyvia Kjp2id8ticuhM2qPq0s6x/MnBVCkPriaTUZ7gBUQSXZMOnTWJluywLkmIR99SOareCEz /Oo+FQiQ9wdARGDPTs7Rpqaz0x1xJ0pR38HGdUC+1dGLS/W1/swP0q9RMqwfJkN16L85 MuAmTYp2ENY+alLcXSVpSPpzjge9nwJGUcVrzdMWMlHGgyaJDmHu1OhS/PKQ9wjaQ9XX WkDsI35dTCxMI5Se4ixCZgCdPlp5maVPF7iqBpY6m1iGahiGRKgy37FVwufcFb7GroJB HQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r6vx80bxt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Jun 2023 20:54:53 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35DKsqgm031570 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Jun 2023 20:54:52 GMT Received: from [10.71.108.253] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 13 Jun 2023 13:54:52 -0700 Message-ID: <4a679542-b48d-7e11-f33a-63535a5c68cb@quicinc.com> Date: Tue, 13 Jun 2023 13:54:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 1/3] dt: psci: Add arm,psci-sys-reset2-vendor-param property Content-Language: en-US To: Mark Rutland CC: Lorenzo Pieralisi , Sudeep Holla , , , , Trilok Soni , "Prasad Sodagudi (QUIC)" , , Melody Olvera References: <1583435129-31356-1-git-send-email-eberman@codeaurora.org> <1583435129-31356-2-git-send-email-eberman@codeaurora.org> <20200320120105.GA36658@C02TD0UTHF1T.local> From: Elliot Berman In-Reply-To: <20200320120105.GA36658@C02TD0UTHF1T.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: H1b4b_H2sBbsevGQ70Xal5AvNHzqRj9X X-Proofpoint-GUID: H1b4b_H2sBbsevGQ70Xal5AvNHzqRj9X X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_22,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 clxscore=1011 impostorscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130183 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Reviving this very old thread. In case folks don't have in their mailbox, here is archive link: https://lore.kernel.org/all/20200320120105.GA36658@C02TD0UTHF1T.local/ On 3/20/2020 5:01 AM, Mark Rutland wrote: > Hi Elliot, > > On Thu, Mar 05, 2020 at 11:05:27AM -0800, Elliot Berman wrote: >> Some implementors of PSCI may wish to use a different reset type than >> SYSTEM_WARM_RESET. For instance, Qualcomm SoCs support an alternate >> reset_type which may be used in more warm reboot scenarios than >> SYSTEM_WARM_RESET permits (e.g. to reboot into recovery mode). > > To be honest, I'm still confused by this series, and I think that these > patches indicate a larger problem that we cannot solve generally (e.g. > on other platofrms and/or with ACPI). > > I think the underlying issue is whether the semantics for: > > a) Linux's RESET_WARM and RESET_SOFT > b) PSCI's SYSTEM_RESET2 SYSTEM_WARM_RESET > > ... actually align in practice, which this series suggests is not the > case. > > If those don't align, then I think that commit: > > 4302e381a870aafb ("firmware/psci: add support for SYSTEM_RESET2") > > ... is not actually reliable, and not something we can support by > default, and we should rethink the code introduce in that commit. > > If (a) and (b) are supposed to align, and the behaviour on your platform > is an erratum, then I think we should treat it as such rather than > adding a property that is open to abuse. > > Thoughts? > I think it's ok for (a) and (b) to align (that invalidates this series). PSCI SYSTEM_RESET2 supports vendor-specific reset types and the PSCI driver doesn't have any way for these vendor-specific resets to happen. Would a better way be to export a psci_system_reset2 function? I can implement a reboot-mode driver for PSCI system_reset2 for DT-based platforms. Thanks, Elliot > Thanks, > Mark. > >> >> Reviewed-by: Sudeep Holla >> Signed-off-by: Elliot Berman >> --- >> Documentation/devicetree/bindings/arm/psci.yaml | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml >> index 8ef8542..1a9d2dd 100644 >> --- a/Documentation/devicetree/bindings/arm/psci.yaml >> +++ b/Documentation/devicetree/bindings/arm/psci.yaml >> @@ -102,6 +102,13 @@ properties: >> [1] Kernel documentation - ARM idle states bindings >> Documentation/devicetree/bindings/arm/idle-states.txt >> >> + arm,psci-sys-reset2-vendor-param: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: | >> + Vendor-specific reset type parameter to use for SYSTEM_RESET2 during >> + a warm or soft reboot. If no value is provided, then architectural >> + reset type SYSTEM_WARM_RESET is used. >> + >> "#power-domain-cells": >> description: >> The number of cells in a PM domain specifier as per binding in [3]. >> -- >> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, >> a Linux Foundation Collaborative Project > > From mboxrd@z Thu Jan 1 00:00:00 1970 > Return-Path: > X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on > aws-us-west-2-korg-lkml-1.web.codeaurora.org > X-Spam-Level: > X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, > DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, > SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no > version=3.4.0 > Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) > by smtp.lore.kernel.org (Postfix) with ESMTP id 4F3C9C43333 > for ; Fri, 20 Mar 2020 12:01:17 +0000 (UTC) > Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) > (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (No client certificate requested) > by mail.kernel.org (Postfix) with ESMTPS id 1C65120732 > for ; Fri, 20 Mar 2020 12:01:16 +0000 (UTC) > Authentication-Results: mail.kernel.org; > dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AoWzGqG2" > DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C65120732 > Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com > Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org > DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; > d=lists.infradead.org; s=bombadil.20170209; h=Sender: > Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: > List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: > Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: > Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: > List-Owner; bh=15BYqh1L1ALv71IjF7NXoGOSeeS0sbsBf/ahe6hUVYY=; b=AoWzGqG2lL+PnT > eHgf22G62sLTs4kKNimymlbuMng5lx29kBuft3E15X+B1hWZr4smk8/XlIARAMD2tVef89z6wBHTq > Uj3FBiZzghCEKhiW+yJA2h/DxfBmBWBDmS2iPBQlehFOpftLMApK6uSGvHKbh4CjuYVS1FFjzli2g > 10leZnncASBmeyiZl/17d3H286+dalis6nDW6GfOYMzg/zhlZJi630/CPEsmlt/4TkIr6SQYPsfpI > DtjiDGeQYCZEqNvtu22etrtCleRfqtsoLyLYBSD1zn2haDJTzhhDQgoZ8+8xr2dzNR9lnhfONmyHC > 8Q65eWvNSwTvJlb55XxQ==; > Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) > by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) > id 1jFGKy-0004HY-Gg; Fri, 20 Mar 2020 12:01:16 +0000 > Received: from foss.arm.com ([217.140.110.172]) > by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) > id 1jFGKt-0004Gl-QZ > for linux-arm-kernel@lists.infradead.org; Fri, 20 Mar 2020 12:01:14 +0000 > Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) > by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7AA5D31B; > Fri, 20 Mar 2020 05:01:10 -0700 (PDT) > Received: from C02TD0UTHF1T.local (usa-sjc-imap-foss1.foss.arm.com > [10.121.207.14]) > by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E89A3F85E; > Fri, 20 Mar 2020 05:01:07 -0700 (PDT) > Date: Fri, 20 Mar 2020 12:01:05 +0000 > From: Mark Rutland > To: Elliot Berman > Subject: Re: [PATCH v3 1/3] dt: psci: Add arm,psci-sys-reset2-vendor-param > property > Message-ID: <20200320120105.GA36658@C02TD0UTHF1T.local> > References: <1583435129-31356-1-git-send-email-eberman@codeaurora.org> > <1583435129-31356-2-git-send-email-eberman@codeaurora.org> > MIME-Version: 1.0 > Content-Disposition: inline > In-Reply-To: <1583435129-31356-2-git-send-email-eberman@codeaurora.org> > X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 > X-CRM114-CacheID: sfid-20200320_050112_965539_E60DC8A3 > X-CRM114-Status: GOOD ( 19.35 ) > X-BeenThere: linux-arm-kernel@lists.infradead.org > X-Mailman-Version: 2.1.29 > Precedence: list > List-Id: > List-Unsubscribe: , > > List-Archive: > List-Post: > List-Help: > List-Subscribe: , > > Cc: Trilok Soni , > Lorenzo Pieralisi , > David Collins , linux-arm-msm@vger.kernel.org, > linux-kernel@vger.kernel.org, Bjorn Andersson , > Sudeep Holla , Prasad Sodagudi , > linux-arm-kernel@lists.infradead.org > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: 7bit > Sender: "linux-arm-kernel" > Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org > > Hi Elliot, > > On Thu, Mar 05, 2020 at 11:05:27AM -0800, Elliot Berman wrote: >> Some implementors of PSCI may wish to use a different reset type than >> SYSTEM_WARM_RESET. For instance, Qualcomm SoCs support an alternate >> reset_type which may be used in more warm reboot scenarios than >> SYSTEM_WARM_RESET permits (e.g. to reboot into recovery mode). > > To be honest, I'm still confused by this series, and I think that these > patches indicate a larger problem that we cannot solve generally (e.g. > on other platofrms and/or with ACPI). > > I think the underlying issue is whether the semantics for: > > a) Linux's RESET_WARM and RESET_SOFT > b) PSCI's SYSTEM_RESET2 SYSTEM_WARM_RESET > > ... actually align in practice, which this series suggests is not the > case. > > If those don't align, then I think that commit: > > 4302e381a870aafb ("firmware/psci: add support for SYSTEM_RESET2") > > ... is not actually reliable, and not something we can support by > default, and we should rethink the code introduce in that commit. > > If (a) and (b) are supposed to align, and the behaviour on your platform > is an erratum, then I think we should treat it as such rather than > adding a property that is open to abuse. > > Thoughts? > > Thanks, > Mark. > >> >> Reviewed-by: Sudeep Holla >> Signed-off-by: Elliot Berman >> --- >> Documentation/devicetree/bindings/arm/psci.yaml | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml >> index 8ef8542..1a9d2dd 100644 >> --- a/Documentation/devicetree/bindings/arm/psci.yaml >> +++ b/Documentation/devicetree/bindings/arm/psci.yaml >> @@ -102,6 +102,13 @@ properties: >> [1] Kernel documentation - ARM idle states bindings >> Documentation/devicetree/bindings/arm/idle-states.txt >> >> + arm,psci-sys-reset2-vendor-param: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: | >> + Vendor-specific reset type parameter to use for SYSTEM_RESET2 during >> + a warm or soft reboot. If no value is provided, then architectural >> + reset type SYSTEM_WARM_RESET is used. >> + >> "#power-domain-cells": >> description: >> The number of cells in a PM domain specifier as per binding in [3]. >> -- >> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, >> a Linux Foundation Collaborative Project > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >