Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1293312

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

From Dan Williams <dan.j.williams@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] dma-debug: Fix dma_debug_entry offset calculation
Date 2015-12-16 20:10 +0100
Message-ID <qGpCx-5Mp-7@gated-at.bofh.it> (permalink)
References <qG9ep-3D3-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Dec 15, 2015 at 5:38 PM, Daniel Mentz <danielmentz@google.com> 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@google.com>

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] dma-debug: Fix dma_debug_entry offset calculation Daniel Mentz <danielmentz@google.com> - 2015-12-16 02:40 +0100
  Re: [PATCH] dma-debug: Fix dma_debug_entry offset calculation Dan Williams <dan.j.williams@intel.com> - 2015-12-16 20:10 +0100

csiph-web