Messages in this thread | | | Subject | Re: Will __pa(vmalloc()) ever work? | From | Gerd Knorr <> | Date | 30 May 2005 11:38:32 +0200 |
| |
Timur Tabi <timur.tabi@ammasso.com> writes:
> Also, does the pgd/pmd/pte page-table walking work on addresses > returned by kmalloc(), or do I have to use __pa() to get the physical > address?
You should use vmalloc_to_page() (this does the page-table walking with correct locking), then the usual dma mapping interface (pci_map_page() or pci_map_sg()) to get bus address(es) you can pass to your device for DMA.
Gerd
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |