• Robin Murphy's avatar
    dma-debug: Make leak-like behaviour apparent · ceb51173
    Robin Murphy authored
    Now that we can dynamically allocate DMA debug entries to cope with
    drivers maintaining excessively large numbers of live mappings, a driver
    which *does* actually have a bug leaking mappings (and is not unloaded)
    will no longer trigger the "DMA-API: debugging out of memory - disabling"
    message until it gets to actual kernel OOM conditions, which means it
    could go unnoticed for a while. To that end, let's inform the user each
    time the pool has grown to a multiple of its initial size, which should
    make it apparent that they either have a leak or might want to increase
    the preallocation size.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Tested-by: default avatarQian Cai <cai@lca.pw>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    ceb51173
DMA-API.txt 28 KB