Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4213369pxv; Mon, 19 Jul 2021 20:41:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1GAxw8K4+koDCcY3GbxMxyi152E3aMOhlmGxFL/CC4p/arvdJyX5YVRtHq8ysJIYoNF37 X-Received: by 2002:a17:906:1f82:: with SMTP id t2mr6230943ejr.499.1626752473793; Mon, 19 Jul 2021 20:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626752473; cv=none; d=google.com; s=arc-20160816; b=csZPw7Y/NUpBy4JwPwWT99gLQniZw/qiuKnvyp4J+3frIgXzrOqFxG/DXR9Kt+0am/ JrhfWosX9+rt4sLM5FJFsTPEUqujJ8IUVskhQF2YkufQR2zBfHTBv8pZdQQMYJW95ieB xgX1JZ5q11Vh63tVPbJegnrZv6nKSzfhDBnoDzWxyT8QsINJz9UPGUPZBghkSH5M4mM5 qfD6pxnqBGlgXdg1UHoD6lIMRN7Gsa7vvHkXPW2Tbs0y+oyj3o3NqO4QWBigxKWQ/Q0t x4DV9bUYWdiVoy/c/kdMxupD4kCMeE70IbfUncobdi2vQkxy22lf2E8ngjGTOdUgcqAq eulg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Hsld/MqEdNnnYH5CtR/OwDOn1BQhsfMhHOgaoiJiVrI=; b=EZLX9my8jwBg/6UJpAjCEzL2+IciO6kwOT6QDgcmuPprd9iUSdVkKsoeZ0tBYz/LE5 IoShvoRXhxRlCYw9YlGUWpR8zaFEuCyid5bNkWUp0wW/yxSO9FjDstAR5wolzDjMGmJg aX8/gCO6GMR66SAd2lB/6cqyVuFS+GPPvZy0q8s3X28HgEdxSfkQqD11p+73Y1dLwix0 a4uUTlomiEtvZHSYyS5NL/2t+lDKT6w3hSSBDZ/eQoW06Q50ODjgAqfW9rhl5BR2W0iO R5ETs/0pX/9fR2907UXVAyefADSl2vqqW54hqNVE5dGDcQOufBCUnYYSmM9iGV5Dzooh YScQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dpHwDqJx; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si22747474edt.334.2021.07.19.20.40.50; Mon, 19 Jul 2021 20:41:13 -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=@chromium.org header.s=google header.b=dpHwDqJx; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241756AbhGTC5v (ORCPT + 99 others); Mon, 19 Jul 2021 22:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347077AbhGTCzl (ORCPT ); Mon, 19 Jul 2021 22:55:41 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B3FC061574 for ; Mon, 19 Jul 2021 20:36:19 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id o8so17988215ilf.4 for ; Mon, 19 Jul 2021 20:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hsld/MqEdNnnYH5CtR/OwDOn1BQhsfMhHOgaoiJiVrI=; b=dpHwDqJxuZ7I6pCO4kOk3S3DbouJqnIXXFCmTmGA6eKMwwLcF3WIzUt4VaApCA9XTx wIIl/B2FjV8Y3fkzdWjRp/Bv/kQh0JjXXtcusNltw0bRGIuaCQtQaMrv3N58+LB/d3vJ eOF0MjOzUlh092Mwf3jLAdi/amtGkCcjBI4As= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hsld/MqEdNnnYH5CtR/OwDOn1BQhsfMhHOgaoiJiVrI=; b=gIVhYzA/REpbx5q+XYnDLgtTvZkOX8bUTQ8Ptn8EG8BdovRsuiz1/N7B8aroUDrKuA Me0ig/A83R0/jfpgLDECUpDcLxHY/0zDVDMm5RStJROhDPcdsEFc+zL1P1HbJ3uePQD0 3o5WfIab6wZ8vnvuzZFqJHUzUD71LWQEukjOKDDBn63jtoMRO/YendlaOphxFeXNjsoX 1wf1FAb5u8HZgYltPj7Ysj1k0+JzBmCbHsPuezCrxZd2QGF+TR9W8IdYEdfPfj2B04oK XzDH/x6KOkY7wbDYoPY6VWn/FJi/k2Dxa41pfBiob7k4owZ9/P1+B2alu6FzzcFtNiz9 8IEQ== X-Gm-Message-State: AOAM533sZem9mz9d+5ZCctSYuM0fyfzlL8vyhm0QTYnuHud9EwF8YiUj 9Z4iHZa92t+p5JUzd+uP6DWuixsdAXPRpA== X-Received: by 2002:a92:c64a:: with SMTP id 10mr19317336ill.159.1626752178875; Mon, 19 Jul 2021 20:36:18 -0700 (PDT) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com. [209.85.166.44]) by smtp.gmail.com with ESMTPSA id x13sm10875086ilo.11.2021.07.19.20.36.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 20:36:18 -0700 (PDT) Received: by mail-io1-f44.google.com with SMTP id k16so22472264ios.10 for ; Mon, 19 Jul 2021 20:36:18 -0700 (PDT) X-Received: by 2002:a6b:e602:: with SMTP id g2mr20635619ioh.50.1626752177876; Mon, 19 Jul 2021 20:36:17 -0700 (PDT) MIME-Version: 1.0 References: <20210719123054.6844-1-will@kernel.org> <20210719123054.6844-5-will@kernel.org> In-Reply-To: <20210719123054.6844-5-will@kernel.org> From: Claire Chang Date: Tue, 20 Jul 2021 11:36:07 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/5] swiotlb: Emit diagnostic in swiotlb_exit() To: Will Deacon Cc: "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , lkml , Guenter Roeck , Christoph Hellwig , Robin Murphy , Konrad Rzeszutek Wilk , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 8:31 PM Will Deacon wrote: > > 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 > 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 >