Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1115093ybt; Fri, 10 Jul 2020 23:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxjjnhVzZPe2m84hpyHGs4s/JroiAV43kA8cpIr1mMSPLRamq9jddbP3che7YLkQrBJtej X-Received: by 2002:a50:ab52:: with SMTP id t18mr82881990edc.195.1594450440171; Fri, 10 Jul 2020 23:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450440; cv=none; d=google.com; s=arc-20160816; b=XU7wLrQ0/2Rq5fSfeuh1XF8uWnD/ei7QB/wLzrD34vYEepqisPVfX20Cf1I17+Qntl 2u3aB5/e0tj62N99J/Jn4+m+W0HJURuXCaNWTEckMdOSe99tl5/t8exQIdG0/boDnNsB w3MVUOW9ZG3GPfGxbTUd6NC5niKDoDFVK8t4CCNZukauY41DdEMmSyhCtZROvnbJpQbq GroV1Ijq8iqStgH9k/Yqmdsb8GnrHWSuLsWY6WyTVvKNNzaWEcnAsxfxnMluCtpAMdWW 3ICMnZVvKB+M9642wmmJnvSDp4WYLJ3p59ABW3kUqRYSEmzRXAaf3b8dBX0iPpizOxF+ J2sg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=gNQRNZD1REya632s2rzrylnzdw/0mPJPIR69ojonJBA=; b=KwUwMbJNVPbDNzU8LvRpk15BMjac+Om+igAefVG9K/V+ga1my+tgEhrL9SxGM6GuUs 23Jl1EMx4zwySj9/iRsyN/hX4qrAPnMEaUEBFE/vWLjgRJM7Kxq2EUCtBKSJx/Wr9IC7 cjA+WTp2AcX3s3MTx8LBpQ3NNf2gzkXSMNM/KSIYEhisgSBGNWDwmqqE7PVBOpnPx/iN jRawxGFQsTTlP9UWPfRIjMOCLAnjtSHtbZSmT3jhfoc/nzK9zJyit9YSJHfUSxol5VXz j1O0jy8/gGC2/WXfZUUFKMez/yIu/FaL+V+R2eSYv5pqe0gpHKhTu3EiSFGCq9MhCdSw SvZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tHbmJKk9; 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 la26si5150955ejb.587.2020.07.10.23.53.37; Fri, 10 Jul 2020 23:54:00 -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=tHbmJKk9; 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 S1728214AbgGKGuy (ORCPT + 99 others); Sat, 11 Jul 2020 02:50:54 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:61706 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726963AbgGKGuy (ORCPT ); Sat, 11 Jul 2020 02:50:54 -0400 X-UUID: a3193f6f313a4792a0753dd4b784f45a-20200711 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=gNQRNZD1REya632s2rzrylnzdw/0mPJPIR69ojonJBA=; b=tHbmJKk94Ouzc0vaSwAVr2W+S59tjg3NVAJrZ9VXu0y9ETorQ/dlZ4OQ+XUEfKNSIVHDouWJ8cUxNXYQlB3NRm08bhuNYdm5Q366AeSkTYZKAWSlmjYT6SL3ie7biVhjOBxH3+uBhNSYvmGIUS/Dg3hjiZzcq8VARDfMbqeYXnA=; X-UUID: a3193f6f313a4792a0753dd4b784f45a-20200711 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 709149507; Sat, 11 Jul 2020 14:50:50 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Jul 2020 14:50:46 +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; Sat, 11 Jul 2020 14:50:45 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 07/21] iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek Date: Sat, 11 Jul 2020 14:48:32 +0800 Message-ID: <20200711064846.16007-8-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200711064846.16007-1-yong.wu@mediatek.com> References: <20200711064846.16007-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 TWVkaWFUZWsgZXh0ZW5kIHRoZSBiaXQ1IGluIGx2bDEgYW5kIGx2bDIgZGVzY3JpcHRvciBhcyBQ QTM0Lg0KDQpTaWduZWQtb2ZmLWJ5OiBZb25nIFd1IDx5b25nLnd1QG1lZGlhdGVrLmNvbT4NCi0t LQ0KIG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