Re: [PATCH 1/2] kmemcheck v3

From: Christoph Lameter
Date: Fri Feb 08 2008 - 02:11:23 EST


On Thu, 7 Feb 2008, Vegard Nossum wrote:

> - DMA can be a problem since there's generally no way for kmemcheck to
> determine when/if a chunk of memory is used for DMA. Ideally, DMA should be
> allocated with untracked caches, but this requires annotation of the
> drivers in question.

There is a fundamental misunderstanding here: GFP_DMA allocations have
nothing to do with DMA. Rather GFP_DMA means allocate memory in a special
range of physical memory that is required by legacy devices that cannot
use the high address bits for one or the other reason. Any regular
memory can be used for DMA.

Could you refactor the patch a bit? This is quite a big patch.

--
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/