How to allocate memory which can be specified as NON-cacheable?
1,809 views
Skip to first unread message
kc
unread,
Feb 20, 2012, 6:27:20 AM2/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android...@googlegroups.com
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!
kc
kc
unread,
Feb 17, 2012, 9:55:24 PM2/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android Linux Kernel Development
Vladimir Murzin
unread,
Feb 23, 2012, 10:06:39 PM2/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android...@googlegroups.com
Hi!
Have you tried dma_alloc_coherent()? According to [1] it should satisfy your needs.