Skip to content

ARM: tegra: Fix warm restarts on Tegra20

Artur Kowalski linux-media linux-tegra mfd 1 version New

Get series with b4
b4 am [email protected] change-id 20261128-t20-soft-reset-fa083c0b45e4

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mfd: tps6586x: Leave warm and soft restarts to other handlersdrivers/mfd/tps6586x.c+3 -00 replies
2/4soc/tegra: pmc: Register restart handler from early init on ARMdrivers/soc/tegra/pmc.c+22 -30 replies
3/4soc/tegra: pmc: Power up VDE partition before restarting Tegra20drivers/soc/tegra/pmc.c+60 -140 replies
4/4media: tegra-vde: Drop warm restart workarounddrivers/media/platform/nvidia/tegra-vde/vde.c+1 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ARM: tegra: Fix warm restarts on Tegra20

On Tegra20 boards with a TPS6586x PMIC, every restart is a cold restart:
the PMIC restart handler has a higher priority than the PMC one and power cycles the whole board, regardless of the configured reboot mode. That includes RAM, which makes pstore unreliable, and was the main motivation for this series. Testing has also shown that warm reboots are more reliable on my TF101: on cold reboots the board tends to just power off, which breaks automated kernel build/deploy/reboot loops, while with warm reboots (and the latest U-Boot) I haven't observed any boot issues.

This series does three things:
- it fixes warm reboots on boards with a TPS6586x,
- it registers the PMC restart handler much earlier, so that kernel panics that happen before the regulator driver is brought up are able to reset the board,
- it improves the old workaround for the boot ROM hanging on a warm reset, which now also covers emergency restarts. Without it, boards that don't have a PMIC restart handler, and therefore reset through the PMC, hang if the restart was triggered by a panic.

Patches were created with help of Claude. I've tested them on ASUS TF101.

---
Patch 4 is a cleanup of the old workaround, requires patch 3.

To: Lee Jones <[email protected]>
To: Thierry Reding <[email protected]>
To: Jonathan Hunter <[email protected]>
To: Hans Verkuil <[email protected]>
To: Dmitry Osipenko <[email protected]>
To: Mauro Carvalho Chehab <[email protected]>
To: Mauro Carvalho Chehab <[email protected]>

---
Artur Kowalski (4):
mfd: tps6586x: Leave warm and soft restarts to other handlers soc/tegra: pmc: Register restart handler from early init on ARM soc/tegra: pmc: Power up VDE partition before restarting Tegra20
media: tegra-vde: Drop warm restart workaround

 drivers/media/platform/nvidia/tegra-vde/vde.c | 24 +------
 drivers/mfd/tps6586x.c                        |  3 +
 drivers/soc/tegra/pmc.c                       | 99 ++++++++++++++++++++++-----
 3 files changed, 86 insertions(+), 40 deletions(-)

---
base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
change-id: 20261128-t20-soft-reset-fa083c0b45e4

Best regards,

Signature · 1 line
Artur Kowalski <[email protected]>