alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Re: USB transfer_buffer allocations on 64bit systems
@ 2010-04-07 17:55 Takashi Iwai
  2010-04-07 19:13 ` Alan Stern
  0 siblings, 1 reply; 23+ messages in thread
From: Takashi Iwai @ 2010-04-07 17:55 UTC (permalink / raw)
  To: Daniel Mack
  Cc: alsa-devel, linux-usb, Greg KH, Greg KH, linux-kernel, Alan Stern,
	Pedro Ribeiro, akpm

At Wed, 7 Apr 2010 18:16:03 +0200,
Daniel Mack wrote:
> 
> On Wed, Apr 07, 2010 at 11:55:19AM -0400, Alan Stern wrote:
> > On Wed, 7 Apr 2010, Greg KH wrote:
> > 
> > > Alan, any objection to just using usb_buffer_alloc() for every driver?
> > > Or is that too much overhead?
> > 
> > I don't know what the overhead is.  But usb_buffer_alloc() requires the 
> > caller to keep track of the buffer's DMA address, so it's not a simple 
> > plug-in replacement.  In addition, the consistent memory that 
> > usb_buffer_alloc() provides is a scarce resource on some platforms.
> > 
> > Writing new functions is the way to go.
> 
> Ok, I'll write some dummies for usb_malloc() and usb_zalloc() which
> will just call kmalloc() with GFP_DMA32 for now.

Can't we provide only zalloc() variant?  Zero'ing doesn't cost much,
and the buffer allocation shouldn't be called too often.

> And while at it,
> usb_alloc_buffer() will be renamed to usb_alloc_consistent().

Most of recent functions are named with "coherent".


thanks,

Takashi

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

end of thread, other threads:[~2010-05-11 15:34 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <g2h74fd948d1004141820ladc1941eo732d059dd678df0a@mail.gmail.com>
     [not found] ` <Pine.LNX.4.44L0.1004151114490.1562-100000@iolanthe.rowland.org>
     [not found]   ` <t2r74fd948d1004191716l49dedc2p25a27da39bcc614a@mail.gmail.com>
2010-05-07  7:48     ` USB transfer_buffer allocations on 64bit systems Daniel Mack
2010-05-07  9:47       ` Clemens Ladisch
2010-05-07 10:24         ` Daniel Mack
2010-05-07 14:51           ` [alsa-devel] " Alan Stern
2010-05-10  2:50             ` FUJITA Tomonori
2010-05-10  9:21               ` David Woodhouse
     [not found]                 ` <1273483265.372.3383.camel-uXGAPMMVk8bAQYKIod7YupZV94DADvEd@public.gmane.org>
2010-05-10 14:58                   ` [alsa-devel] " Alan Stern
     [not found]                     ` <Pine.LNX.4.44L0.1005101049100.1626-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-05-11  1:06                       ` FUJITA Tomonori
     [not found]                         ` <20100511100637D.fujita.tomonori-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2010-05-11 14:00                           ` Alan Stern
2010-05-11 14:22                             ` FUJITA Tomonori
2010-05-11 14:24                             ` Konrad Rzeszutek Wilk
2010-05-11 14:38                               ` FUJITA Tomonori
2010-05-11 15:04                                 ` Alan Stern
2010-05-11 15:34                                   ` FUJITA Tomonori
     [not found]           ` <20100507102408.GM30801-ahpEBR4enfnCULTFXS99ULNAH6kLmebB@public.gmane.org>
2010-05-10 14:31             ` Konrad Rzeszutek Wilk
     [not found]         ` <4BE3E1B9.5020602-P6GI/4k7KOmELgA04lAiVw@public.gmane.org>
2010-05-07 11:42           ` Oliver Neukum
     [not found]             ` <201005071342.34923.oneukum-l3A5Bk7waGM@public.gmane.org>
2010-05-07 11:47               ` Oliver Neukum
2010-05-07 11:58                 ` Daniel Mack
     [not found]                   ` <20100507115810.GN30801-ahpEBR4enfnCULTFXS99ULNAH6kLmebB@public.gmane.org>
2010-05-07 14:45                     ` [alsa-devel] " Alan Stern
2010-04-07 17:55 Takashi Iwai
2010-04-07 19:13 ` Alan Stern
2010-04-08  0:33   ` Greg KH
2010-04-09  0:01     ` Robert Hancock
2010-04-09 16:50       ` Sarah Sharp
2010-04-09 23:38         ` Robert Hancock
2010-04-10  8:34           ` Daniel Mack
2010-04-10 17:02             ` [alsa-devel] " Robert Hancock
2010-04-12 18:56               ` Sarah Sharp
2010-04-12 20:39                 ` Robert Hancock
2010-04-12 20:58                   ` Sarah Sharp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).