[PATCH 0/2] spi: qcom-geni: Add shutdown and panic notifier support
From: Praveen Talari
Date: Wed Aug 05 2026 - 06:43:10 EST
On VM-based platforms, if an SPI DMA transfer is in progress when the
guest is torn down (via reboot/shutdown or a panic/crash), the DMA
engine can keep issuing transactions to IOVAs that have already been
invalidated as part of teardown. The SMMU then raises context faults,
which can affect other VMs sharing the same SMMU instance and obscure
the real root cause of the crash.
This series adds two independent quiesce paths for the GENI SPI
controller so that any in-progress transfer is stopped and the DMA
engine is left idle before the IOVA mappings are torn down:
- Patch 1 adds a platform shutdown() callback that suspends the SPI
controller on a normal reboot/shutdown path.
- Patch 2 registers a panic notifier that suspends the SPI controller
when the kernel panics, covering the crash path as well.
Signed-off-by: Praveen Talari <praveen.talari@xxxxxxxxxxxxxxxx>
---
Praveen Talari (2):
spi: qcom-geni: Add shutdown callback to quiesce hardware on reboot
spi: qcom-geni: Add panic notifier to suspend controller during panic
drivers/spi/spi-geni-qcom.c | 40 ++++++++++++++++++++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
---
base-commit: 9a4cdc958dd79fc6c3b20b51a10debec6ca09fec
change-id: 20260804-add-shutdown-and-panic-notifier-for-spi-fa732be7c7dd
Best regards,
--
Praveen Talari <praveen.talari@xxxxxxxxxxxxxxxx>