public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Vignesh Raghavendra <vigneshr@ti.com>
To: Vitor Soares <ivitro@gmail.com>, Nishanth Menon <nm@ti.com>,
	Tero Kristo <kristo@kernel.org>,
	Santosh Shilimkar <ssantosh@kernel.org>,
	Ulf Hansson <ulfh@kernel.org>
Cc: Vitor Soares <vitor.soares@toradex.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
	Kevin Hilman <khilman@baylibre.com>, <vishalm@ti.com>,
	<sebin.francis@ti.com>, <d-gole@ti.com>,
	Devarsh Thakkar <devarsht@ti.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH v1] pmdomain: ti_sci: re-sync TIFS with genpd on resume
Date: Wed, 29 Apr 2026 10:03:55 +0530	[thread overview]
Message-ID: <1fb0739e-b84f-42f1-9c96-88b5cc5866a8@ti.com> (raw)
In-Reply-To: <20260427074808.3244226-2-ivitro@gmail.com>

Hi Vitor

On 27/04/26 13:18, Vitor Soares wrote:
> From: Vitor Soares <vitor.soares@toradex.com>
> 
> When a device in a TI SCI power domain is on the wakeup path of a
> wakeup-capable child, the suspend path skips genpd_sync_power_off().
> No put_device is sent to TIFS and the domain's genpd status remains
> ON.

Correction of terminologies: TIFS is Root of trust component and is not
usually involved in power management, that would be DM (Device Manager)

But to be really sure who is doing what, Could you provide an example
and the platform on which you see the issue / external abort?


> 
> TIFS powers off the hardware during deep sleep regardless, since it
> was never informed to keep the domain active. On resume, because the
> domain's genpd status is ON, no get_device is issued. The driver
> then accesses registers of a powered-off domain, causing a
> synchronous external abort (AXI bus error, ESR 0x96000010).

Hmm, if something is wakeup source, I would expect even TIFS/DM not to
turn if off, else module wakeup wouldn't work.

> 
> Commit 0b5fe1c4ab3c ("pmdomain: ti-sci: Set PD on/off state according
> to the HW state") exposed this. Before, domain status was initialized
> to OFF, so get_device was always issued on resume.
> 
> Add a .resume hook that queries the domain's state from TIFS and
> re-syncs TIFS with get_device when genpd has it ON but TIFS has it
> OFF. The hook is only registered when the is_on op is available,
> since detection depends on it.
> 
> Move ti_sci_pm_pd_is_on() earlier in the file so it is available to
> the resume hook.
> 
> Fixes: 0b5fe1c4ab3c ("pmdomain: ti-sci: Set PD on/off state according to the HW state")
> Cc: stable@vger.kernel.org # 6.18+
> Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
> ---

[...]

-- 
Regards
Vignesh
https://ti.com/opensource



  reply	other threads:[~2026-04-29  4:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-27  7:48 [PATCH v1] pmdomain: ti_sci: re-sync TIFS with genpd on resume Vitor Soares
2026-04-29  4:33 ` Vignesh Raghavendra [this message]
2026-04-29 16:26   ` Vitor Soares
2026-04-30 10:47     ` Sebin Francis
2026-05-04  6:26       ` Vitor Soares

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=1fb0739e-b84f-42f1-9c96-88b5cc5866a8@ti.com \
    --to=vigneshr@ti.com \
    --cc=d-gole@ti.com \
    --cc=devarsht@ti.com \
    --cc=ivitro@gmail.com \
    --cc=khilman@baylibre.com \
    --cc=kristo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=sebin.francis@ti.com \
    --cc=ssantosh@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=ulfh@kernel.org \
    --cc=vishalm@ti.com \
    --cc=vitor.soares@toradex.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