Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp595822pxj; Fri, 11 Jun 2021 06:52:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycNMo4GxfPYZulE+XDx6bm+Ft23kcxIlJPtX2mTp9nQaXjhXIUKdD6kT0EkNdK+v/ZJ7sQ X-Received: by 2002:aa7:c647:: with SMTP id z7mr3794606edr.224.1623419568735; Fri, 11 Jun 2021 06:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623419568; cv=none; d=google.com; s=arc-20160816; b=HPp3tRLbjE/Y+lsOBA67xivPLPBSvdR8FdkgiCAXxMPq+zDF9RF/o2ILNkX6T3tIm4 NA5FpvqrjgH2mAriixsD5N1Fv2C7+3xMROk0ztmKYDMaqfuY+BtGWIsLkfEKohgDi2DS cryXvql5b2HP+6miR6YeuEv8Q/a0CKtGncnQOZ5dlvkMU42P0JgsHbHNZYIiTUNiLPiW Vy6FQy2Qfzl+yA+qG6DTZfdP394TkG4LRcUDC8lHEdQVyWv3MVhVEdNa73YGuhbTwYut ceb25To3Sk8MwLraF0pvf6pl2ZJ9J6NnOAv+6Aet/vXKAptW/PgZK0PNIQW+34EijAMd x16w== 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=HlcIcDjf5WOObzZjiQ1mFR8VpOoUXAQ3F8qdV5md2tU=; b=Cynnu3kQwXJF4jg2r8elHHO7O5T3Gl5zNh42AVKSEnwZ8Y6oKMkdtkUKKHyhih4qMe SC7u+V8bEypPIpkkRcfnjdY8mBlm3D4YFf/sPlFqeGaJ/5FgjcuYt9GN31mUH1sd9WLJ dbSyLG1m5iePqsXMoTTKm4HEEyndBLFGqhoX4+ONsnqJkEuwbhnO2aDtLCGHYpsYtkZP ewK0qHViSOoCvMOhMxHTIpXYiJxPhWP5FD+mg3zw8Tapcom98eoonQKfwhgFL7FhLCZn TPOE7vxR3qv/uuLL/1Go7blyIzWQaYmsxtmn6fbMBz+ouUGIOFBcmNSSOgQZG70Jrh2r qotw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=huqExwz9; 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 gq9si4690241ejb.720.2021.06.11.06.52.25; Fri, 11 Jun 2021 06:52:48 -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=huqExwz9; 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 S231467AbhFKNwp (ORCPT + 99 others); Fri, 11 Jun 2021 09:52:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbhFKNwm (ORCPT ); Fri, 11 Jun 2021 09:52:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D7DE61357; Fri, 11 Jun 2021 13:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623419444; bh=4g9zOBMtlLANWjsSzpBI0yPUcR1JafM3BAkdl/2DRjM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=huqExwz9svuE+0K5X/MWkdW0X79ZbDiGNmay76Y88bNqFOJguDAdSitTn8KyMPZ19 nlXc4WBp/GZH2SK4kyEAaxdin+T4nTefqJ7xDJP5iY9rbf394O+nUKDadCOiiShU82 TbjmsPvLQDQkPB6WlPWc56XRcY135G1u8iMMTqFffViBMEjeSe8ii4SNM0vT4jXDGe g2c6jvOsx30Tc0dqOELYK2FIafC09RqSF6h1wRJSLWnSbsFSJvBVhPFjrzeXj2d/7q x10ouJtJsxfA7dAc9eL+AEpG2bbp5CfmATTbIXjvXvEnbxlpCTNcACLqn9aoB3xuZ+ JqS11eowipklQ== Date: Fri, 11 Jun 2021 14:50:39 +0100 From: Will Deacon To: Nadav Amit Cc: Joerg Roedel , Robin Murphy , Jiajun Cao , Lu Baolu , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/6] iommu: Improve iommu_iotlb_gather helpers Message-ID: <20210611135039.GB15776@willie-the-truck> References: <20210607182541.119756-1-namit@vmware.com> <20210607182541.119756-4-namit@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607182541.119756-4-namit@vmware.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 11:25:38AM -0700, Nadav Amit wrote: > From: Robin Murphy > > The Mediatek driver is not the only one which might want a basic > address-based gathering behaviour, so although it's arguably simple > enough to open-code, let's factor it out for the sake of cleanliness. > Let's also take this opportunity to document the intent of these > helpers for clarity. > > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Jiajun Cao > Cc: Robin Murphy > Cc: Lu Baolu > Cc: iommu@lists.linux-foundation.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Robin Murphy > > --- > > Changes from Robin's version: > * Added iommu_iotlb_gather_add_range() stub !CONFIG_IOMMU_API > * Use iommu_iotlb_gather_add_range() in iommu_iotlb_gather_add_page() > --- > drivers/iommu/mtk_iommu.c | 5 +---- > include/linux/iommu.h | 43 ++++++++++++++++++++++++++++++++++----- > 2 files changed, 39 insertions(+), 9 deletions(-) Acked-by: Will Deacon Will