]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check for and handle failures of bus_dmamap_load(). The driver currently
authorIan Lepore <ian@FreeBSD.org>
Sun, 11 Jan 2015 21:27:46 +0000 (21:27 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sun, 11 Jan 2015 21:27:46 +0000 (21:27 +0000)
commitbf160401a9e2eef68ce8345678750fb4b8fba0a4
treeb6b97f141b116adf14ce29e0e44a4924cc7d25a8
parenta98788edff9196105085f5cc223d485fbd434394
Check for and handle failures of bus_dmamap_load().  The driver currently
requires that each 512 byte IO be in a single contiguous buffer, but if a
buffer crosses a page boundary and the physical pages aren't contiguous
you can get an EFBIG failure (too many segments).

The driver really should handle multiple segment IO, but before adding that
I wanted to make sure that it's handling failure properly while the failure
is easily recreatable.
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c