Date: Thu, 5 Oct 2006 00:30:34 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 107281 for review Message-ID: <200610050030.k950UYSW067655@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107281 Change 107281 by imp@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610050030.k950UYSW067655>