diff options
author | Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> | 2012-12-28 09:08:51 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-01-10 17:01:53 +1100 |
commit | 7f966d394d6630313e02679de1875f67978f8bdd (patch) | |
tree | 38eae543b04bd558428f1079e68be7c198ee5cc7 /arch/powerpc/kernel/of_platform.c | |
parent | d69f1d7fa156ae2883bb3ba099046319cf00ccf6 (diff) | |
download | talos-op-linux-7f966d394d6630313e02679de1875f67978f8bdd.tar.gz talos-op-linux-7f966d394d6630313e02679de1875f67978f8bdd.zip |
powerpc/iommu: Prevent false TCE leak message
When a device DMA window includes the address 0, it's reserved in the
TCE bitmap to avoid returning that address to drivers.
When the device is removed, the bitmap is checked for any mappings not
removed by the driver, indicating a possible DMA mapping leak. Since the
reserved address is not cleared, a message is printed, warning of such a
leak.
Check for the reservation, and clear it before checking for any other
standing mappings.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/of_platform.c')
0 files changed, 0 insertions, 0 deletions