Hi! Have you tried dma_alloc_coherent()? According to [1] it should satisfy your needs.
1. http://www.mjmwired.net/kernel/Documentation/DMA-API.txt Best wishes Vladimir Murzin Best wishes, Vladimir Murzin -----Original Message----- From: kc <ckh...@gmail.com> Sender: android-kernel@googlegroups.com Date: Fri, 17 Feb 2012 18:55:24 To: Android Linux Kernel Development<android-kernel@googlegroups.com> Reply-To: android-kernel@googlegroups.com Subject: [android-kernel] How to allocate memory which can be specified as NON-cacheable? Hi, I want allocate non-cacheable physical memory for usage in the driver, (ie. I don't want the data being cached into the CPU's data cache when the data are accessed) how could I do this? there are functions like kmalloc(), get_free_pages, vmalloc, etc, but how could specify the data is NOT cacheable when call these functions? Thanks! -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel