PERFORCE change 107281 for review
Warner Losh
imp at FreeBSD.org
Wed Oct 4 17:30:35 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=107281
Change 107281 by imp at imp_lighthouse on 2006/10/05 00:29:40
Allocate up to MAXPHYS for transfers.
Map data->len rather than block_len, these used to be the same, but
if I do multiblock, they will be different.
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/at91_mci.c#23 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/at91_mci.c#23 (text+ko) ====
@@ -173,8 +173,8 @@
* Allocate DMA tags and maps
*/
err = bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT,
- BUS_SPACE_MAXADDR, NULL, NULL, 2058, 1, 2048, BUS_DMA_ALLOCNOW,
- NULL, NULL, &sc->dmatag);
+ BUS_SPACE_MAXADDR, NULL, NULL, MAXPHYS, 1, MAXPHYS,
+ BUS_DMA_ALLOCNOW, NULL, NULL, &sc->dmatag);
if (err != 0)
goto out;
@@ -364,7 +364,7 @@
bus_addr_t paddr;
if (bus_dmamap_load(sc->dmatag, sc->map, vaddr,
- block_size, at91_mci_getaddr, &paddr, 0) != 0) {
+ data->len, at91_mci_getaddr, &paddr, 0) != 0) {
if (req->cmd->flags & STOP_STARTED)
req->stop->error = MMC_ERR_NO_MEMORY;
else
More information about the p4-projects
mailing list