]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
swiotlb: Emit diagnostic in swiotlb_exit()
authorWill Deacon <will@kernel.org>
Tue, 20 Jul 2021 13:38:25 +0000 (14:38 +0100)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Sat, 24 Jul 2021 00:16:14 +0000 (20:16 -0400)
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>
kernel/dma/swiotlb.c

index 7948f274f9bb83bca7bead437769cf9d88560856..b3c793ed9e647484ed054d1c2ba48c564a54ec1f 100644 (file)
@@ -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));