From: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
To: Arnd Bergmann <arnd@arndb.de>, Rob Herring <robh@kernel.org>
Cc: "Bartosz Golaszewski" <bartosz.golaszewski@linaro.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Sebastian Reichel" <sre@kernel.org>,
"Sudeep Holla" <sudeep.holla@arm.com>,
"Souvik Chakravarty" <Souvik.Chakravarty@arm.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Andy Yan" <andy.yan@rock-chips.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Olof Johansson" <olof@lixom.net>,
"Konrad Dybcio" <konradybcio@kernel.org>,
cros-qcom-dts-watchers@chromium.org,
"Vinod Koul" <vkoul@kernel.org>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>,
"Florian Fainelli" <florian.fainelli@broadcom.com>,
"Elliot Berman" <elliotb317@gmail.com>,
"Stephen Boyd" <swboyd@chromium.org>,
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,
"André Draszik" <andre.draszik@linaro.org>,
"Alim Akhtar" <alim.akhtar@samsung.com>,
linux-samsung-soc@vger.kernel.org,
"Wei Xu" <xuwei5@hisilicon.com>,
linux-rockchip@lists.infradead.org,
"Baolin Wang" <baolin.wang@linux.alibaba.com>,
"Sen Chu" <sen.chu@mediatek.com>,
"Sean Wang" <sean.wang@mediatek.com>,
"Macpaul Lin" <macpaul.lin@mediatek.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Ray Jui" <rjui@broadcom.com>,
"Scott Branden" <sbranden@broadcom.com>,
bcm-kernel-feedback-list@broadcom.com,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Elliot Berman" <quic_eberman@quicinc.com>,
"Srinivas Kandagatla" <srini@kernel.org>
Subject: Re: [PATCH v10 02/10] dt-bindings: power: reset: Document reboot-mode cookie
Date: Fri, 11 Jul 2025 22:30:47 +0530 [thread overview]
Message-ID: <28f277af-9882-2c70-5156-123c95adc2ee@oss.qualcomm.com> (raw)
In-Reply-To: <454c8361-151e-42b3-adfc-d82d2af62299@app.fastmail.com>
On 7/11/2025 8:14 PM, Arnd Bergmann wrote:
> On Fri, Jul 11, 2025, at 14:32, Shivendra Pratap wrote:
>> On 7/11/2025 4:17 AM, Rob Herring wrote:
>>> On Thu, Jul 10, 2025 at 02:45:44PM +0530, Shivendra Pratap wrote:
>>>> All mode properties are vendor specific, it is a indication to tell
>>>> the bootloader what to do when the system reboots, and should be named
>>>> - as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).
>>>> + as mode-xxx = <magic cookie> (xxx is mode name, magic should be a
>>>> + non-zero value, cookie is optional).
>>>
>>> I don't understand the distinction between magic and cookie... Isn't all
>>> just magic values and some platform needs more than 32-bits of it?
>> Need two different arguments. Will try to clarify a bit below.
>> PSCI defines SYSTEM_RESET2 vendor-specific resets which takes two
>> parameters - reset_type and cookie. Both parameters are independent and
>> used by firmware to define different types of resets or shutdown.
>> As per spec:
>> reset_type: Values in the range 0x80000000-0xFFFFFFFF of the reset_type
>> parameter
>> can be used to request vendor-specific resets or shutdowns.
>> cookie: the cookie parameter can be used to pass additional data to the
>> implementation.
>
> I don't see any distinction here either. As Rob says, you have to
> get both 32-bit numbers from DT in order to get the desired reboot-mode,
> and you have to pass them both to the firmware when rebooting.
>
> The distinction between cookie and magic value may be relevant in the
> context of the psci specification, but for the Linux driver, this is
> really just a 64-bit magic number.
ok. then if i understand, this binding change for reboot-mode be dropped
and driver can internally handle the two 32 bit numbers?
>
> Arnd
next prev parent reply other threads:[~2025-07-11 17:01 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 9:15 [PATCH v10 00/10] Implement vendor resets for PSCI SYSTEM_RESET2 Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 01/10] power: reset: reboot-mode: Add device tree node-based registration Shivendra Pratap
2025-07-11 1:14 ` kernel test robot
2025-07-11 2:48 ` kernel test robot
2025-07-14 23:11 ` Dmitry Baryshkov
2025-07-15 4:47 ` Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 02/10] dt-bindings: power: reset: Document reboot-mode cookie Shivendra Pratap
2025-07-10 22:47 ` Rob Herring
2025-07-11 12:32 ` Shivendra Pratap
2025-07-11 14:44 ` Arnd Bergmann
2025-07-11 17:00 ` Shivendra Pratap [this message]
2025-07-11 17:39 ` Arnd Bergmann
2025-07-11 17:49 ` Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 03/10] power: reset: reboot-mode: Add optional cookie argument Shivendra Pratap
2025-07-10 15:29 ` Arnd Bergmann
2025-07-10 16:40 ` Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 04/10] dt-bindings: arm: Document reboot mode magic Shivendra Pratap
2025-07-10 15:30 ` Arnd Bergmann
2025-07-10 16:53 ` Shivendra Pratap
2025-07-11 5:40 ` Arnd Bergmann
2025-07-11 17:13 ` Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 05/10] firmware: psci: Implement vendor-specific reset-types as reboot-mode Shivendra Pratap
2025-07-10 15:45 ` Konrad Dybcio
2025-07-10 16:34 ` Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 06/10] arm64: dts: qcom: qcm6490-idp: Add PSCI SYSTEM_RESET2 types Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 07/10] arm64: dts: qcom: qcs6490-rb3gen2: " Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 08/10] arm64: dts: qcom: sa8775p-ride: " Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 09/10] Documentation: ABI: Add sysfs-class-reboot-mode-reboot_modes Shivendra Pratap
2025-07-10 9:15 ` [PATCH v10 10/10] power: reset: reboot-mode: Expose sysfs for registered arguments Shivendra Pratap
2025-07-10 20:20 ` [PATCH v10 00/10] Implement vendor resets for PSCI SYSTEM_RESET2 Florian Fainelli
2025-07-11 12:41 ` Shivendra Pratap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28f277af-9882-2c70-5156-123c95adc2ee@oss.qualcomm.com \
--to=shivendra.pratap@oss.qualcomm.com \
--cc=Souvik.Chakravarty@arm.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alim.akhtar@samsung.com \
--cc=andersson@kernel.org \
--cc=andre.draszik@linaro.org \
--cc=andy.yan@rock-chips.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arnd@arndb.de \
--cc=baolin.wang@linux.alibaba.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=elliotb317@gmail.com \
--cc=florian.fainelli@broadcom.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=macpaul.lin@mediatek.com \
--cc=mark.rutland@arm.com \
--cc=nicolas.ferre@microchip.com \
--cc=olof@lixom.net \
--cc=quic_eberman@quicinc.com \
--cc=rjui@broadcom.com \
--cc=robh@kernel.org \
--cc=sbranden@broadcom.com \
--cc=sean.wang@mediatek.com \
--cc=sen.chu@mediatek.com \
--cc=sre@kernel.org \
--cc=srini@kernel.org \
--cc=sudeep.holla@arm.com \
--cc=swboyd@chromium.org \
--cc=vkoul@kernel.org \
--cc=will@kernel.org \
--cc=xuwei5@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®