From owner-freebsd-usb@FreeBSD.ORG Sat Aug 3 08:58:30 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 27B337E for ; Sat, 3 Aug 2013 08:58:30 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id AA5922C49 for ; Sat, 3 Aug 2013 08:58:29 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id A201D7A121; Sat, 3 Aug 2013 10:58:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 11CCF8F15EC; Sat, 3 Aug 2013 10:58:29 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GJv7oJrDEuWk; Sat, 3 Aug 2013 10:58:28 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 138CF8F15EB; Sat, 3 Aug 2013 10:58:28 +0200 (CEST) Subject: RE: USB DMA memory Allocation From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?aseem=2Ejolly?= , =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= Date: Sat, 3 Aug 2013 10:58:28 +0200 Mime-Version: 1.0 In-Reply-To: <1375489015367-5833506.post@n5.nabble.com> References: <1375489015367-5833506.post@n5.nabble.com> X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Aug 2013 08:58:30 -0000 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 >=0D=0A> Sent: Saturday 3rd August 201= 3 2:17=0D=0A> To: 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 =20=0D= =0A> Sent from the freebsd-usb mailing list archive at Nabble.com.=0D=0A>= _______________________________________________=0D=0A> freebsd-usb@freeb= sd.org mailing list=0D=0A> http://lists= =2Efreebsd.org/mailman/listinfo/freebsd-usb =20=0D=0A> To unsubscribe, send any mail to "fr= eebsd-usb-unsubscribe@freebsd.org "=0D=0A>=20=0D=0A=0D=0A From owner-freebsd-usb@FreeBSD.ORG Sat Aug 3 17:34:01 2013 Return-Path: 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 ; 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 ; 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 ) 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" To: freebsd-usb@freebsd.org Message-ID: <1375551235535-5833585.post@n5.nabble.com> In-Reply-To: References: <1375489015367-5833506.post@n5.nabble.com> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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.