From owner-p4-projects@FreeBSD.ORG Thu Oct 5 00:30:35 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 569B116A416; Thu, 5 Oct 2006 00:30:35 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F113D16A412 for ; Thu, 5 Oct 2006 00:30:34 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF38343D45 for ; Thu, 5 Oct 2006 00:30:34 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k950UYvF067658 for ; Thu, 5 Oct 2006 00:30:34 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k950UYSW067655 for perforce@freebsd.org; Thu, 5 Oct 2006 00:30:34 GMT (envelope-from imp@freebsd.org) Date: Thu, 5 Oct 2006 00:30:34 GMT Message-Id: <200610050030.k950UYSW067655@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 107281 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 00:30:35 -0000 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