[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201103061744.15946.oliver@neukum.org>
Date: Sun, 6 Mar 2011 17:44:15 +0100
From: Oliver Neukum <oliver@...kum.org>
To: Florian Mickler <florian@...kler.org>
Cc: mchehab@...radead.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
"Greg Kroah-Hartman" <greg@...ah.com>,
"Rafael J. Wysocki" <rjw@...k.pl>,
Maciej Rutecki <maciej.rutecki@...il.com>
Subject: Re: [PATCH] [media] dib0700: get rid of on-stack dma buffers
Am Sonntag, 6. März 2011, 16:45:21 schrieb Florian Mickler:
> Hm.. allocating the buffer
> in the probe routine and deallocating it in the usb_driver disconnect
> callback should work?
Yes.
> How come that it must be a seperate kmalloc buffer? Is it some aligning
> that kmalloc garantees?
On some CPUs DMA affects on main CPU, not the CPU caches. You
need to synchronize the cache before you start DMA and must not touch
the buffer until DMA is finished. This applies with a certain granularity
that kmalloc respects. The ugly details are in Documentation.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists