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
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to