]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Jan 2012 10:23:57 +0000 (10:23 +0000)
commit03fa535d2faf6d3203e1e3404e0e47083a8e2b64
treea1831403d646336b022b973fd48427263d349e8b
parentc2b9687da6bfc5d7cf3d1592c792e66fc4478cac
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