Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4357967pxv; Tue, 20 Jul 2021 01:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNT/GCoxzIv4IWQnMAql4U6KWp1KcBgUCShYOOktT7+v/hgRNAtVuFeORx+s5ygnp1CX2A X-Received: by 2002:a17:906:805:: with SMTP id e5mr32488052ejd.310.1626770382579; Tue, 20 Jul 2021 01:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626770382; cv=none; d=google.com; s=arc-20160816; b=cfU7pmKD8PeML3j+JtOj/C8b+BGNZRBVClvNnh2x5PYhzTpbfg/Jf784xEX9GMs4Dx gW7z3WB/pdALavtQr42cHI5mhh2+nDmogUd6RXzuN4mxHWxpAB71TaFjj0VqeQ7HLdmC I2TEpS58nZxUumin3/ruEp69IKyYOECmZLO+SSmZ3ZHRDa03zO8BQHuw1dvztNX/MYVS j3PmspUYefsc5aojbss0Tn/dcpUYoY7EbkUQ7BoVCoOPFwHFJITqFJ1Ce+lU4tmvet6I uAaSb5bpLoNdq5IOK4KtEWLsS//DRkN1t7VsFHDDgeoOT5kQhHakGMg+mOuGAlS0rVL+ FvZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bZO+wT6VQxrCIdbmV9ZldRY1ZfE15JBzQKmhuIiTNJ0=; b=xS9S0+PqwjMhoQKFEA+0siw9+pLyADRhujEJfnMjhNT2XAjqhwUjr8xoTsJDJBOFs/ a9OgAO1Uoy5kjZ0+9pMr8dL957aYoRX4OwVifv5Y72DIqq3enrmE1pQSXD5nacgQHvPY xpzQcsijYN0/Xa3Acbtz09oWlpkcUt0hX3rMlVdJjsYbJcD0Y8cBIUeaCYEbMXGcsAL1 tXhzz+d5w1xFT4+m8mx2dwkExE9r40E37N5J8cCCdPbwxersPMB4ddx+fCoA4RKfw3Z9 EjjdkbV/qo7PTWpoA/7K+XLuWWU3Q6yEhpR0y9xjX7sW3pthjrmlKpWzPO0R/j0LFWov Snow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jW27i5qW; 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 h18si15141529eds.154.2021.07.20.01.39.19; Tue, 20 Jul 2021 01:39:42 -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=jW27i5qW; 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 S234809AbhGTHzU (ORCPT + 99 others); Tue, 20 Jul 2021 03:55:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:59128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234561AbhGTHy7 (ORCPT ); Tue, 20 Jul 2021 03:54:59 -0400 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 Cc: "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , lkml , Guenter Roeck , Christoph Hellwig , Robin Murphy , Konrad Rzeszutek Wilk , Nathan Chancellor 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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