From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AD1E2DEA86 for ; Mon, 6 Apr 2026 07:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775461008; cv=none; b=JQ5pcFkD9FPw8sY2TdjGmHJ+iOAE9+bLlqKz9aUoGKq+OcZL+ua7yQGcy/N9+x8jQ8u30MpoB5Ev9qcfgCykSSjv4PhLOmWnH70j2UCfnjwxcBwsN2O+V8YuZPbctpG3xvZGfeON+KwBmdXFT1l2zkdEYDtjJiYyjeKlJnloFSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775461008; c=relaxed/simple; bh=A5j6e3cqOg7yNX4hMaA5bMWHJ0RiNTfPfPFuKO7Imko=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s0K8plmAh5dIhdmQABmM2x/KLqpfY6QsCjX1PnASLnp9hqzrhz+P0DW6zy3RmstCTGH+OwyGHSjUCsmO803uoK0blWjeC1vBrEIqBSWRzQ7fget0lGvNJ+CwFmFOllWiacpFMEDCO84Lf1lS1ZueFFqOLx6k3+jGcl73bX8Hwvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=bCy6Qgz1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=F+KhFt3N; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="bCy6Qgz1"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="F+KhFt3N" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 635NQiZF1834153 for ; Mon, 6 Apr 2026 07:36:45 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= Og+gS/7LhEE28OGj4l+LQ9SM0DiaD4s8OHH46+FD40k=; b=bCy6Qgz1f4bT6KeV /3e+cNg3Ex/VZzvTHkZwmtrwr86SCLI70JbNkIkLzNQK3eAhBeBGvILLaNFblJu3 IO9df7W8NiplnRi8JajqTEMjaTXsPXUPIPALPHw87stS3FPn1R75hK7snY/EJFk5 n69r1nBKpAEwO8/WJ8fx5znQE1d71TmAzSIYmd/IO+Jkrvuu1zZu/n+6FBjLZIu7 vO+ikPgKkONqVfdCABY6fFJ8Zsjbs+in3trmOl3fnsXuU+OMrrAYRE533Tg4MVjP O/qZ1bN0nOVT+b1w1jDdzcuLIeO2BP1xtbjcBUAWPbvUNa4lZWM0E0Hq8MfrtVZa BaShMw== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4daux8cadj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 06 Apr 2026 07:36:45 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-35d9e67f6dcso8438630a91.1 for ; Mon, 06 Apr 2026 00:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775461005; x=1776065805; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=Og+gS/7LhEE28OGj4l+LQ9SM0DiaD4s8OHH46+FD40k=; b=F+KhFt3N6lKrB2Thmu2zID+PfnNjryK/BB1WNBFfJxoK85U79NZo71ZD/4ZS6+Ib2q G9uT5pyX38rTkevpSnycQYFATbGtzRCM6xgtyAs4ogzztHrU0e9BApzegH2FafKh7RJB lVPmmI+lSvZHrQ0l+YBhDo9qoyS3yq3QxpmrUCJJBX6m3mtKZshKRLzGF089hdnWiWg+ sW54A0uBClFyfA19GSZxYzfebxlcgAFamduuRh45SlkpJriWVZHcB7rg6etxNuZ5O0J2 wSf/kiFzzB/NdhP2ppRAFDxktS9f0K8bIwUCI86Ig2DLfFBnbad/EhVXb2lJtHpnWgSg jDKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775461005; x=1776065805; h=content-transfer-encoding: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; bh=Og+gS/7LhEE28OGj4l+LQ9SM0DiaD4s8OHH46+FD40k=; b=ptjFAky0Asv20YVY3PvrC9JR70lRDlCSn5IVO2stuL4Z4B9vi1oa9WvPuFpsbEo+a5 cjrsq4WuoOhjhR8rpoQztXvTe9bJqlO/dbrOkEQQ2EEsax5mG/cGROhST/6qbJIGJUAQ qpxzom5FDbpEzcoFYDo4VcuL6LNm5ryiQTOS2TuIKJ2+aMjYXyS+YA5Sfepd/6Mg9JQN YQKW22XMoChYvhzTJpwp/S4svvAxGPJlXnt+eWjKzbExPR34h+N2Q+P+ef2V6DlLQQIO jICJ0t9DCVYQz0+5fxPC6tNcTbP7ekzJ1BAB0F69nBLVmHJ3fhyssAMWWRzw0jTI++WG 8JZQ== X-Forwarded-Encrypted: i=1; AJvYcCVknrEMU5dLJy6CCIyto6jy7zWYFaaXWoH6QP/WdW7t11c/TKJC4ixHP5Cr1UtmBsYGnRHrxAKBLGcRtK0=@vger.kernel.org X-Gm-Message-State: AOJu0Yzv52+080CcEZRe91Ykzo9TPKukr7iQJw6Sopv5fTJTOhyQsnxe qvDZ/uAdqykVTxguHfwH4Fo/8mcjV2+wis3C9moRZJq7RcGGretwUoUuRSVskgbWM84Fe2ureND l0bt/GgdgbQ+5wPLOCCMbP+kQUMBg2vVHFhfCeKwnuv6+96aEDabPzOe9LMHFlg76hmk= X-Gm-Gg: AeBDietR7EpKL+0RWLB31C6EtUMYqx1lQWn1rH/1EVkgEdnVD8NBzJRIcckJFbwIRX1 tctRdZydx/CitvQKAjy0Nakkwc6+D/l0HdKOnSEIhOIY7Tev0mUEzcASYWRpPOuSpKGxKEFlmVz UvBHVrFi+xThIUNvUnfs4MbhlCx50McG9pj6Ny78ElmFHRvIJizzFmn50AhQ3GwE5G9Bhrh9x61 5aQb8zT9c2PQ6MytS1nnZbAsfXz4dqTT4+Fs2RSitY0ae26kgj5OmTfOjlORRywKoeeH6F2Qqjo JWF5u09C4xsSif8ATepQKYG6pTljz8X2hA1SOKZjnMY6qGb8YLA61picdDVyn+UaxBMfXEGRgcZ i1eZZNphKWWT/5dYyhgImILkmI/BUBkTqZb0+6WnIOS7gY1Rq54f7V2/RzdTFRt/12owlI3qeF3 lXsQ3rHu9C6hjD5SDj/12iA5xWsg== X-Received: by 2002:a17:90a:d005:b0:35d:9d28:e897 with SMTP id 98e67ed59e1d1-35de699f483mr10698418a91.28.1775461004603; Mon, 06 Apr 2026 00:36:44 -0700 (PDT) X-Received: by 2002:a17:90a:d005:b0:35d:9d28:e897 with SMTP id 98e67ed59e1d1-35de699f483mr10698388a91.28.1775461004071; Mon, 06 Apr 2026 00:36:44 -0700 (PDT) Received: from [10.50.10.255] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35ddb973ffasm11678053a91.2.2026.04.06.00.36.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2026 00:36:43 -0700 (PDT) Message-ID: Date: Mon, 6 Apr 2026 13:06:34 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v20 00/10] Implement PSCI reboot mode driver for PSCI resets To: Shivendra Pratap , Lorenzo Pieralisi , Arnd Bergmann , Bjorn Andersson , Sebastian Reichel , Rob Herring , Souvik Chakravarty , Krzysztof Kozlowski , Andy Yan , Matthias Brugger , Mark Rutland , Conor Dooley , Konrad Dybcio , John Stultz , Moritz Fischer , Bartosz Golaszewski , Sudeep Holla Cc: Florian Fainelli , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Andre Draszik , 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 , Song Xue References: <20260304-arm-psci-system_reset2-vendor-reboots-v20-0-cf7d346b8372@oss.qualcomm.com> Content-Language: en-US From: Pankaj Patil In-Reply-To: <20260304-arm-psci-system_reset2-vendor-reboots-v20-0-cf7d346b8372@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: o2hYtCrCMFB2lf2SOHeSSnaPZ0o6BiPZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDA2MDA3MiBTYWx0ZWRfX/NDOcpylmrYj 19PEyjSASzpmh9FpVXq/cdq8E2sFhQYe/EL7PImfsHwnxIBlLjL+MWDygJXESP2mopsbm12yOIz X8yvFlTuoWxoSF05v+4WiZGkVUJl4WCFjzKWKr+HHqTq2dN8NZJsI1ZtIUi63XfiaZ0D9j+7bHC fkJQgridaDz775/12BYrK4ke8ykJ3kW02qRiC8qu5qUxEhrboTqPmPfnQjhOdNClMveD12xJ6FZ JM76BI7wR7YxQQQYdz1HZ3ouHq3ZQWbdWRA9U2rj+6bCwXwBYGaFmpV3C/naD6KM5+BD26mqQI5 wUYe59/JKScVlxzB+aFtbTvNQxt0gTdMKOSki3PVcAcVvdPjt1XSO2goSabbNny0+TglQdy1yMk pGvcbwdfmafktvtAfW9NkzC8JKq1o2Q+WAVjC9pwkblAdoX0dqu6GGnfmLEdCnoJO+Mg4bi44Ah pJAuqOzt/v2z3Oq2z6g== X-Proofpoint-GUID: o2hYtCrCMFB2lf2SOHeSSnaPZ0o6BiPZ X-Authority-Analysis: v=2.4 cv=AuzjHe9P c=1 sm=1 tr=0 ts=69d3628d cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=RXLY-4Gv9SH2gAdi2bgA:9 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-06_02,2026-04-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 spamscore=0 impostorscore=0 malwarescore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604060072 On 3/4/2026 11:33 PM, Shivendra Pratap wrote: > Userspace should be able to initiate device reboots using the various > PSCI SYSTEM_RESET and SYSTEM_RESET2 types defined by PSCI spec. This > patch series introduces psci-reboot-mode driver that registers with > reboot-mode framework to provide this functionality. > > The PSCI system reset calls takes two arguments: reset_type and cookie. > It defines predefined reset types, such as warm and cold reset, and > vendor-specific reset types which are SoC vendor specific. To support > these requirements, the reboot-mode framework is enhanced in two key > ways: > 1. 64-bit magic support: Extend reboot-mode to handle two 32-bit > arguments (reset_type and cookie) by encoding them into a single 64-bit > magic value. > 2. Predefined modes: Add support for predefined reboot modes in the > framework. > > With these enhancements, the patch series enables: > - Warm reset and cold reset as predefined reboot modes. > - Vendor-specific resets exposed as tunables, configurable via the > SoC-specific device tree. > > Together, these changes allow userspace to trigger all above PSCI resets > from userspace. > > Currently three drivers register with reboot-mode framework - > syscon-reboot-mode, nvmem-reboot-mode and qcom-pon. Consolidated > list of commands currently added across various vendor DTs: > mode-loader > mode-normal > mode-bootloader > mode-charge > mode-fastboot > mode-reboot-ab-update > mode-recovery > mode-rescue > mode-shutdown-thermal > mode-shutdown-thermal-battery > > On gs101 we also pass kernel-generated modes from kernel_restart() > or panic(), specifically DM verity's 'dm-verity device corrupted': > mode-dm-verity-device-corrupted = <0x50>; > > - thanks Andre' for providing this. > > Detailed list of commands being used by syscon-reboot-mode: > arm64/boot/dts/exynos/exynosautov9.dtsi: > mode-bootloader = ; > mode-fastboot = ; > mode-recovery = ; > > arm64/boot/dts/exynos/google/gs101.dtsi: > mode-bootloader = <0xfc>; > mode-charge = <0x0a>; > mode-fastboot = <0xfa>; > mode-reboot-ab-update = <0x52>; > mode-recovery = <0xff>; > mode-rescue = <0xf9>; > mode-shutdown-thermal = <0x51>; > mode-shutdown-thermal-battery = <0x51>; > > arm64/boot/dts/hisilicon/hi3660-hikey960.dts: > mode-normal = <0x77665501>; > mode-bootloader = <0x77665500>; > mode-recovery = <0x77665502>; > > arm64/boot/dts/hisilicon/hi6220-hikey.dts: > mode-normal = <0x77665501>; > mode-bootloader = <0x77665500>; > mode-recovery = <0x77665502>; > > arm64/boot/dts/rockchip/px30.dtsi: > mode-bootloader = ; > mode-fastboot = ; > mode-loader = ; > mode-normal = ; > mode-recovery = ; > > arm64/boot/dts/rockchip/rk3308.dtsi: > mode-bootloader = ; > mode-loader = ; > mode-normal = ; > mode-recovery = ; > mode-fastboot = ; > > arm64/boot/dts/rockchip/rk3566-lckfb-tspi.dts: > mode-normal = ; > mode-loader = ; > mode-recovery = ; > mode-bootloader = ; > > Detailed list of commands being used by nvmem-reboot-mode: > arm64/boot/dts/qcom/pmXXXX.dtsi:(multiple qcom DTs) > mode-recovery = <0x01>; > mode-bootloader = <0x02>; > > The patch is tested on rb3Gen2, lemans-ride, lemans-evk, monaco-ride, > qcs615-ride. > > @Florian/@Kathiravan, Please note that reset_type in DT needs to be > full in itself with 31st bit set. (eg: 0x80000000). > > PS: As advised from Lorenzo, "PSCI maintainers should be added as > maintainers for psci-reboot-mode". > > Previous discussions around SYSTEM_RESET2: > - https://lore.kernel.org/lkml/20230724223057.1208122-2-quic_eberman@quicinc.com/T/ > - https://lore.kernel.org/all/4a679542-b48d-7e11-f33a-63535a5c68cb@quicinc.com/ > > Signed-off-by: Shivendra Pratap > Tested-by: Pankaj Patil