Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6477415pxu; Thu, 24 Dec 2020 03:30:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDAOMmuyUdPs3PJsEIZqbxdsfj1W9+HyFNRwjx0JNxqjfKjD8Gunn/s0D0QFgjyjWFZ9R8 X-Received: by 2002:aa7:c749:: with SMTP id c9mr28653553eds.3.1608809426465; Thu, 24 Dec 2020 03:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608809426; cv=none; d=google.com; s=arc-20160816; b=olI7KHOXP+n39Sq82S0HV/tfAmEoTXsrmoP47/xipl8JmywIU1Y2s3HvkZf9a97iiB +Q+PDDJlf1eEzaD6wXzozh85+otwhXYITyAoy90zfryHwQQ4BUUQB4FjEt5Hn5JAXpjW lZFOufYAIMQRwKNSvaoJ31l9hEWAYV7F5svz294+twkRz/WUTf/RFTYlHYNK3iTOJbXO YriSvtnZAoUwBbDyJiUFGRnkT+hotCUZAmSbFu2NrELXWB7KJyaidHBeRxr8Cj6Rwbpv xY6kUhaZ6YWBs7BMw1atumE1vz8n3Ktdegc226f0L9cXWel6VhPVIY/TgQq8kGpJpWM/ QHPQ== 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=DiOcFw9Kf9pbbQaIqyaauDc19jifokyiHRLy79w4/TI=; b=bbX4jUNtVcC76TzxvPiDrhlR4YF321B6qxs/0pqfSIu0jS2OEK6VGtTs0BvxnO6Nt+ zwI/1VGk25OxB57fSuDtsnkf+wXV+OfxVq4dlPknijx3JbTXNpQvyTXcmIfaRYXbbK0b CPtHMWmkBEF4GK42Bj3iv4V4zZTtB6AXNl9MVxfw1TY7m13pzB1taEqgG9MsQ7qQ8m4H 1ConlTU4br39fX3UWuZLU+8fdRw/9z6KwPTCwXSI8QSY53IGI9oYbxVD3qDNrjqpseFh ntLFaLx+PTS9SiikO5UIGXZy+Rk/QjyQjii01hBLv9N3P/5MCsGdNmMPjjUEWEBVRUum eIrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jwcGv8V4; 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 x18si14678012ejd.80.2020.12.24.03.30.04; Thu, 24 Dec 2020 03:30:26 -0800 (PST) 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=jwcGv8V4; 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 S1728303AbgLXL23 (ORCPT + 99 others); Thu, 24 Dec 2020 06:28:29 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:59402 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726591AbgLXL23 (ORCPT ); Thu, 24 Dec 2020 06:28:29 -0500 X-UUID: ebeceb543e594724afb82df797d9e1e0-20201224 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=DiOcFw9Kf9pbbQaIqyaauDc19jifokyiHRLy79w4/TI=; b=jwcGv8V43FrvfSVlCDjy+v1PddpLpwqrdatyeFgTUsxMHZ7DOEIRDg2rNsyMywODMyJqp2ornAd8rbcdfkf1vZFL67YGqgwLiZiOuEdFuMXUIG8PFhCPJEhu1ZWbk55eAxZurHzXOvaE5Cn5k3dm+9z3iaBYw8glN8H0Q1qe2Jo=; X-UUID: ebeceb543e594724afb82df797d9e1e0-20201224 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 626282406; Thu, 24 Dec 2020 19:27:38 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS32N1.mediatek.inc (172.27.4.71) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 24 Dec 2020 19:27:36 +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; Thu, 24 Dec 2020 19:27:36 +0800 Message-ID: <1608809257.26323.259.camel@mhfsdcap03> Subject: Re: [PATCH v3 1/7] iommu: Move iotlb_sync_map out from __iommu_map From: Yong Wu To: Christoph Hellwig CC: Joerg Roedel , Will Deacon , "Robin Murphy" , , , Nicolas Boichat , , , , Krzysztof Kozlowski , "Tomasz Figa" , , , Matthias Brugger , Greg Kroah-Hartman , , Date: Thu, 24 Dec 2020 19:27:37 +0800 In-Reply-To: <20201223085153.GA30643@infradead.org> References: <20201216103607.23050-1-yong.wu@mediatek.com> <20201216103607.23050-2-yong.wu@mediatek.com> <20201223085153.GA30643@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: FBCE9ED43BF43E3D7C20C416E2E03E98E6E841E4758068BCA32988C6FE2A5E212000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIwLTEyLTIzIGF0I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