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,



I 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 couple of times that even 32-bit controllers don`t implement the full 32-address lines. Typically 2GB limits are found.



--HPS 

 

-----Original message-----

> From:aseem.jolly <aseem.jolly@gmail.com <mailto:aseem.jolly@gmail.com> >

> Sent: Saturday 3rd August 2013 2:17

> To: freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org> 

> Subject: USB DMA memory Allocation

> 

> It seems to me that Intel ehci controller supports 64 DMA address lines

> (HCCPARAMS register's 0 bit is set hardwired) then why do force DMA

> allocation from [0 4GB] range.

> 

> I tried to enable 64 bit DMA allocations by modifying call to

> 'usb_dma_tag_setup' in usb_controller.c and usb_transfer.c but got a device

> disconnect after we preallocated DMA memory for USB transfers.

> 

> Would be really great if someone could guide me on this.

> 

> 

> 

> 

> --

> View this message in context: http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506.html <http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506.html>; 

> Sent from the freebsd-usb mailing list archive at Nabble.com.

> _______________________________________________

> freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org>  mailing list

> http://lists.freebsd.org/mailman/listinfo/freebsd-usb <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>; 

> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org <mailto:freebsd-usb-unsubscribe@freebsd.org> "

> 




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>