Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FF48C636C8 for ; Tue, 20 Jul 2021 08:35:41 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC34861208 for ; Tue, 20 Jul 2021 08:35:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC34861208 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A94AE4029F; Tue, 20 Jul 2021 08:35:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EeaiwtjkSdRe; Tue, 20 Jul 2021 08:35:39 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 78957400E5; Tue, 20 Jul 2021 08:35:39 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5A23DC001A; Tue, 20 Jul 2021 08:35:39 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1919EC000E for ; Tue, 20 Jul 2021 08:35:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 06775401AF for ; Tue, 20 Jul 2021 08:35:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ErLR39pAdLHm for ; Tue, 20 Jul 2021 08:35:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp2.osuosl.org (Postfix) with ESMTPS id CCF1D400E5 for ; Tue, 20 Jul 2021 08:35:36 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id F0A9B611EF; Tue, 20 Jul 2021 08:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626770136; bh=H9UUqQCl4PT+FM2yIrBMMn8pE51fXDZyIBexJTDkmw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jW27i5qWAcE2S1OfDzCaQcAPQ2nJlgysjINsqpVeyDgQmY4cOnWLEx0pRar08s5Vy mcB7ai7yBslk/xqFPZ9UnMiSgFmYDSJ5CzUjd5zotGoJtLaW5dOdBih0KpPrVqRKCP KmT1xO+6WaLjdGYzb3nKHJaMUo0IMS86yVdHpmFShKQAF+5fJp+avBPD0HebBYYMyR h15Y7Vwgey0HGnyhTWUAMe+0p6Wy53xgeNzSUQg3wufUlgLgAC4MI5/x5hQD2hgHbB VzkpURFMXitzMHI3G6VIGHXI2c9ICAufytvu/QjppMJtHETSzodN9J7wNDSJks20z8 9UmQmPZZTa0Zw== Date: Tue, 20 Jul 2021 09:35:31 +0100 From: Will Deacon To: Claire Chang Subject: Re: [PATCH 5/5] swiotlb: Free tbl memory in swiotlb_exit() Message-ID: <20210720083530.GA8089@willie-the-truck> References: <20210719123054.6844-1-will@kernel.org> <20210719123054.6844-6-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Konrad Rzeszutek Wilk , lkml , Nathan Chancellor , "list@263.net:IOMMU DRIVERS , Joerg Roedel , " , Robin Murphy , Christoph Hellwig , Guenter Roeck X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Tue, Jul 20, 2021 at 11:36:19AM +0800, Claire Chang wrote: > On Mon, Jul 19, 2021 at 8:31 PM Will Deacon wrote: > > > > Although swiotlb_exit() frees the 'slots' metadata array referenced by > > 'io_tlb_default_mem', it leaves the underlying buffer pages allocated > > despite no longer being usable. > > > > Extend swiotlb_exit() to free the buffer pages as well as the slots > > array. > > > > Cc: Claire Chang > > Cc: Christoph Hellwig > > Cc: Robin Murphy > > Cc: Konrad Rzeszutek Wilk > > Tested-by: Nathan Chancellor > > Tested-by: Claire Chang Thanks, Claire! Will _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu