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 067931F2B88 for ; Thu, 9 Oct 2025 04:16:25 +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=1759983387; cv=none; b=ciL3Q6S8tkQFEX+AbxE2l46ix7OtmmsuIEQ4G8m8tJaEppdpdQnoFQ7/r2iw222bVTDxWyDVcGDu/xcONypG/Lhx4j1OEK0uCJiyOXSack2vJPmTL7QW8HQIB82Jsl2fwyomrZvTuTHOTcozl8NHxnDoXWI+AcyuIEJH+8E4tuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759983387; c=relaxed/simple; bh=u7Lz+ubu4/1tXnCu0JIWk++I/7M7DTEbDaUucDlh2Go=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=c5u0JwpnCxdTP0ivG+W4xPilupoJYEIjzRzxlW6/X6jrcrPuM+UX5mPn2SuJfEyye1UN5Uvp5ewqbCihA8uTFybzrm2QYxePyDbsCQsJGULPIQFhbs702okKBOI/c+YE+mDF51B3MZks31koLx/Sb5t69UlhNac7OsbhvcHfgHk= 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=XHZFYLgZ; 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="XHZFYLgZ" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 598I5HdA012815 for ; Thu, 9 Oct 2025 04:16:25 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= Z/wdRyhztOnxEiG33RJa6Kf0OnFSv+4r6++4AXqf4jY=; b=XHZFYLgZg2Ow6PRS JUclyU+TF0z+pY12ZqtzQNQ8VrlNuUg4Xhs2eCmPHAsMuCEbCoWLl6Ys5FMv8+E8 89gfBpvct8WYZs9kbHFEk6okh2RczPluDauSmMVRl+lkdVU96NV+QtPgzwPUWJQm h6zb3/e4EaXHY0MBqFk9RCBk8n/AJAm5HY9N7x2IE8aDV9a4jkhwtqTyXNjLHRaC t0b0eyL2VXf5Fr5Q1DHjvqo+HSD0rwxgop4rzn/M3rRAe9+rD5erQYhu6h0y+N+r oyPAcpW4+DhSvZFelpYG8LFvhxtKhQzLFhLqm0ZFGIv9n5wijiJW9KMVTFbQUaeS SGgAHw== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49nv4j1e2d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 09 Oct 2025 04:16:25 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-b62f869e558so62574a12.2 for ; Wed, 08 Oct 2025 21:16:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759983384; x=1760588184; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Z/wdRyhztOnxEiG33RJa6Kf0OnFSv+4r6++4AXqf4jY=; b=nh44alJdsEyVse9ZwJvOleJSf4LJWL6lPLYzzVBv7ePdeuedVKT095PYB408ipXykb JQDfL+cfwoaCpVgBIPiIk0pMvJZpnBrEphHfsVDx+cZt1+pg43kJT3BuNInR+0M/YPIb yHKipbVNPxRp+526oGZ4cC/HO2Cofa93zMnocZqBYT8wES8MGQbw1MoeJBy0hj/zrgfN EdFeVWqAYA4fiHWU8tMkIXjLuGwgTzqqqSIrWETXGVFsy6ShK0eDVferXyTTQzOIvykO bUg4CnFFRSsTyNuKjYdsaD5K7lKRxUES9A8XPXRTO3hNTDB/YopJcRQ+VEhBq4ImL1AM YmOA== X-Forwarded-Encrypted: i=1; AJvYcCWFYBetZ8N0ATCL9xKKZ5ZqQMNq7m0cRvD45IQIbym7WV1aJrbQ4nIH9cVjE36DsJDHAcc3uSBi5kVP8O8P@vger.kernel.org X-Gm-Message-State: AOJu0YzP/2btnbeCCjbR8wQ7/FJbQI8d+k8u1ws7FjCIhbVautVHHpU/ Pre2R3lbtel6Qt7wX2ylwN7rf3P8tbPKnrWs8ocqlJZNnhuIW3/96UBu5f9/xtZ/CB20ak9K5kZ WY79GtdERQAeEKZ2x7Kp9yGYDcVTusmoAeTjkF/bMFyqBgsRdj4/W59aql+nsMnplCtDh X-Gm-Gg: ASbGncvDc5EtJP9GsAu1P4WaiOwlIuCfX1QToszVcriDTjZOrqpY6WegEaYKnHomZNp yqpkySMv/wi7ir1oWkQ7Cy4gb3JcJXBIbuVgtZ+Ttvz48pzoqmZ7ROi7+GNk9wYABSRh6kOnmJP rAkZDGzrxjw8LnTTh3jOoeJLvwkv9rVj0HdwHGy4gYJYFTY4G2sJrGpQeBpeBwOo9VpEmTpOeBS TmPT84yBJfde4nrzU/pz44dEehsfj+iK7ewunNyIGROgbqISkN7jN+S1cPjf+iBJqt46hd2YqpC 5YnxcSmH3VjJbOJMqAkElkLsoIEdCThRKM1Cu+70WYT8kio34k0o5f0cBTdN6WwvCOWGBHfwxJQ n/Qoy1+jHncy95zK93HjILY3nIi4+lphT4Sa8ttLQug== X-Received: by 2002:a05:6300:619c:b0:2bc:1f29:1232 with SMTP id adf61e73a8af0-32da84deb91mr4229047637.7.1759983384487; Wed, 08 Oct 2025 21:16:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfQd96vAGN51vtHjr82AtIlkinA4yVsIrZBAw+ojodJrmawHih66RQcFW7/2SrnnG0euQhHA== X-Received: by 2002:a05:6300:619c:b0:2bc:1f29:1232 with SMTP id adf61e73a8af0-32da84deb91mr4229010637.7.1759983383989; Wed, 08 Oct 2025 21:16:23 -0700 (PDT) Received: from [10.240.201.55] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-794dbc5a6c5sm1359671b3a.54.2025.10.08.21.16.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Oct 2025 21:16:23 -0700 (PDT) Message-ID: <090c08f4-b1e8-4af4-b665-7894a1443ebe@oss.qualcomm.com> Date: Thu, 9 Oct 2025 09:46:17 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v15 03/14] power: reset: reboot-mode: Add support for 64 bit magic To: Shivendra Pratap , Bartosz Golaszewski , Bjorn Andersson , Sebastian Reichel , Rob Herring , Sudeep Holla , Souvik Chakravarty , Krzysztof Kozlowski , Conor Dooley , Andy Yan , Mark Rutland , Lorenzo Pieralisi , 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 Cc: 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 , Srinivas Kandagatla , umang.chheda@oss.qualcomm.com References: <20250922-arm-psci-system_reset2-vendor-reboots-v15-0-7ce3a08878f1@oss.qualcomm.com> <20250922-arm-psci-system_reset2-vendor-reboots-v15-3-7ce3a08878f1@oss.qualcomm.com> Content-Language: en-US From: Umang Chheda In-Reply-To: <20250922-arm-psci-system_reset2-vendor-reboots-v15-3-7ce3a08878f1@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Yuolk-j0LI-vdKFXTNiW3CuPQnqdl-m_ X-Proofpoint-ORIG-GUID: Yuolk-j0LI-vdKFXTNiW3CuPQnqdl-m_ X-Authority-Analysis: v=2.4 cv=f91FxeyM c=1 sm=1 tr=0 ts=68e73719 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=EUspDBNiAAAA:8 a=xyQZWzCWjP-v2z6xiYIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDA4MDEyMSBTYWx0ZWRfX7KcNEBjaypJX bIzzyQxMcqTEdMw6ZFUJlu55GIq3b+ypMfr7RzK/Vgc/Q498ckrzul6fc8DZNiGUbo2DZmwRYvw I5YroOte+TUlhMMbuqXpHTeElGQZmkUPaKIrWZAs7WstDSQtIg/dy7jCCxd32yvbnMLYSS0deSq wCXktNDZnwYaC+tKNRTVOrag+uSPmv2+D7mJ/3GqZFhNIplPy8/n5B4tIPdNT4oqS0hrDjSz7On ypmMBCTJ+aaaNG1XE7TWZVywMXQ/QLpjo61oWHlylNsZGODbwdF2+ErGkdSBeSAFb8v3FwmI76g E/bgKkoWjIF41VGXU/1b2UZs+QnvH7GHm1fkc8HvfeCZ9yW0a8NrgF3ris8UAf4U039ITEQjXPV WZqze7fnUygWdZ9+PSrsq2RXsOsbCg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-09_01,2025-10-06_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 adultscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510080121 On 9/22/2025 7:10 PM, Shivendra Pratap wrote: > Current reboot-mode supports a single 32-bit argument for any > supported mode. Some reboot-mode based drivers may require > passing two independent 32-bit arguments during a reboot > sequence, for uses-cases, where a mode requires an additional > argument. Such drivers may not be able to use the reboot-mode > driver. For example, ARM PSCI vendor-specific resets, need two > arguments for its operation – reset_type and cookie, to complete > the reset operation. If a driver wants to implement this > firmware-based reset, it cannot use reboot-mode framework. > > Introduce 64-bit magic values in reboot-mode driver to > accommodate dual 32-bit arguments when specified via device tree. > In cases, where no second argument is passed from device tree, > keep the upper 32-bit of magic un-changed(0) to maintain backward > compatibility. > > Update the current drivers using reboot-mode for a 64-bit magic > value. > > Signed-off-by: Shivendra Pratap > --- > drivers/power/reset/nvmem-reboot-mode.c | 13 +++++++++---- > drivers/power/reset/qcom-pon.c | 11 ++++++++--- > drivers/power/reset/reboot-mode.c | 19 +++++++++++++------ > drivers/power/reset/syscon-reboot-mode.c | 11 ++++++++--- > include/linux/reboot-mode.h | 3 ++- > 5 files changed, 40 insertions(+), 17 deletions(-) > Reviewed-by: Umang Chheda Thanks, Umang