From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796304632; b=VTQXosuiFH9LvYANZZIb0t+rHMUbdOpkGPFR117IQ0/nWqGm7UABhRTyPYjtrMSn6tDp 897LMDt1sfyLs00eJ8bTP3uw2Gm5Mjm1l0+xPpLo3hbWa++SuG2gqFpiUFWWGc1+h3NEL aOM7vvj4tiJ18D3pDCCKh6jIq6EUPENp6Y9jTn6MkH4RQTlEUKYei/EKGOcHTcj8y+8El IYNYxxDh6YY2zx3mZ8bw7r0EJvi9YB1qgMMrvrO3B7FQ9qVg8W9kW+vtekziBT5CqYnCV kV25YjTSqlmaOUanijtxmzfLeZqCBg9OlqiRXBZi06+iMAc/jzKeHrxV+LOQU1KBULA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796304632; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Authority-Analysis:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=46VO3PBRkd+hiYt8qKeuHwbphsWhSZ9P3YGrgB+RMAApEVmbdga21Tw2XJVcC1Sjrsg8 kXjPWrGr8ebNgHEYah8wIn/5S2+bFFN3tNAyeRvMzekPWA58zjkhnR2a9GR4+1Ty0N74F BM0lPw0b4p76b8ZAV08u9VHbOtQigalEKsBDptuu2VvopABkT0xTcPL4tXbG/olxqAm4O Gvub552+I99bN5ZHXwCPMLo7RuaSDjEWSDRUH4fb0LGk0gqtd10aQmXcrxPHVPjy1uOHG eE/WGUTO1J5NFR8O6y+OLpE0yVpQMLH232Qu+LfKQFet0UOdw0L8CvzMz3bEcSYA8fw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Q2OqgnaA; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KVV0bJpN; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1770606A32F for ; Thu, 3 Dec 2026 13:30:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1770606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Q2OqgnaA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KVV0bJpN Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3DGGOO4014782 for ; Thu, 3 Dec 2026 13:30:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=Q2OqgnaAp5Q2PFiX Inbw87V8WQrAvZUFH0azsawxEsWh8L0gRVCSAaxI/ZGsJYbymUHZONeyAOvZXq/X 4vl3rS+lFmuvbmvOuOjWh7yvq6s56m9gODkM2WBrbCQukcZUqa4JQG1BxTaz8gJh C5ZhOklsvejPg7Jhe3sKDgYI8dmQC5zpLu9Ru7RBOYkJ8I/SGPSktJpyEXyA8TFe RracT3wZoCUAdAU0y5fjWYEYpkUIsj/Zz9cI04Jwq6mGWmmahXpPuq1TEzJk/56E 2zPG1VsRB6TYmFNsOYSlk4dNfjIYBHBE2HuWWNOhg5wie5hS2lVIkydkINknj5Jd xxs7mQ== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb4c99f2n-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 13:30:31 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-55b9c41fc3cso37327041cf.0 for ; Thu, 03 Dec 2026 05:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796304630; x=1796909430; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=KVV0bJpN7cavah7qysewAJmV+M8EvC+UPkvMvE966YCJE/2bGUff2sjoLUrN+xfVd9 4uDWs53pnA01WNDq3GSiyS/Lws1UFpGqjCkOgAmUdA+pcJ1w6U4inhI9DT3z0QEyABH4 LA7rWUY2zkinZy+PIEUfRjsnVCaCJpXpZsJgZmD+SxdLTwP7htHjrlkHWanEAbgMpp3z 0D0/DddTWsVSCvURxPnhukUHF6MSKcJEJAlcSjMRIilgfE0hT5LWfotvmRtYvTEeWf94 7RvaCJ7XCRDN5Ovw2dHpHktvX9ff7jRM2d7v7jEZzAd99z/v1TemNhV1stAABIY1qlPB CmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796304630; x=1796909430; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=h1N/klda47CLfyHvFNol9pYPnQjiqZ0zpNgGOazdAle1CuM56o/21saxvmlT6ZLDcV /3/NkgwLM7dG/OCKMAE01747zqXRW/lOYlRyl3t8J8mGQxehVzlJIlLy2Y0JaZTgWPvt lHPosvwQWQkd9f9IHKIpjnW4h88wIIn3v3gs+obkcQyLGIIv1+StOiSUChnLGafJnr41 ALhYI2iCn7EfjySu2YcJax8yn/GA6mytddcthfC8xGjBesC0y9uOWwE7O5cjaaOJT/7Z +yFRm9eEEYfivgRoPzC65M/qV/NBCUGrFg5/RnP69q0cNdM9FNbWZp5hCSo3msmuVnaj nJIA== X-Forwarded-Encrypted: i=1; AL+hErHXiCKW2Rda/avi4Lnz3NdOI7+mUudzx5ago+s3ZpoCSKQwxe3AaFr3pNHpuqDBhiDPGvxitaD8KbVAyQM=@vger.kernel.org X-Gm-Message-State: APuU4Z8ulLCDlzZPIvCNcDwWRMXJcWQoq7NvYRmlgVthrp7Hgmz49rw4 ndTkxxaTEmjm1U5KIRF9JwcJExXCRj823GsqVCZoIPLax7oN6sD9GYDuVJKwMW4hpUzdcjM4g5a C1W+FRsDcYm4VV+6tLmZ8BRoGGWuEYSrKRUGxGftBo/zXSCdh6eL8g/MEkNmwdiC1F3k= X-Gm-Gg: AZFdTZeCEIUXqXqdB7o4z1Zxq1LbJyGe6/EQXEqws9L65I14C8p3+H9dWXjy2xwAi6P OLMglIdlqx3adC6acVKiWgtSwSw9IJIMfMROHpB7ZXnJlilxfoymIxe/8ojyoWaUKLTGHiwni6v 7XpMZ0dvjMg2DcCS3C5FF40AL5rmBYGr/krRub99g97OHkyWybWfS9Y4zUpyQwiKh5n3Z3Mguxv HRxLFESmOly+gWxZgPZpiPJVpDFX1u5HWXbiNcGD0p9y/3hSuLPWbSZfv69saKLrj+yKbeOL1Hg BDdVw3Y2sp6G+/PBRZQZBNi5ZCrLXR86pKhg0gEH3UCQxhP/ykoPp6QmvmYVVPfeXIdMyyC0iLy 3WDgRHIrbM44wajM/oIP3FLtDNRKJwI4iVelOWMwRDM9Xqke6a2MP9RwPpphQAUgy6VE1nQ== X-Received: by 2002:a05:622a:6a44:b0:54a:a0ae:795b with SMTP id d75a77b69052e-55e2a9c62fbmr25319611cf.3.1796304629637; Thu, 03 Dec 2026 05:30:29 -0800 (PST) X-Received: by 2002:a05:622a:6a44:b0:54a:a0ae:795b with SMTP id d75a77b69052e-55e2a9c62fbmr25318901cf.3.1796304628952; Thu, 03 Dec 2026 05:30:28 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6bcab248dd5sm356758a12.8.2026.12.03.05.30.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 05:30:28 -0800 (PST) Message-ID: <7a89c469-c0c2-4331-bf6d-bea989793a05@oss.qualcomm.com> Date: Thu, 3 Dec 2026 14:30:21 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v27 06/10] power: reset: Add psci-reboot-mode driver To: Shivendra Pratap , Lorenzo Pieralisi , Arnd Bergmann , Bjorn Andersson , Sebastian Reichel , Rob Herring , Souvik Chakravarty , Krzysztof Kozlowski , Matthias Brugger , Mark Rutland , Conor Dooley , Konrad Dybcio , John Stultz , Moritz Fischer , "Rafael J. Wysocki" , Daniel Lezcano , Christian Loehle , Lee Jones , Ulf Hansson , Pavan Kondeti , Abel Vesa , Bartosz Golaszewski , Sudeep Holla , Andy Yan Cc: Florian Fainelli , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Andre Draszik , Greg Kroah-Hartman , Kathiravan Thirumoorthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Srinivas Kandagatla , Ulf Hansson , Bartosz Golaszewski References: <20261029-arm-psci-system_reset2-vendor-reboots-v27-0-fa4b3ff1359b@oss.qualcomm.com> <20261029-arm-psci-system_reset2-vendor-reboots-v27-6-fa4b3ff1359b@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261029-arm-psci-system_reset2-vendor-reboots-v27-6-fa4b3ff1359b@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=HOVWhYtv c=1 sm=1 tr=0 ts=6b116ef7 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=7MS9Kjim2gai6s9ofkIA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-ORIG-GUID: zg16ii5ETcFKEOJ7VnoIyQ6p1uCZdmNm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA1MyBTYWx0ZWRfX3Qw5Ruu6GXcf CJlvi422ePdc6IPDQc9t9mqHuNkHBqr1spJE8lbbkH5eT62sd86sYDwY5rm0YO64HYV89/IJEol BSmL5ABMbIfDNy/NkSHF2bgTz3dFbee2PfFU9DZYrTI8wUWAccARwYoHDFShdq2UuBr7/KYaMIe U/uCPSm0iy3VKwOlfOO1mVZrCk2oxBI5mOKRRE4KMUOTw2uxf1SzA04/6F+XVVwJoT5D3srdNzx 45S3xalqEfn1rFam/FZWDKs1OiffJSa9qr9e/mYQAoIPVMbpa8S8DNZ6jC8nNMmzgIuI9m6a6i+ hsRp/iDsxEhZYSap8EgVO0YwqPTYL4NGErm+nhkIHo5w6koDt722k1lMvy7EW50MustJryLkWHd HWKsXC0T/kNedbDMq2IURUAoLA0o0u5OOYqBon1VZhUrs0xEibvZFTdZLEazfXaNcXNuT280Kw+ e2QhiyRdKoVV2UgAJVQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA1MyBTYWx0ZWRfX5I2ICAYRSzM6 Li16p6jiNP2nkKPhvrZnLol7ILFZf9IHJA58Byrc17QHbPmvR1w0Omd5806Jobv6oKU+fGR+k1J gea5Coe92J8qa2GHgbc6+sREHXsnJdY= X-Proofpoint-GUID: zg16ii5ETcFKEOJ7VnoIyQ6p1uCZdmNm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_03,2026-12-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 adultscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030053 On 10/29/26 10:01 AM, Shivendra Pratap wrote: > PSCI supports different types of resets like SYSTEM_RESET, SYSTEM_RESET2 > ARCH WARM reset and SYSTEM_RESET2 vendor-specific resets. Currently > there is no common driver that handles all supported psci resets at one > place. Additionally, there is no common mechanism to issue the supported > psci resets from userspace. > > Add psci-reboot-mode as an auxiliary device created by the psci-devices > driver. Define two types of PSCI resets, predefined-resets and > vendor-specific resets. Predefined-resets are defined by psci driver > and vendor-specific resets are defined by SoC vendors, under the > psci:reboot-mode node of SoC device tree. > > Register the driver with the reboot-mode framework to interface these > resets to userspace. When userspace initiates a supported command, pass > the reset arguments to the PSCI driver to enable command-based reset. > > This change allows userspace to issue supported PSCI reset commands > using the standard reboot system calls while enabling SoC vendors to > define their specific resets for PSCI. > > Suggested-by: Ulf Hansson > Suggested-by: Lee Jones > Suggested-by: Bartosz Golaszewski > Reviewed-by: Bartosz Golaszewski > Signed-off-by: Shivendra Pratap > --- Tested-by: Konrad Dybcio # Glymur Zenbook A16 Konrad