From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 D6AA934C816 for ; Wed, 19 Nov 2025 12:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763553778; cv=none; b=ahUBfDNuGqj0es5nejSrvOARMHE2OO3HXfFZU/4akxUbAle6IDPfGzGo8NIRDwqdlMIYy5AYsHs3vPr3zQIgS7YgI5l+IK0u+N4LiD1/xeuqe2Bc1fvHWetyKJ26PB0ZhvopHRNvfSSJ8GlyXVjiSOEs4HG6Z25TYzgFX7V32ZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763553778; c=relaxed/simple; bh=JHhdnwMtP4xdq2SpFsW6LkDjsL7vF6RBdqpnmVXkz8M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Vhxo4WxD0EPHiiYv43jXI9/iS5Ck9SglIsvmfSCGEUe/A+SGpCeRXXrxgAhHkKNqTbs+aN9WyXQXGJoBS9UBaC46rZimV+y4jMZT0G8sEH4uFlSvDsv+XYYvPVH5wiQePxONJMJhJu6EE37sds2GyST51k2H+YUcsz6WUFrhEKM= 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=Qqqv2tTv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=DylH5T1o; arc=none smtp.client-ip=205.220.180.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="Qqqv2tTv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DylH5T1o" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AJB65xN1981635 for ; Wed, 19 Nov 2025 12:02:55 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= TjIW02mFO0A6VGZGfOH2io2QOGdWVsO8GYlNGpyrH5c=; b=Qqqv2tTv/DtFrkg3 1YpcLnS8VMCN8V/UcMglE+p8moZrX9vEd5DvTkVNSHSgNGkIy1dk3F9k4sG4bIu9 GapzFJeZ9oF6pxuP7Lum3Gd0hdhjMt8zDdP+L3tujq2VCxyxlKe5ykdW/cr8+OYd MDNLb4k8v8FGjuR+mCtF9NP3VC/5vWH0GVa9Bh+8ncrSLy3q665pWykZy7/Jx6/S +fmHhF/BPoO4SuUpPj6Y2jXGt4Uy1wHerKSo+x7NO80iGRhHKLXTWzwJe1HHXprj IvmE/fT2IuU+EO6bgl9jvZBknD6zMaQK+BETBFYBur+5jzYC6VyjrAq8Iw7WXTfa HHuk6A== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ahcqng4bf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 19 Nov 2025 12:02:55 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-7b90740249dso13374540b3a.0 for ; Wed, 19 Nov 2025 04:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763553774; x=1764158574; 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=TjIW02mFO0A6VGZGfOH2io2QOGdWVsO8GYlNGpyrH5c=; b=DylH5T1opt2K9RtQYwL9jNbMaiMy6DC6gO9b7uWoHDz3OCY7gK8NmXP+17EAnosevs nJR6ZAZCogWk0cOo4avGxNlHr6t01Ddakod5S9EEFlwYtGGDgrrbNgpwH8v1cIUkBdgM irh7GU+/V7SLvXPYfyNOqGFTWdBXntQNRzOjbSw/UgaEAVXt+r0KFk7/dUfPinwd3jTX r0HI6WKRFd2nmls0PgdcKik3KDyPdWGCQ6raiNN2uvSL02j2dD0BEA/a5CQeYx+5yzZy prO6AnNUJslW509YrniHnSxwewqIA6/7XJccKCKQD4r3z6YSzeTmHLPQrkbetzlt6OFw YIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763553774; x=1764158574; 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=TjIW02mFO0A6VGZGfOH2io2QOGdWVsO8GYlNGpyrH5c=; b=BvOBZscWHUZKEiZ+lMrh2r+XWf7SSwTbwOtSmAXwzwQfshPMAuIGLhfuZA9pTAsquT NDhAZGreC0gPDBoq7Q/wCrZ1jDJ0iu529fUv0uciYwb6ynXduweSPRXzgXKKS26et0dr ITB9g5eJV94c8gu/6MMOb2So7P+BOWlyX93et8mbh/rFbuFodpGs7A8YMurcEX3XnzWC L95S1rEeADkK6UNruiNbgnJGypUYpZ6H3l/8ycWquKIuRTcLCrEyc5WU/rjE6dx2MapK aiTgWeSJEqP7yCoWXuQQHCH/1hW+sebR8pyNWHKjB9IG7xnXGlq3iqFTPHwaBcUEDgqu 8Yfw== X-Forwarded-Encrypted: i=1; AJvYcCUySov1hYy+SwY1owk4x2CgqP2k6NKQCwuozqfKNZJYb6dTlz1K3yrHF6OS2obUlM0oY3j3WyQK5H81@vger.kernel.org X-Gm-Message-State: AOJu0YwAd1yPYL0jHENHHwzkyCo7/rbac/pNd6527+Gps68Oa+V0MkhR dqmuCjvoFaw1Q4dVtzEA/2CvJT//s43Ec06SLeWJrOvKncOUJf849YX56n1/JNTeXjH+rrDabs/ MtdVl5MDvKrg+YdY9Q7xM8Q30+FJDaFMmIJLWn6nwyT0eP47JTEjewG3Js7pAG+hc X-Gm-Gg: ASbGncupdHqWLgLeTXZHXTQuPXORw9TAWBJRjQraj/pliTKwSurnHLWEKfyLsiIWi2o NNFQfQHqyxKLTWxvvkzvPEqplK+E1XnmqIHRfZanhGBdvUcOFoOtha8KAZY3LY7yW8CMKnViwKP umWgkgU8RFvYkITdUBMFoIEyM8W4UJniNbsYm5mmOxowPuOVdbyYpNAsLxLfhNJgzL1JoLc5pna fRW3SPcdFKAVAKg2hDyFjA+2302iHefhuX6rEMvgTBV021y8zHRWocbAUSorI74F/G7Og0UvWjg 7DSSvpz8KvhgHPYtzfYZYauJpOwbcTimQ90pVnW5uXWqGESo0GZxCDCSNHUXqeUxhqhebYp6vlp rVueX5U538Hp5JT0UOWOyV1SNewMXbSZxf8QwL3s3RIU= X-Received: by 2002:a05:6a20:734a:b0:35f:aa1b:bc00 with SMTP id adf61e73a8af0-3612f31b05bmr2773393637.59.1763553774417; Wed, 19 Nov 2025 04:02:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNbO4ggiX+mrclow8f9c4D5FHCa9+vVlDZ9B1otcOfIurjoU+/vUjVkaZn/JfwG7EJs2K2WQ== X-Received: by 2002:a05:6a20:734a:b0:35f:aa1b:bc00 with SMTP id adf61e73a8af0-3612f31b05bmr2773313637.59.1763553773847; Wed, 19 Nov 2025 04:02:53 -0800 (PST) Received: from [10.219.57.23] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bc37517864asm17995503a12.17.2025.11.19.04.02.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Nov 2025 04:02:53 -0800 (PST) Message-ID: <682b1a0c-644f-2aff-1860-cbf9a53bc62b@oss.qualcomm.com> Date: Wed, 19 Nov 2025 17:32:42 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v17 07/12] firmware: psci: Implement vendor-specific resets as reboot-mode To: Lorenzo Pieralisi Cc: Bartosz Golaszewski , Bjorn Andersson , Sebastian Reichel , Rob Herring , Sudeep Holla , Souvik Chakravarty , Krzysztof Kozlowski , Conor Dooley , Andy Yan , Mark Rutland , Arnd Bergmann , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Vinod Koul , Catalin Marinas , Will Deacon , Florian Fainelli , Moritz Fischer , John Stultz , Matthias Brugger , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Stephen Boyd , Andre Draszik , Kathiravan Thirumoorthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Elliot Berman , Xin Liu , Srinivas Kandagatla , Umang Chheda , Nirmesh Kumar Singh References: <20251109-arm-psci-system_reset2-vendor-reboots-v17-0-46e085bca4cc@oss.qualcomm.com> <20251109-arm-psci-system_reset2-vendor-reboots-v17-7-46e085bca4cc@oss.qualcomm.com> <80e68e44-a8e0-464a-056e-9f087ad40d51@oss.qualcomm.com> <1da024e7-efb1-3a1c-cc13-0ae5212ed8bd@oss.qualcomm.com> Content-Language: en-US From: Shivendra Pratap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTE5MDA5NSBTYWx0ZWRfX/IQNnJkJvapW cltZu8gI4p7tMgNnY5xsnfYq4tkWF62AKpzTxlcbb5fv72Y415GlPqmBE6XPLDlzLqQqsf5WxUl TZy9zQYuGECIBHT1dlBQ8EZsYpka6nYqpGdC6AIPj/BybUbHxToUClJATXBELORMRpAsb+cScFl d1ManYju7osrzNeZPU5sagpiCju4WRzZKNIdtOnMSZHzbCqrday2zH67tLJ0p82iD9nOZ8DehnQ y+ncwGlx4pG98KDxHa+mQDIqq6iUH5uV2tx+xMEn5WnqcLWE8hQrPkbXGVowCe0zFvWgiKoWk8l EGXlys4p5LDHSMY6VWWmnZhHMdkOOmq0LLRAwHhCPAXIkmbpzPZgHmuMYc2q3565C8A1cCTz5jg F4iCgrGo+6IIKhiKCYpFKchXT4ipRg== X-Authority-Analysis: v=2.4 cv=ApfjHe9P c=1 sm=1 tr=0 ts=691db1ef cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=ZSC80-7iYZ4hBk_6gz0A:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-GUID: 2-3lS3Fqgf44LeOeGUp4IxKQzyK5Hdu6 X-Proofpoint-ORIG-GUID: 2-3lS3Fqgf44LeOeGUp4IxKQzyK5Hdu6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-19_03,2025-11-18_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511190095 On 11/19/2025 3:07 PM, Lorenzo Pieralisi wrote: > On Tue, Nov 18, 2025 at 11:11:33PM +0530, Shivendra Pratap wrote: > > [...] > >>> Yes this could be a potential way forward but that's decoupled from the >>> options below. If we take this route PSCI maintainers should be added >>> as maintainers for this reboot mode driver. >> >> you mean the new psci_reset driver? yes. Maintainer would be PSCI maintainer, >> if we create a new psci_reset reboot mode driver. > > Yes. > >>>> - struct with pre-built psci reset_types - (warm, soft, cold). Currently >>>> only two modes supported, anything other than warm/soft defaults to cold. >>>> - vendor resets to be added as per vendor choice, inside psci device tree(SOC specific). >>>> - psci_reset registers with reboot-mode for registering vendor resets. Here, we >>>> have a problem, the pre-built psci reset_types - (warm, soft, cold) cannot be added via >>>> reboot-mode framework. >>> >>> Why ? >> >> If we want the new psci_reset to take the reboot-mode framework route, is it ok to >> add default modes (warm, cold) in the device tree? >> If not, then the design of reboot-mode framework(power:reset:reboot-mode.c) needs to be >> further changed to equip this new feature. > > Well, yes, all it needs to do is allowing prepopulated reboot modes on top > of which DT based ones are added. The mode-cold , adds a third variable to reboot-modes as the first parameter for invoke_psci_fn is different for cold vs warm/vendor. cold reset call : invoke_psci_fn(PSCI_0_2_FN_SYSTEM_RESET, 0, 0, 0); vendor/warm reset call: invoke_psci_fn(PSCI_FN_NATIVE(1_1, SYSTEM_RESET2), vendor, cookiee, 0); Each mode will have 3 argument - like: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ MODE , cold reset, reset_type, cookie _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - COLD , 1 , 0 , 0 WARM , 0 , 0 , 0 vendor1, 0 ,0x80000000 , 1 vendor2, 0 ,0x80000010 , 0 So reboot-mode framework will now define and support upto three 32 bit arguments for each mode? thanks, Shivendra