From owner-svn-src-head@FreeBSD.ORG Thu May 28 08:00:12 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 937341FA; Thu, 28 May 2015 08:00:12 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 81C633EB; Thu, 28 May 2015 08:00:12 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4S80COo059967; Thu, 28 May 2015 08:00:12 GMT (envelope-from scottl@FreeBSD.org) Received: (from scottl@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4S80C9G059966; Thu, 28 May 2015 08:00:12 GMT (envelope-from scottl@FreeBSD.org) Message-Id: <201505280800.t4S80C9G059966@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: scottl set sender to scottl@FreeBSD.org using -f From: Scott Long Date: Thu, 28 May 2015 08:00:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283643 - head/sys/dev/bwi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2015 08:00:12 -0000 Author: scottl Date: Thu May 28 08:00:11 2015 New Revision: 283643 URL: https://svnweb.freebsd.org/changeset/base/283643 Log: Follow-up r283636 with a fix to the other abuses of BUS_SPACE_MAXSIZE_32BIT. It makes no sense to specify a segment size that's larger than the total amount that you want to allocate. Modified: head/sys/dev/bwi/if_bwi.c Modified: head/sys/dev/bwi/if_bwi.c ============================================================================== --- head/sys/dev/bwi/if_bwi.c Thu May 28 06:45:13 2015 (r283642) +++ head/sys/dev/bwi/if_bwi.c Thu May 28 08:00:11 2015 (r283643) @@ -1945,7 +1945,7 @@ bwi_dma_alloc(struct bwi_softc *sc) NULL, NULL, tx_ring_sz, 1, - BUS_SPACE_MAXSIZE_32BIT, + tx_ring_sz, 0, NULL, NULL, &sc->sc_txring_dtag); @@ -1975,7 +1975,7 @@ bwi_dma_alloc(struct bwi_softc *sc) NULL, NULL, rx_ring_sz, 1, - BUS_SPACE_MAXSIZE_32BIT, + rx_ring_sz, 0, NULL, NULL, &sc->sc_rxring_dtag); @@ -2100,7 +2100,7 @@ bwi_dma_txstats_alloc(struct bwi_softc * NULL, NULL, dma_size, 1, - BUS_SPACE_MAXSIZE_32BIT, + dma_size, 0, NULL, NULL, &st->stats_ring_dtag); @@ -2148,7 +2148,7 @@ bwi_dma_txstats_alloc(struct bwi_softc * NULL, NULL, dma_size, 1, - BUS_SPACE_MAXSIZE_32BIT, + dma_size, 0, NULL, NULL, &st->stats_dtag);