Skip to content

Commit 1efd3fc

Browse files
willdeaconkonradwilk
authored andcommitted
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 <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/20210705190352.GA19461@willie-the-truck Suggested-by: Konrad Rzeszutek Wilk <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Tested-by: Claire Chang <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent 463e862 commit 1efd3fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/dma/swiotlb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ void __init swiotlb_exit(void)
334334
if (!mem->nslabs)
335335
return;
336336

337+
pr_info("tearing down default memory pool\n");
337338
size = array_size(sizeof(*mem->slots), mem->nslabs);
338339
if (mem->late_alloc)
339340
free_pages((unsigned long)mem->slots, get_order(size));

0 commit comments

Comments
 (0)