Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2819163ybv; Sat, 15 Feb 2020 04:19:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyFWuPXapiZpQ1ye2vWCvMK93tyHXxyeZDyxSBP+1UCxFydjoj5InfUn/TfHonXhSf9JOk0 X-Received: by 2002:a9d:2184:: with SMTP id s4mr5463156otb.121.1581769199531; Sat, 15 Feb 2020 04:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581769199; cv=none; d=google.com; s=arc-20160816; b=DEDmfDYC1+9ytFKB1NPqEqQ4SfUEomKQ2Wal0F2fhXDkiR+ew66HHeeseXwJfehRd4 NjO6myqipilpGHQMi6m6oz99MaQEhXTTRl8Z+aITI7ctMF4+8bisgJVWhaALyS5QXd2b YrzK9K1XClRX8slhjNaRkkHOOMR+hhKHfPJidq0X/cvf462AIbYe7mIMkNBI1CtqES5j rpXfsA5V1C2Rt3okq2mI+di4nMQUGjpmyjsbRtYx9zH8gLQRy3kEP9tW1ZHMEs0MefLI jlF4L2jHxlvDAt3XYmEqkVSl9l2g7/DTNp/09OAxP75tZfG46HN4hLoDtmE9IB3U6lzA MOqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=MNRofKIpoGImG59ba2vZh/NTSIIDeAQldVGBT/Mnq/k=; b=gadyPOj3GYA2VO3Ga8jZBrorEo49OyFd7xz4nyJPOJL2yw1zzPS6lp+a1ig6bTmt8L 4qaNlV0NVmmETWmfib96CGGGQTTFsoeqob+w4clEzs4mIdG29gK20sx06AA3EozCkq6h mmSQbm2akOkcPiTyITsdBfP2WMbf2/w1c+DKhPrxvkanOL6LxB9keHa8Cz9zP8XLm78W 96K6fLRTwRSl/kUu4toLc+B41eXmD4rlXVOpSolIHbiBdfx9YUjLv7BLxuTsR1eIxTQL upKuP8QgjRL+ty4E11WpNsw1nFs/jIkhxwW68CAmUL3GQawB5cZu2dKHQozTiyWVwk94 n1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pgw6Sdyh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p22si4236250otq.132.2020.02.15.04.19.46; Sat, 15 Feb 2020 04:19:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pgw6Sdyh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726212AbgBOMTh (ORCPT + 99 others); Sat, 15 Feb 2020 07:19:37 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:22501 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725937AbgBOMTh (ORCPT ); Sat, 15 Feb 2020 07:19:37 -0500 X-UUID: b06fcf3fa51249bdbe33d73f1c592d72-20200215 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=MNRofKIpoGImG59ba2vZh/NTSIIDeAQldVGBT/Mnq/k=; b=pgw6Sdyh/3/FMlEIGrX3aDNi0KY0GGc6uWCjRpGg/v1ERltg29p4bf0uHvmYndMG//DK5m1rcU/CeeOo/Hp70F4cpuaNG8OuVd7Vcb2vmGSFX+WCfzNi/plQi+d2PQ3XjuOXWYfTh398OTG3JSDuNnnm/4x8tIyXlsBQRnkLGJo=; X-UUID: b06fcf3fa51249bdbe33d73f1c592d72-20200215 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2057293117; Sat, 15 Feb 2020 20:17:48 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 15 Feb 2020 20:16:37 +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.1395.4 via Frontend Transport; Sat, 15 Feb 2020 20:16:17 +0800 Message-ID: <1581769046.32039.27.camel@mhfsdcap03> Subject: Re: [RESEND,PATCH 03/13] iommu/mediatek: Add mtk_iommu_pgtable structure From: Yong Wu To: chao hao CC: Joerg Roedel , Rob Herring , Matthias Brugger , "iommu@lists.linux-foundation.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , wsd_upstream , Jun Yan =?UTF-8?Q?=28=E9=A2=9C=E5=86=9B=29?= , Cui Zhang =?UTF-8?Q?=28=E5=BC=A0=E7=BF=A0=29?= , "Guangming Cao =?UTF-8?Q?=28=E6=9B=B9=E5=85=89=E6=98=8E=29?=" , Anan Sun =?UTF-8?Q?=28=E5=AD=99=E5=AE=89=E5=AE=89=29?= , Miles Chen =?UTF-8?Q?=28=E9=99=B3=E6=B0=91=E6=A8=BA=29?= , Date: Sat, 15 Feb 2020 20:17:26 +0800 In-Reply-To: <1577785148.30177.5.camel@mbjsdccf07> References: <20191104115238.2394-1-chao.hao@mediatek.com> <20191104115238.2394-4-chao.hao@mediatek.com> <1576498396.28043.78.camel@mhfsdcap03> <1577785148.30177.5.camel@mbjsdccf07> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: F01740F75E4279F94E0689496A7B7EDFD6594E4C13593E963DD4A6DC0F5495C22000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTEyLTMxIGF0IDE3OjM5ICswODAwLCBjaGFvIGhhbyB3cm90ZToNCj4gT24g TW9uLCAyMDE5LTEyLTE2IGF0IDIwOjEzICswODAwLCBZb25nIFd1IHdyb3RlOg0KPiA+IE9uIE1v biwgMjAxOS0xMS0wNCBhdCAxOTo1MiArMDgwMCwgQ2hhbyBIYW8gd3JvdGU6DQo+ID4gPiBTdGFy dCB3aXRoIHRoaXMgcGF0Y2gsIHdlIHdpbGwgY2hhbmdlIHRoZSBTVyBhcmNoaXRlY3R1cmUNCj4g PiA+IHRvIHN1cHBvcnQgbXVsdGlwbGUgZG9tYWlucy4gU1cgYXJjaGl0ZWN0dXJlIHdpbGwgaGFz IGEgYmlnIGNoYW5nZSwNCj4gPiA+IHNvIHdlIG5lZWQgdG8gbW9kaWZ5IGEgbGl0dGxlIGJpdCBi eSBtb3JlIHRoYW4gb25lIHBhdGNoLg0KPiA+ID4gVGhlIG5ldyBTVyBvdmVyYWxsIGFyY2hpdGVj dHVyZSBpcyBhcyBiZWxvdzoNCj4gPiA+IA0KPiA+ID4gCQkJCWlvbW11MCAgIGlvbW11MQ0KPiA+ ID4gCQkJCSAgfAkgICAgfA0KPiA+ID4gCQkJCSAgLS0tLS0tLS0tLS0NCj4gPiA+IAkJCQkJfA0K PiA+ID4gCQkJCW10a19pb21tdV9wZ3RhYmxlDQo+ID4gPiAJCQkJCXwNCj4gPiA+IAkJCS0tLS0t L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