Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2013 14:26:52 -0500
From:      Aman Sawrup <aman.sawrup@bluecoat.com>
To:        freebsd-usb@freebsd.org
Subject:   Re: Insufficient memory reserved for xfer->dma_page_ptr?
Message-ID:  <5125237C.7040101@bluecoat.com>
In-Reply-To: <201302201551.56288.hselasky@c2i.net>
References:  <1360360082956-5785167.post@n5.nabble.com> <201302200836.56015.hselasky@c2i.net> <5124E13C.10003@bluecoat.com> <201302201551.56288.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This setting worked!

Thanks
Aman

On 02/20/2013 09:51 AM, Hans Petter Selasky wrote:
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5125237C.7040101>