[PATCH 0/2] spi: qcom-geni: Add shutdown and panic notifier support
Praveen Talari <[email protected]> Wed, 05 Aug 2026 16:12:08 +0530
| Newsgroups | org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-spi |
|---|---|
| Message-ID | <20260805-add-shutdown-and-panic-notifier-for-spi-v1-0-b5db170d491e@oss.qualcomm.com> |
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 <[email protected]> --- 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 <[email protected]>