Commit 1efd3fc0 authored by Will Deacon's avatar Will Deacon Committed by Konrad Rzeszutek Wilk

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-truckSuggested-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: default avatarClaire Chang <tientzu@chromium.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
parent 463e862a
...@@ -334,6 +334,7 @@ void __init swiotlb_exit(void) ...@@ -334,6 +334,7 @@ void __init swiotlb_exit(void)
if (!mem->nslabs) if (!mem->nslabs)
return; return;
pr_info("tearing down default memory pool\n");
size = array_size(sizeof(*mem->slots), mem->nslabs); size = array_size(sizeof(*mem->slots), mem->nslabs);
if (mem->late_alloc) if (mem->late_alloc)
free_pages((unsigned long)mem->slots, get_order(size)); free_pages((unsigned long)mem->slots, get_order(size));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment