On Wed, Jan 29, 2014 at 6:07 PM, Phoebe Buckheister <phoebe.buckheis...@itwm.fraunhofer.de> wrote: > On Tue, 28 Jan 2014 23:40:41 +0400 > Dmitry Eremin-Solenikov <dbarysh...@gmail.com> wrote: >> Never ever put spi transfer buffer onto the stack. It is not dma safe. >> Use kmalloc/kzalloc. > > Noted. The GFP_DMA flag just confused for a few minutes, but looking at > some DMA Documentation, apparently all kmalloc() memory is safe. Good > to know. :)
You don't have to use GFP_DMA. Just GFP_ATOMIC or GFP_KERNEL depending on the context, But definitely not stack. -- With best wishes Dmitry ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel