Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4565596pxv; Tue, 20 Jul 2021 06:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy9AkRZcp5rak/aCezu1ShbeIj8BIE9K1JE12iDwBcx86FTs1OerlDBJ+hsrp5xqKldU/1 X-Received: by 2002:a17:906:538e:: with SMTP id g14mr13564547ejo.136.1626788784094; Tue, 20 Jul 2021 06:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626788784; cv=none; d=google.com; s=arc-20160816; b=dxuT/6lC/pi07KLRLudFX/RV+ZhwKrxS+SsIrkWyXW6mbwafAj08e33QxvOTVt0/Fc oh5crQqvpaqk1fAvpDGB1j4UWeCyz2sBYJncRv9gISQfaH0g4oB+yifk47cFmzKoI1rF Ksfsx2Irrw4KCI3n7wruML+eOmSH+oCLKjLza99Vd2m7xgbdiyHuKSIhMrRE0kvZqr5p uh1XlgL9ipJjV5ERNNB6txqMAnrPxINnbwFoPTrPvkowDE2lSKIPXAfXDwee3xUNEt8Y ufXUwydIRZN1E/QF3PZLaTB4Pimw56iNjwsDI5lDOzRl/8fQ7BwQwSBdvKW0fqqJnEfg IdDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T+eQKjkfBcF2yc8QQ9bsE0QV9PedJs2ZwVQbG7eXgJU=; b=bQxZ7hmIP6M7UHRKl8S5c1D4gEIdTAa98GBnM/NTtwOrUxJU0F7FKf7YBRmskW4oAp cMIBL5RJ9PmwG4lQGmVPPV4FkhmCyeYArp2iDt1bcPsaFXEkUhS4myu3NXjp3Au2cGSd zSDAzK26KyeVuuU+69QAzpGtu0BuQuki7yY8x235Fvd5xXhHV7RjgOdFqPOa6+L1tGyV IwHMj+/UbtZEA3Tjl4TyY5yjfZMO87papdFxCma4AI4OAVCN1+L7JYqhH1giaX+xduOW JWnQEIaLDJSJQu1eCdVL26TxttFja7mxwyX8GwUjso2Sb9HkUCgztLh2dhG0i3bT15kD XWHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sWQtqGYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi3si25864730ejb.640.2021.07.20.06.46.00; Tue, 20 Jul 2021 06:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sWQtqGYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238554AbhGTNBK (ORCPT + 99 others); Tue, 20 Jul 2021 09:01:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:57424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbhGTM6C (ORCPT ); Tue, 20 Jul 2021 08:58:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27A76611CE; Tue, 20 Jul 2021 13:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626788320; bh=IMx3IbZKVqWumlzk+zzCwsBjRHxMO3KKzzyWrJuP4hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sWQtqGYkEIpAvbvqwuj9mdWRgtJu9R68msQKV1qtpcN/wsj1wj55RxLL39COKvDn+ qMJmJXjgi/ohYEaf3TO0ZSniwMh+/CgrQpIosyyJsWW/eUQudlm4YwiALtnlGORJRh Uq07gOuLGQGbu1gXxGo3Ge0jNf+6fpdsmKQETkLgU4/fFm9zTe4sWnJMcedKCDRt4X g1JDVr2oNvT1P8TiiIJiRavMW7XJmR8xblWCMtLuxpMaeLNYfdCbrPfW57GupWI4hY 51bIm5xUIT2pr28+KYFZmf18JTBUscU1kxiPctR7y64vKjqykK58NgtGcqMNZKWZDG Syi8UTjoqhZuw== From: Will Deacon To: iommu@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Guenter Roeck , Claire Chang , Christoph Hellwig , Robin Murphy , Konrad Rzeszutek Wilk , Nathan Chancellor Subject: [PATCH v2 3/4] swiotlb: Emit diagnostic in swiotlb_exit() Date: Tue, 20 Jul 2021 14:38:25 +0100 Message-Id: <20210720133826.9075-4-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210720133826.9075-1-will@kernel.org> References: <20210720133826.9075-1-will@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Christoph Hellwig Cc: Robin Murphy Link: https://lore.kernel.org/r/20210705190352.GA19461@willie-the-truck Suggested-by: Konrad Rzeszutek Wilk Tested-by: Nathan Chancellor Tested-by: Claire Chang Reviewed-by: Christoph Hellwig Signed-off-by: Will Deacon --- kernel/dma/swiotlb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 7948f274f9bb..b3c793ed9e64 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -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)); -- 2.32.0.402.g57bb445576-goog