On Thu, May 17, 2018 at 07:01:30PM -0400, Don Dutile wrote: > Additionally, I believe dma-debug has a bug: > -- doing a check on an op when there is no op in the dma-ops struct is not correct: No, that is a feature. > Note: above: debug_dma_sync is called indep of whether an op function exists. > For hfi1 & qib & rxe -- which use dma-virt-ops for non-IOMMU-enabled configs, > the sync_syngle_for_cpu ops does not exist, yet debug_dma_sync is still called. Yes, if you call dma ops you better make sure you respect the invariants. This is the only way to get the code right for the 90% case where people develop on x86 with cache coherent DMA but do calls that only exist on non-coherent implementations. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html