ARM: add dma coherent region reporting via procfs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Jan 2012 23:08:07 +0000 (23:08 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Feb 2013 18:18:23 +0000 (20:18 +0200)
commitac6c279a7fa0db46fc3c893763ef97efedbdc171
tree8095700fd3ef02aab58e4034b6ca367a2bc32d31
parent567f29ffd86f9836da7b6ab96bd1bb8e2e88fbd9
ARM: add dma coherent region reporting via procfs

Add a new seqfile for reporting coherent DMA allocations.  This contains
the address range, size and the function which was used to allocate
each region, allowing these allocations to be viewed in much the same
way as /proc/vmallocinfo.

The DMA coherent region has limited space, so this allows allocation
failures to be viewed, as well as finding out how much space is being
used.

Make sure this file is only readable by root - same as vmallocinfo - to
prevent information leakage.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c
arch/arm/mm/vmregion.c
arch/arm/mm/vmregion.h