From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, 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 4A1A8C433E0 for ; Thu, 28 Jan 2021 10:32:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAFF364DDA for ; Thu, 28 Jan 2021 10:32:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232302AbhA1KcP (ORCPT ); Thu, 28 Jan 2021 05:32:15 -0500 Received: from 8bytes.org ([81.169.241.247]:53274 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232361AbhA1Kbl (ORCPT ); Thu, 28 Jan 2021 05:31:41 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 7EA4151D; Thu, 28 Jan 2021 11:30:58 +0100 (CET) Date: Thu, 28 Jan 2021 11:30:56 +0100 From: Joerg Roedel To: Lu Baolu Cc: Will Deacon , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu/vt-d: Consolidate duplicate cache invaliation code Message-ID: <20210128103056.GG32671@8bytes.org> References: <20210114085021.717041-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114085021.717041-1-baolu.lu@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 04:50:21PM +0800, Lu Baolu wrote: > The pasid based IOTLB and devTLB invalidation code is duplicate in > several places. Consolidate them by using the common helpers. > > Signed-off-by: Lu Baolu > --- > drivers/iommu/intel/pasid.c | 18 ++---------- > drivers/iommu/intel/svm.c | 55 ++++++------------------------------- > 2 files changed, 11 insertions(+), 62 deletions(-) Applied, thanks.