ARM: tegra: Fix warm restarts on Tegra20
Get series with b4
b4 am [email protected] change-id 20261128-t20-soft-reset-fa083c0b45e4Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mfd: tps6586x: Leave warm and soft restarts to other handlersdrivers/ | +3 | 0 replies | |
| 2/4 | soc/tegra: pmc: Register restart handler from early init on ARMdrivers/ | +22 | 0 replies | |
| 3/4 | soc/tegra: pmc: Power up VDE partition before restarting Tegra20drivers/ | +60 | 0 replies | |
| 4/4 | media: tegra-vde: Drop warm restart workarounddrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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]>