Page MenuHomeFreeBSD

D31893.diff
No OneTemporary

D31893.diff

diff --git a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
--- a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
@@ -32,6 +32,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
+#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
@@ -762,6 +763,13 @@
struct bcm_sdhci_softc *sc = device_get_softc(slot->bus);
#endif
+ /*
+ * We don't want to perform DMA in this context -- interrupts are
+ * disabled, and a transaction may already be in progress.
+ */
+ if (dumping)
+ return (0);
+
/*
* This indicates that we somehow let a data interrupt slip by into the
* SDHCI framework, when it should not have. This really needs to be

File Metadata

Mime Type
text/plain
Expires
Mon, Jul 6, 11:03 PM (22 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34772460
Default Alt Text
D31893.diff (790 B)

Event Timeline