Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9722315pxu; Tue, 29 Dec 2020 03:20:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg8IJjVt4BGkD5WO5cz9E+z7bQgRjApZ8osM5iMpQB+JcxsZ13rWE5AGzEBE10Q8Zjpcwt X-Received: by 2002:a17:906:b09a:: with SMTP id x26mr20403593ejy.199.1609240834598; Tue, 29 Dec 2020 03:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609240834; cv=none; d=google.com; s=arc-20160816; b=Wq9nUA/eCFJ3DF7DfV14awHmkk34cvaxzSxv9KklKKlE106ge8TNs3DsytqeKu2Pgh 5K0NmOKhc9weIHW7X89ZO8RpS42xA0ZMYmRybYyZ33YHq2twEcq7DH7z1HJeWaECKR0u 8TiYPD650GfGGCpAywjN9B40E8ptNjGIwyalViTVg7SFavTvQ9c0/X1IpUzikzdhxoeD heikoNW8cz/1DSB7aaJBpWyMaI8Hq4mEXnVW6plX/ZTuOhAY+zaQ7zy2dO8YNe0yne0/ 5Knr/2QT9vbWZlXnTkVEYaMfGET7NGOil7ZFrRidN83BTeZazoVk55/N88JVj6mmjgiI mLEg== 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=kjdDDsR62/sn1Fub2YpVwLbpjVry+o489WtdnLg/RPA=; b=ZhvKMFF2Tc6EMvzVHVq2Vf3A2LI1X2dHemzlrhPtu5a0kR0ZEmpsGGBk9L4sX1wKgn 4CEVP18CAifa1NUCW0FcPDm/YGUBvwWVPqWN62uV3S+J5VX0RJl5qkoTqn56vdXcQNgd 3OnoRliDwHvRMs0sDv3GHmJ6D/HxqcMXSux9bBAME39oeJfOVe0N+FJV0W4GDjBP+YcK pd/ha3ItMrbwKcgB73Ts2U2kYUN3tiGkkis331HATa15fZ6fnNV5TMpE2kuo9OgXVR2z wH5znItUpkvHG5IB9NSM87b2mHNBI5wm0cf3HrmUnK6+Yptdqz+iUspnN6IwueSt5OJf Y/mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=j85CWewi; 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 v5si23585879eda.107.2020.12.29.03.20.12; Tue, 29 Dec 2020 03:20:34 -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=j85CWewi; 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 S1725866AbgL2LS3 (ORCPT + 99 others); Tue, 29 Dec 2020 06:18:29 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:55392 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726026AbgL2LS2 (ORCPT ); Tue, 29 Dec 2020 06:18:28 -0500 X-UUID: a265345998e04ca4a2d32d1135c7a17d-20201229 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=kjdDDsR62/sn1Fub2YpVwLbpjVry+o489WtdnLg/RPA=; b=j85CWewiMQm78U7KBaWow+N6gvruv4RDqU5o+zYFjQvgQHlSaobts6499n2kpyUKPLTMCUBZkO/WaE0cJUXtGHhBR7Oej8zqRzafS+7fuhf6srFdh1Z/MJcsyDUk67sR28wkFn6ekgzhhzZO1p8BP6yfFf3ao1z5HePR3bWAKqM=; X-UUID: a265345998e04ca4a2d32d1135c7a17d-20201229 Received: from mtkcas36.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 1139923315; Tue, 29 Dec 2020 19:17:40 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Dec 2020 19:17: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.1497.2 via Frontend Transport; Tue, 29 Dec 2020 19:17:37 +0800 Message-ID: <1609240657.26323.298.camel@mhfsdcap03> Subject: Re: [PATCH v5 09/27] iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek From: Yong Wu To: Tomasz Figa CC: Joerg Roedel , Matthias Brugger , Rob Herring , Will Deacon , Robin Murphy , , , Nicolas Boichat , , , , Evan Green , Tomasz Figa , , , Krzysztof Kozlowski , , Date: Tue, 29 Dec 2020 19:17:37 +0800 In-Reply-To: References: <20201209080102.26626-1-yong.wu@mediatek.com> <20201209080102.26626-10-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: D8FBC57831CD7A85616D1A7462D4159D3B98DDE313D42CDF6FB3EC071BE3DD992000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIwLTEyLTIzIGF0IDE3OjIwICswOTAwLCBUb21hc3ogRmlnYSB3cm90ZToN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