From: Roger Quadros <rogerq@kernel.org>
To: Markus Schneider-Pargmann <msp@baylibre.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>,
Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Kamlesh Gurudasani <kamlesh@ti.com>,
Kevin Hilman <khilman@baylibre.com>, Dhruva Gole <d-gole@ti.com>,
Vishal Mahaveer <vishalm@ti.com>, Akashdeep Kaur <a-kaur@ti.com>
Subject: Re: [PATCH v13 0/5] firmware: ti_sci: Introduce system suspend support
Date: Thu, 10 Oct 2024 10:59:40 +0300 [thread overview]
Message-ID: <9d8fe284-a746-4dfe-aab0-37c6b151f216@kernel.org> (raw)
In-Reply-To: <20241007-tisci-syssuspendresume-v13-0-ed54cd659a49@baylibre.com>
Hi Markus
On 07/10/2024 09:08, Markus Schneider-Pargmann wrote:
> Abstract
> ********
>
> This series introduces necessary ti_sci driver functionality to support
> various Suspend-to-RAM modes on TI AM62 family of devices. These Low
> Power Modes include Deep Sleep and MCU Only as described in section
> "6.2.4 Power Modes" of the AM62P Technical Reference Manual [0].
>
> Summary
> *******
>
> This series is a restructuring and rebase of the patch series by
> Dave Gerlach [1] and Dhruva Gole [2]. It applies on top of Linux
> 6.12-rc1.
>
> The kernel triggers entry to Low Power Mode through the mem suspend
> transition with the following:
>
> * At the bootloader stage, one is expected to package the TIFS stub
> which then gets pulled into the Tightly coupled memory of the Device
> Mgr (DM) R5 when it starts up. If using U-Boot, then it requires
> tispl.bin to contain the TIFS stub. Refer to documentation in upstream
> u-boot[3] for further details. The supported firmware version is from
> TI Processor SDK >= 10.00 ie. tag 10.00.04 from ti-linux-firmware [4].
>
> * Use a TF-A binary that supports PSCI_SYSTEM_SUSPEND call. This causes
> system to use PSCI system suspend as last step of mem sleep.
>
> * We add support for the TISCI_MSG_QUERY_FW_CAPS message, used to retrieve
> the firmware capabilities of the currently running system firmware [6].
> Sysfw version >= 10.00.04 support LPM_DM_MANAGED capability, where
> Device Mgr firmware now manages which low power mode is chosen. Going
> forward, this is the default configuration supported for TI AM62 family
> of devices. The state chosen by the DM can be influenced by sending
> constraints using the new LPM constraint APIs. (Patch 1)
>
> * The firmware requires that the OS sends a TISCI_MSG_PREPARE_SLEEP
> message in order to provide details about suspend. The ti_sci driver
> must send this message to firmware with the above information
> included, which it does during the driver suspend handler when
> PM_MEM_SUSPEND is the determined state being entered. The mode being
> sent depends on whether firmware capabilities have support for
> LPM_DM_MANAGED feature. Legacy firmware or those supporting other
> modes can extend the mode selection logic as needed. (Patch 2)
>
> * We also add the remaining TISCI Low Power Mode messages required for
> inquiring wake reason and managing LPM constraints as part of a new PM
> ops. These messages are part of the TISCI PM Low Power Mode API [5].
> (Patch 3)
>
> * Finally if any CPUs have PM QoS resume latency constraints set, we
> aggregate these and set the TISCI system-wide latency constraint.
> (Patch 4)
>
> Testing
> *******
>
> This series can for example be tested with a am62a-lp-sk board.
Tested on am62-sk.
Tested-by: Roger Quadros <rogerq@kernel.org>
>
> For am62a-lp-sk all usb nodes have to be disabled at the moment (usbss0,
> usb0, usbss1 and usb1). There is currently an issue with USB Link Power
> Management and turning off the USB device which is being worked on.
Or you can this patch [1].
[1] https://lore.kernel.org/all/20241009-am62-lpm-usb-v2-1-da26c0cd2b1e@kernel.org/
cheers,
-roger
--
cheers,
-roger
next prev parent reply other threads:[~2024-10-10 7:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 6:08 Markus Schneider-Pargmann
2024-10-07 6:08 ` [PATCH v13 1/5] PM: QoS: Export dev_pm_qos_read_value Markus Schneider-Pargmann
2024-10-07 6:08 ` [PATCH v13 2/5] firmware: ti_sci: Add support for querying the firmware caps Markus Schneider-Pargmann
2024-10-07 6:08 ` [PATCH v13 3/5] firmware: ti_sci: Add system suspend and resume call Markus Schneider-Pargmann
2024-10-07 6:08 ` [PATCH v13 4/5] firmware: ti_sci: Introduce Power Management Ops Markus Schneider-Pargmann
2024-10-07 6:08 ` [PATCH v13 5/5] firmware: ti_sci: add CPU latency constraint management Markus Schneider-Pargmann
2024-10-10 7:59 ` Roger Quadros [this message]
2024-10-25 17:58 ` [PATCH v13 0/5] firmware: ti_sci: Introduce system suspend support Nishanth Menon
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=9d8fe284-a746-4dfe-aab0-37c6b151f216@kernel.org \
--to=rogerq@kernel.org \
--cc=a-kaur@ti.com \
--cc=d-gole@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=kamlesh@ti.com \
--cc=khilman@baylibre.com \
--cc=kristo@kernel.org \
--cc=len.brown@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=msp@baylibre.com \
--cc=nm@ti.com \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=ssantosh@kernel.org \
--cc=vishalm@ti.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
Powered by JetHome