Re: [PATCH] dma-debug: Fix dma_debug_entry offset calculation

From: Dan Williams
Date: Wed Dec 16 2015 - 14:00:52 EST


On Tue, Dec 15, 2015 at 5:38 PM, Daniel Mentz <danielmentz@xxxxxxxxxx> wrote:
> dma-debug uses struct dma_debug_entry to keep track of dma coherent
> memory allocation requests. The virtual address is converted into a pfn
> and an offset. Previously, the offset was calculated using an incorrect
> bit mask. As a result, we saw incorrect error messages from dma-debug
> like the following:
>
> "DMA-API: exceeded 7 overlapping mappings of cacheline 0x03e00000"
>
> Cacheline 0x03e00000 does not exist on our platform.
>
> Fixes: 0abdd7a81b7e ("dma-debug: introduce debug_dma_assert_idle()")
> Signed-off-by: Daniel Mentz <danielmentz@xxxxxxxxxx>

Looks good, thanks Daniel! I'll include this with some other fixes
I'm pushing up later today.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/