mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
FROMLIST: 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> Link: https://lore.kernel.org/r/20210720133826.9075-4-will@kernel.org Signed-off-by: Will Deacon <willdeacon@google.com> Bug: 190591509 Change-Id: I46bf21785d11822471a3db9a67adcb77e4a807f0
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user