From: Richard GENOUD <richard.genoud@bootlin.com>
To: "Kumar, Udit" <u-kumar1@ti.com>,
Markus Schneider-Pargmann <msp@baylibre.com>,
u-boot@lists.u-boot-project.org
Cc: Tom Rini <trini@konsulko.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Daniel Schultz <d.schultz@phytec.de>,
Anshul Dalal <anshuld@ti.com>,
Aristo Chen <aristo.chen@canonical.com>
Subject: Re: [PATCH v2 5/5] arm: mach-k3: j722s: Wait for TIFS initialization
Date: Mon, 19 Oct 2026 14:16:24 +0200 [thread overview]
Message-ID: <747b779d-e24e-4a5c-b6bf-760948d5c313@bootlin.com> (raw)
In-Reply-To: <be2d29d7-0ae4-4110-aadc-b418e4a7f96a@ti.com>
Le 17/10/2026 à 04:40, Kumar, Udit a écrit :
>
>
> On 10/16/2026 2:35 PM, Markus Schneider-Pargmann wrote:
>> On HS-SE platforms TIFS takes longer to initialize. TIFS only removes
>> the firewall on the registers at the end of initialization. On HS-SE the
>> U-Boot ctrl_mmr_unlock() can happen before TIFS removed the firewall
>> leading to a race condition. This leads to a broken watchdog since the
>> signal configuration doesn't succeed because the write doesn't take
>> effect.
>>
>> Wait for TIFS to be initialized using k3_sysfw_wait_ready() before doing
>> ctrl_mmr_unlock(). Note that spl_early_init() needs to be done first to
>> setup DM.
>>
>> Link: https://lore.kernel.org/u-boot/20250815160240.3575140-1-d.schultz@phytec.de/
>> Link: https://lore.kernel.org/u-boot/20260225051559.416445-1-u-kumar1@ti.com/
>> Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
>> ---
>
> I have tested on J722S hs-fs and hs-se devices,
> Post this patch wdt reset got functional on hs-se device.
>
> So for this patch
>
> Tested-by: Udit Kumar <u-kumar1@ti.com>
>
I tested it on my LPM series with j722s HS-FS, and I still need a
ctrl_mmr_unlock() before spl_early_init() and also another after
k3_sysfw_print_ver() otherwise querying pmic fails.
Regards,
Richard
>> arch/arm/mach-k3/j722s/j722s_init.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/mach-k3/j722s/j722s_init.c b/arch/arm/mach-k3/j722s/j722s_init.c
>> index 1180c75f551d..c15b3b2682d9 100644
>> --- a/arch/arm/mach-k3/j722s/j722s_init.c
>> +++ b/arch/arm/mach-k3/j722s/j722s_init.c
>> @@ -84,13 +84,14 @@ static void k3_spl_init(void)
>> */
>> store_boot_info_from_rom();
>>
>> - ctrl_mmr_unlock();
>> -
>> /* Init DM early */
>> ret = spl_early_init();
>> if (ret)
>> panic("spl_early_init() failed: %d\n", ret);
>>
>> + k3_sysfw_wait_ready();
>> + ctrl_mmr_unlock();
>> +
>> /*
>> * Process pinctrl for the serial0 a.k.a. WKUP_UART0 module and continue
>> * regardless of the result of pinctrl. Do this without probing the
>>
>
--
Richard Genoud, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-10-19 12:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 9:05 [PATCH v2 0/5] K3: wait for TIFS init before CTRL_MMR unlock Markus Schneider-Pargmann
2026-10-16 9:05 ` [PATCH v2 1/5] arm: mach-k3: common: add helper to wait for TIFS initialization Markus Schneider-Pargmann
2026-10-17 2:44 ` Kumar, Udit
2026-10-16 9:05 ` [PATCH v2 2/5] arm: mach-k3: am625: Wait " Markus Schneider-Pargmann
2026-10-16 9:05 ` [PATCH v2 3/5] arm: mach-k3: am62a7: " Markus Schneider-Pargmann
2026-10-16 9:05 ` [PATCH v2 4/5] arm: mach-k3: am62p5: " Markus Schneider-Pargmann
2026-10-16 9:05 ` [PATCH v2 5/5] arm: mach-k3: j722s: " Markus Schneider-Pargmann
2026-10-17 2:40 ` Kumar, Udit
2026-10-19 12:16 ` Richard GENOUD [this message]
2026-10-19 13:34 ` Kumar, Udit
2026-10-22 10:15 ` [PATCH 1/3] arm: mach-k3: common: add helper to wait " Markus Schneider-Pargmann
2026-10-22 10:15 ` [PATCH 2/3] dm: core: Add SPL_DM_EVENT Markus Schneider-Pargmann
2026-10-22 10:15 ` [PATCH 3/3] WIP: arm: mach-k3: j722s: Wait for TIFS initialization Markus Schneider-Pargmann
2026-10-22 10:18 ` Markus Schneider-Pargmann
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=747b779d-e24e-4a5c-b6bf-760948d5c313@bootlin.com \
--to=richard.genoud@bootlin.com \
--cc=anshuld@ti.com \
--cc=aristo.chen@canonical.com \
--cc=d.schultz@phytec.de \
--cc=ilias.apalodimas@linaro.org \
--cc=msp@baylibre.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=u-kumar1@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.