From owner-freebsd-usb@FreeBSD.ORG Wed Feb 20 14:50:53 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 70E3E80D for ; Wed, 20 Feb 2013 14:50:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0AB06913 for ; Wed, 20 Feb 2013 14:50:52 +0000 (UTC) X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 380834828; Wed, 20 Feb 2013 15:50:44 +0100 From: Hans Petter Selasky To: Aman Sawrup Subject: Re: Insufficient memory reserved for xfer->dma_page_ptr? Date: Wed, 20 Feb 2013 15:51:56 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <1360360082956-5785167.post@n5.nabble.com> <201302200836.56015.hselasky@c2i.net> <5124E13C.10003@bluecoat.com> In-Reply-To: <5124E13C.10003@bluecoat.com> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org 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: Wed, 20 Feb 2013 14:50:53 -0000 On Wednesday 20 February 2013 15:44:12 Aman Sawrup wrote: > Hi Hans, > > If I understand correctly, I need to set bufsize in struct usb_config as > follows: > > [UMASS_T_BBB_DATA_READ] = { > .type = UE_BULK, > .endpoint = UE_ADDR_ANY, > .direction = UE_DIR_IN, > .frames = 128, > .bufsize = UMASS_BULK_SIZE * 128, > .flags = {.proxy_buffer = 1,.short_xfer_ok = 1, > UMASS_USB_FLAGS}, .callback = &umass_t_bbb_data_read_callback, > .timeout = 0, /* overwritten later */ > }, > > Thanks > Aman Yes, that is correct: "* 128" Do you see any problems using this setting? Also note that unless you specify ext_buffer in flags, the USB API will allocate a buffer for you. --HPS