Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3643910pxj; Tue, 15 Jun 2021 05:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyiKcNszMX3ogLFtVhrTzCTV7pY1UavncLFCETt96yUcGPjsl/7UKR4ZX1oBXqemh27vPz X-Received: by 2002:a17:906:b754:: with SMTP id fx20mr19695829ejb.201.1623760833376; Tue, 15 Jun 2021 05:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623760833; cv=none; d=google.com; s=arc-20160816; b=yp8BRyHen/nkilYWRaqw1HMGFP8ntZV1eMFRYFV/Ixq2HYGO+1ef1DYyoCzwJEJMeg 5FHOjqOdtSQGgFep/nw9+MRn91gqkeHdx1JV4HHVJsT1QGEy0bhpYXJPDtRZN7cQuH5a 92vbIrk5bIOFLr8uvYETP0LxsDopYU4qSlnLdtEwJdvLdysNZ2Z1N7mmM3xUIMXLeqi6 Pg6XIADjCVaHWiej2wIcqf/gatSJVeCsqnl9jmHqmJQ2EUixGc1gT33UVMIpCaTs9bnI pTLIhlro4K3aBc+2ybwCM2hAZPdFjszeC3KCA9GooQa8fooIsktXVW7Ra/5ibWLVqeOZ BLag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=hy2ulTOYtTz6fWJfoMGqCOL0cJY7Tmx70wHn6d0aIag=; b=jGX1MA+f8RuHejKceKqYfgjVN1+IdfDYyELDq+PHVaNl+1LfQ7pfHXj1jX2HiOHsVz Yt24xeoe9VqA3saOkB+0suH8k6oXd83riqcu/kfCUGkaBBcqKSJRQ0hIixxuy3V7WqB6 AEOJFSdvS5GIc9dKsGNVQIs7LYxOAYeZ36XIce4d6j0Z4JtdmWI9t9YeI6EpXMeoxpd9 vUzpoRF0K3k3ikGu9oWrM4j4PBMoDuJ6CYOl2mWD14THdi9+hzJBPCPInL5JXJ0WvcrK SA8Q+VEMtDiK3LkWb4QAT5M6MIopWVDdzgv4zTSbx2Lz2KjlJ22hXTeuYDOtiJmT+0Zn t5RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KgyZsXtf; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh25si13953602ejb.170.2021.06.15.05.40.08; Tue, 15 Jun 2021 05:40:33 -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=@mediatek.com header.s=dk header.b=KgyZsXtf; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbhFOMbo (ORCPT + 99 others); Tue, 15 Jun 2021 08:31:44 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:29808 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229520AbhFOMbn (ORCPT ); Tue, 15 Jun 2021 08:31:43 -0400 X-UUID: 2caa48c5f2f4426095a7d3a514d19c4a-20210615 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=hy2ulTOYtTz6fWJfoMGqCOL0cJY7Tmx70wHn6d0aIag=; b=KgyZsXtf1OcG8DAwz2BuLG8DJuwufQrmOzmvtPNmpochpW39dfI3+XMaOpzQp8cZJcpnBCu6GgrZBD8ybQ6ReJf7AM2ZvUl88RFRTcNn8E84gCCmaSEq1Ik70zhfOKdvsWF+qPhtRIbJwUjIR2alMlnYBLxxgu7tTS0TyvpcAas=; X-UUID: 2caa48c5f2f4426095a7d3a514d19c4a-20210615 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 69459193; Tue, 15 Jun 2021 20:29:35 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Jun 2021 20:29:26 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 15 Jun 2021 20:29:26 +0800 Message-ID: <1623760166.24285.1.camel@mhfsdcap03> Subject: Re: [PATCH v3 3/6] iommu: Improve iommu_iotlb_gather helpers From: Yong Wu To: Nadav Amit CC: Joerg Roedel , Robin Murphy , , , Jiajun Cao , Will Deacon Date: Tue, 15 Jun 2021 20:29:26 +0800 In-Reply-To: <20210607182541.119756-4-namit@vmware.com> References: <20210607182541.119756-1-namit@vmware.com> <20210607182541.119756-4-namit@vmware.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 619EC6FAECE4DB4BFD5D7B0E99DD46A5676E4A97FF55DE65E1407293A0E41BBB2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTA2LTA3IGF0IDExOjI1IC0wNzAwLCBOYWRhdiBBbWl0IHdyb3RlOg0KPiBG cm9tOiBS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