aboutsummaryrefslogtreecommitdiff
path: root/kernel/dma/swiotlb.c
diff options
context:
space:
mode:
authorGravatar Will Deacon <will@kernel.org> 2021-07-20 14:38:25 +0100
committerGravatar Konrad Rzeszutek Wilk <konrad@kernel.org> 2021-07-23 20:16:14 -0400
commit1efd3fc0ccf52e1aa5f0bf5b0d82847180d20951 (patch)
tree4648f492e5567411b7a07d4225bca7607a4a7ece /kernel/dma/swiotlb.c
parentswiotlb: Convert io_default_tlb_mem to static allocation (diff)
downloadlinux-1efd3fc0ccf52e1aa5f0bf5b0d82847180d20951.tar.gz
linux-1efd3fc0ccf52e1aa5f0bf5b0d82847180d20951.tar.bz2
linux-1efd3fc0ccf52e1aa5f0bf5b0d82847180d20951.zip
swiotlb: Emit diagnostic in swiotlb_exit()
A recent debugging session would have been made a little bit easier if we had noticed sooner that swiotlb_exit() was being called during boot. Add a simple diagnostic message to swiotlb_exit() to complement the one from swiotlb_print_info() during initialisation. Cc: Claire Chang <tientzu@chromium.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/20210705190352.GA19461@willie-the-truck Suggested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Tested-by: Nathan Chancellor <nathan@kernel.org> Tested-by: Claire Chang <tientzu@chromium.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Diffstat (limited to 'kernel/dma/swiotlb.c')
-rw-r--r--kernel/dma/swiotlb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 7948f274f9bb..b3c793ed9e64 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -334,6 +334,7 @@ void __init swiotlb_exit(void)
if (!mem->nslabs)
return;
+ pr_info("tearing down default memory pool\n");
size = array_size(sizeof(*mem->slots), mem->nslabs);
if (mem->late_alloc)
free_pages((unsigned long)mem->slots, get_order(size));