[PATCH] powerpc: Fix swiotlb ops for ppc64
Kumar Gala
galak at kernel.crashing.org
Thu Dec 8 16:46:54 EST 2011
On Dec 7, 2011, at 9:23 PM, Benjamin Herrenschmidt wrote:
> On Wed, 2011-12-07 at 11:19 -0600, Kumar Gala wrote:
>
>> struct dma_map_ops swiotlb_dma_ops = {
>> +#ifdef CONFIG_PPC64
>> + .alloc_coherent = swiotlb_alloc_coherent,
>> + .free_coherent = swiotlb_free_coherent,
>> +#else
>> .alloc_coherent = dma_direct_alloc_coherent,
>> .free_coherent = dma_direct_free_coherent,
>> +#endif
>> .map_sg = swiotlb_map_sg_attrs,
>> .unmap_sg = swiotlb_unmap_sg_attrs,
>> .dma_supported = swiotlb_dma_supported,
>
> Do we really need the ifdef ? What happens if we use
> swiotlb_alloc_coherent() on ppc32 ? Won't it allocate lowmem, realize
> that it doesn't need bouncing and be happy ?
>
> Cheers,
> Ben.
Becky any comment?
I know its been a while, but wondering if you had any reason to not do what Ben's suggesting ?
- k
More information about the Linuxppc-dev
mailing list