Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2013 10:58:28 +0200
From:      =?utf-8?Q?Hans_Petter_Selasky?= <hans.petter.selasky@bitfrost.no>
To:        =?utf-8?Q?aseem=2Ejolly?= <aseem.jolly@gmail.com>,  =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= <freebsd-usb@freebsd.org>
Subject:   RE: USB DMA memory Allocation
Message-ID:  <zarafa.51fcc634.4d66.6bc5f4d2757b93c5@mail.lockless.no>
In-Reply-To: <1375489015367-5833506.post@n5.nabble.com>
References:  <1375489015367-5833506.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,=0D=0A=0D=0AI think there are a few bits to put the high 32-bits into =
the transfer descriptors and such missing. You are right we don`t really =
need to use 32-bit only for the USB controllers. Though we`ve seen a coup=
le of times that even 32-bit controllers don`t implement the full 32-addr=
ess lines. Typically 2GB limits are found.=0D=0A=0D=0A--HPS=20=0D=0A=20=0D=
=0A-----Original message-----=0D=0A> From:aseem.jolly <aseem.jolly@gmail.=
com <mailto:aseem.jolly@gmail.com> >=0D=0A> Sent: Saturday 3rd August 201=
3 2:17=0D=0A> To: freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org=
>=20=0D=0A> Subject: USB DMA memory Allocation=0D=0A>=20=0D=0A> It seems =
to me that Intel ehci controller supports 64 DMA address lines=0D=0A> (HC=
CPARAMS register's 0 bit is set hardwired) then why do force DMA=0D=0A> a=
llocation from [0 4GB] range.=0D=0A>=20=0D=0A> I tried to enable 64 bit D=
MA allocations by modifying call to=0D=0A> 'usb_dma_tag_setup' in usb_con=
troller.c and usb_transfer.c but got a device=0D=0A> disconnect after we =
preallocated DMA memory for USB transfers.=0D=0A>=20=0D=0A> Would be real=
ly great if someone could guide me on this.=0D=0A>=20=0D=0A>=20=0D=0A>=20=
=0D=0A>=20=0D=0A> --=0D=0A> View this message in context: http://freebsd.=
1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506.html <http://fr=
eebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506.html>=20=0D=
=0A> Sent from the freebsd-usb mailing list archive at Nabble.com.=0D=0A>=
 _______________________________________________=0D=0A> freebsd-usb@freeb=
sd.org <mailto:freebsd-usb@freebsd.org>  mailing list=0D=0A> http://lists=
=2Efreebsd.org/mailman/listinfo/freebsd-usb <http://lists.freebsd.org/mai=
lman/listinfo/freebsd-usb>=20=0D=0A> To unsubscribe, send any mail to "fr=
eebsd-usb-unsubscribe@freebsd.org <mailto:freebsd-usb-unsubscribe@freebsd=
=2Eorg> "=0D=0A>=20=0D=0A=0D=0A
From owner-freebsd-usb@FreeBSD.ORG  Sat Aug  3 17:34:01 2013
Return-Path: <owner-freebsd-usb@FreeBSD.ORG>
Delivered-To: freebsd-usb@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id F2795141
 for <freebsd-usb@freebsd.org>; Sat,  3 Aug 2013 17:34:01 +0000 (UTC)
 (envelope-from aseem.jolly@gmail.com)
Received: from sam.nabble.com (sam.nabble.com [216.139.236.26])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id D42112858
 for <freebsd-usb@freebsd.org>; Sat,  3 Aug 2013 17:34:01 +0000 (UTC)
Received: from [192.168.236.26] (helo=sam.nabble.com)
 by sam.nabble.com with esmtp (Exim 4.72)
 (envelope-from <aseem.jolly@gmail.com>) id 1V5fiF-0001l8-HX
 for freebsd-usb@freebsd.org; Sat, 03 Aug 2013 10:33:55 -0700
Date: Sat, 3 Aug 2013 10:33:55 -0700 (PDT)
From: "aseem.jolly" <aseem.jolly@gmail.com>
To: freebsd-usb@freebsd.org
Message-ID: <1375551235535-5833585.post@n5.nabble.com>
In-Reply-To: <zarafa.51fcc634.4d66.6bc5f4d2757b93c5@mail.lockless.no>
References: <1375489015367-5833506.post@n5.nabble.com>
 <zarafa.51fcc634.4d66.6bc5f4d2757b93c5@mail.lockless.no>
Subject: RE: USB DMA memory Allocation
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-usb@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-usb>,
 <mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb>;
List-Post: <mailto:freebsd-usb@freebsd.org>
List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>,
 <mailto:freebsd-usb-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Aug 2013 17:34:02 -0000

I am getting the following error 'USB_ERR_NOMEM' when I try to allocate DMA
memrory from [0 4GB] range, I have to enable 64 bit memory allocation.

Can you please briefly explain what I need to do to enable this support?



--
View this message in context: http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506p5833585.html
Sent from the freebsd-usb mailing list archive at Nabble.com.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zarafa.51fcc634.4d66.6bc5f4d2757b93c5>