If you allocate memory, using __get_dma_pages, you'll get
aligned blocks. I use __get_dma_pages(GFP_KERNEL,4) for
64KB blocks and __get_dma_pages(GFP_KERNEL,5) for 128KB ones.
I'm not sure that it is correct way, but it seems to work right as supposed.
|