[PATCH v6 00/11] mmc: use nonblock mmc requests to minimize latency

saeed bishara saeed.bishara at gmail.com
Mon Jun 27 06:34:48 EDT 2011


>
> +static inline void __dma_sync(void)
> +{
> +       dsb();
> +}
> +
>  /*
>  * Return whether the given device DMA address mask can be supported
>  * properly.  For example, if your device can only drive the low 24-bits
> @@ -378,6 +383,7 @@ static inline dma_addr_t dma_map_single(struct device *dev, void *cpu_addr,
>        BUG_ON(!valid_dma_direction(dir));
>
>        addr = __dma_map_single(dev, cpu_addr, size, dir);
> +       __dma_sync();
Russell,
  I'm curious about the correctness of this patch for systems with
outer cache. shouldn't the dsb be issued before the outer cache
maintenance?
saeed



More information about the linux-arm-kernel mailing list