]> Pileus Git - ~andy/linux/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)
commit45cd5290bfd358e9885c0bf47a8c46671a92f716
treea1831403d646336b022b973fd48427263d349e8b
parent6bebb572404f96d367170fb263603cda7251f932
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