All of lore.kernel.org
 help / color / mirror / Atom feed
* out of dma-memory when using usblp-module in driverdomain
@ 2007-03-25 14:29 Patrick Scharrenberg
  2007-03-26  7:23 ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Scharrenberg @ 2007-03-25 14:29 UTC (permalink / raw)
  To: xen-devel

Hi!

I tried attaching an usb-printer to an usb-port of a driver-domain.
On loading the module usblp I get the following error:

    /usr/src/xen/xen-unstable.hg/linux-2.6.18-xen/drivers/usb/class/usblp.c:
    out of memory for write buf
    usblp: probe of 2-1:1.0 failed with error -5


I figured out, that reducing USBLP_BUF_SIZE (usb/class/usblp.c) form
8192 to some smaller value, e.g. 4096 it works fine, but that's just a
workaround.

USBLP_BUF_SIZE is used to "usb_buffer_alloc" (usb/core/usb.c) dma memory:

>From usb.c:
     usb_buffer_alloc - allocate dma-consistent buffer for
URB_NO_xxx_DMA_MAP

but here I'm out..


cheers
~patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-10 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-25 14:29 out of dma-memory when using usblp-module in driverdomain Patrick Scharrenberg
2007-03-26  7:23 ` Jan Beulich
2007-04-10 15:01   ` Patrick Scharrenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.