Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1883422pxk; Sat, 5 Sep 2020 01:14:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzasLhTNLo7EogWx9qDhDhc4ZgCajmld4WrY3Wp8aMKN3IsfFwbaiNFsFN157Y/b0Z+SqaW X-Received: by 2002:a17:907:20d9:: with SMTP id qq25mr7319128ejb.382.1599293686426; Sat, 05 Sep 2020 01:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599293686; cv=none; d=google.com; s=arc-20160816; b=R2zjS49HquKAVjGM9PhbKtmbazs4ojzELsTvpynhkrTctKLybkzBt2CtcUeK1joUzT tOGI4ABJwTo+zt203UfOTUcJUksUbkfpt9ttk5ZGp+yAp2kQM5YVCT0l+pVC1Rr3z9k9 TxdDvn4F3RSHQrUcw3K4ucrQ/jSfPuUffNIrmZxUFkiD5jsbvM+9cn02tgI0ZEMCB4ku Ewe2Wa2R1oYaWhZ2ZyRsKX30turKU2GVkO3ryE7e1vq2RR3Ts9l9+IJmfLWQw53Aqa5S cLN11uNxyKQEGl8cMmTTUfiFh+g7Aju6RYuyF710YH74vUrZWlccBiJK7O0e9xK2Sq1k KoRA== 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=u2nLowWb9320Nhqe4Te3XyjuUyh2p45gZPSNv8O11x4=; b=oq0mlQJDwgYaz6E1YxL+Rl4P1F2tj4j5mJoCbMAvjkkrrY9dqEyX3cPO+EAv2ygmhl QY9856tjl5VeDplsmBqznVJPkFqjsJR6VfX3nREtSfmkDnH4qXNG7lYJQlPRgIg7sxOF EeEhoMqtPpeT6n76wy88YzxoGlF8q81Sr6wRD2Gc8Z31TNyGfsw7QOnbunFP5jcEx/IO 3ZMCFn93I+JKFF3vytPR/Gv4Wj+JFvM2ApjKFt+nlSn2BPyozO8QM6/kvTIC5NexWw/i qcrQdmk4/iukp2GazLp/ANtqi4ZlMk35w+06UVNUPx1nMocKn4g3HE4ALbGzPOnzr2xo qrFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=j8tJWAfr; 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 e24si5651638ejx.162.2020.09.05.01.14.23; Sat, 05 Sep 2020 01:14:46 -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=j8tJWAfr; 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 S1728449AbgIEIMz (ORCPT + 99 others); Sat, 5 Sep 2020 04:12:55 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22503 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728387AbgIEIMs (ORCPT ); Sat, 5 Sep 2020 04:12:48 -0400 X-UUID: 668daa294ea64114bcc27b3ac39ad3dd-20200905 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=u2nLowWb9320Nhqe4Te3XyjuUyh2p45gZPSNv8O11x4=; b=j8tJWAfrWINKsdUXpL6q6M32Vcm/3NtoX0kgDNpCxHWX2kO2Ht/NwJHl6LENTZon+w9YxJfbh4vi2Rut5FfpQcHJLySjS6vZqCK73IjH3VbtNMbC12xQUmqJNYzMs3RzNc9rNj9BpcHUkAFCj5ibEIGyh6yhqs5kXOOLhv4cwq0=; X-UUID: 668daa294ea64114bcc27b3ac39ad3dd-20200905 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.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 367943681; Sat, 05 Sep 2020 16:12:42 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Sep 2020 16:12:39 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 5 Sep 2020 16:12:39 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , Subject: [PATCH v2 09/23] iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek Date: Sat, 5 Sep 2020 16:09:06 +0800 Message-ID: <20200905080920.13396-10-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200905080920.13396-1-yong.wu@mediatek.com> References: <20200905080920.13396-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 QTM0Lg0KDQpTaWduZWQtb2ZmLWJ5OiBZb25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