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

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: 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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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));