K 10 svn:author V 6 mhorne K 8 svn:date V 27 2021-09-28T14:25:03.677738Z K 7 svn:log V 920 bcm2835_sdhci: don't use DMA for kernel dumps When handling a data irq, the sdhci driver calls the sdhci_platform_will_handle() method, to determine if it should allow the platform driver to handle the transfer or fall back to programmed I/O. While dumping, the data irq path may be invoked directly (not from an interrupt context), which the bcm2835_sdhci DMA code is not prepared to handle. Return early in this case, to force the fallback to PIO. Otherwise, the KASSERT that follows will be triggered, and the dump will fail. On non-INVARIANTS kernels, the system will hang, waiting for a DMA interrupt that will never arrive. Reviewed by: kevans MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31893 (cherry picked from commit 806ebc9eba2a45638d63ae8a2ed20e6fb44dd06e) Git Hash: 22e68eadc50d7e750e0108688ad7ddaadc115a6b Git Author: mhorne@FreeBSD.org END