Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4353354pxk; Wed, 30 Sep 2020 00:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzaNPr2/JaWHXsqgPU52nD/0g1FZo663eFNWNYX5IPLRAbbVxGeFPfc94V+nLtRZzOAkv5 X-Received: by 2002:a17:906:7e0e:: with SMTP id e14mr1399438ejr.238.1601449942742; Wed, 30 Sep 2020 00:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601449942; cv=none; d=google.com; s=arc-20160816; b=P4KzbGsYiG+Z7hrSEslUFrlBNrfKaYrKA1DJBUAfkmFGMqZaLnucuYRmb5K26BsTir sDGqwi/IAmoS7KwK4eaK5XJcqWel5ygXzBHq9gi3nN+iZY0Tf3uGRxLffKTfDJe/ItRr mAKhsbkTdwwPIOxJcJ//xUEdH1vWypt109EPkgEp5kfBiOGCoYF/bavhGfnuNWyADotA xXkzXIZ63Usvvi9ryuBDb16jt5MtO/Ss5PZ64e7QBESuPyGK1j0AtOi1UBJmQ4DCE5/v 4LucWSjl5uugpAJimmHn3N2SNkjboy8+qqJuLpOliOHU2MEHMzcV4ami9LTYtEf3qiPd z2sg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=IcHcY2GTxRqXGr2c5Od/IbtILzjIIei29lysc2o5kuY=; b=lTt5LG/h055QbcPJxNtkGMc/dUzx7+TPuFoIJa7Srx5jVTijo53M+ArDNncxRh+h2j y7AhsEhPc5T0TKpu7CqvuW2PalwRbBB9miWhMIITYZ/VmaOafwYdtUyqeKIJI/wO9Dpn /LrtwJQuw+DYdXtP02IH8QXpVvc+Ft4a/zULfcThAwUIu/hmxtsAVI/Wlg5+eYeG/OlX 0f6fMxRe0bqMOorSQPLQNmo67RnrwR2sogAmpgXS1PRBlV5qwjCRw0ykhwYt58DcW2se PEI720QwHbFHmY27EWTiaaTsF/OkPajT2kJt4k9BzhMIpOLcdDawyP/iGq4MV50aRtl4 CpzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dUD+TmmF; 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 t15si675247ejx.450.2020.09.30.00.12.00; Wed, 30 Sep 2020 00:12:22 -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=dUD+TmmF; 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 S1728660AbgI3HJ2 (ORCPT + 99 others); Wed, 30 Sep 2020 03:09:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40861 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725440AbgI3HJ1 (ORCPT ); Wed, 30 Sep 2020 03:09:27 -0400 X-UUID: a0f9b24352d74a2b91f1885051b6869b-20200930 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=IcHcY2GTxRqXGr2c5Od/IbtILzjIIei29lysc2o5kuY=; b=dUD+TmmFGxb2ZO8RuYX4nK8I28jgLxvLQLJxllOQ8+mCIbx1/qCcySMg98eapFj8Nt8sJnBvFleeJZ+9GC2qPyBSHT912IqEm5JJ1/1vQFsBqCtXt0bXCz0g6ugfRWe22dAMO1mco5M+RqW1xw2PHoPfIf62dLfn2GL3s3gXjQA=; X-UUID: a0f9b24352d74a2b91f1885051b6869b-20200930 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1495445841; Wed, 30 Sep 2020 15:09:24 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 15:09:14 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 30 Sep 2020 15:09:15 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Krzysztof Kozlowski , Will Deacon CC: Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Greg Kroah-Hartman , Subject: [PATCH v3 11/24] iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek Date: Wed, 30 Sep 2020 15:06:34 +0800 Message-ID: <20200930070647.10188-12-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200930070647.10188-1-yong.wu@mediatek.com> References: <20200930070647.10188-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIHN0YW5kYXJkIGlucHV0IGlvdmEgYml0cyBpcyAzMi4gTWVkaWFUZWsgcXVhZCB0aGUgbHZs MSBwYWdldGFibGUNCig0ICogbHZsMSkuIE5vIGNoYW5nZSBmb3Igb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