Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1883393pxk; Sat, 5 Sep 2020 01:14:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHQKpz70dTFtTaf8/W/KQXtPvtipI0YoUTiklgtfD2joc3cGf/eiOW7kUhJ/OhcJCSPWAA X-Received: by 2002:a50:cdd1:: with SMTP id h17mr12643852edj.94.1599293677701; Sat, 05 Sep 2020 01:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599293677; cv=none; d=google.com; s=arc-20160816; b=XD0ry6EQk61MYZb0iTvr7GyqqoRxLe028/qGy/oJ9ggBiCXakU246wvfK6Bwj2Msrx QZD1NHpmTGFwaRS9ft1zyEGI3XDtXJQ4uCUIyYR1XzZmvwJir2noioTspDoOzyhyHtUC 9C4wdYmb+iHTMe1eDgYxysuYMzqrwBop+mxUbmrObBMS1HfZ/TirTMT/M9qzTncv4aII Osq0FJfGOJFitpriV3mAd2wQgwzFjlv2di7Sa8u7B1auh5J8aJFhrNqcWnI7ezBVYoW9 rW9YTNY/p9caA8q+D3/Cl8balawlLxmMubcLnL1dwbT0H94JrrkX+einckPGiOsqrEns K9hg== 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=Vzf/IOctNEaxUcVyI0bSixh2bnyH5eoqKF1ExkxJzm4=; b=bNeiufp8jjCn3ocSW4hpA1D5f/F0+NEm2pdlsw3npk1+mr9P45yCCG4pbSjyOKU73H +62poAwfqAfiX7fydcu14mvNAvieECm1HVeRz0ZSz1XfYHgbSdLfmOYGuU26Jc+ckAz9 O+/1atWL/t/HvexhrymfG3nr4FKCQMx5fVLfqN5EwsTd20/rYaE0TX4GYKjia4S6J2Up pHX+8PYSEfKxK0oVKcu5sucAixuNna3KbLIXiBY4NOlK5pRdHegtKwSF/O5/gAsvP88V FAqhGH+r4cqSLabPw9AevZzZ6s1fv7J9iPbaIKIam0hRBdFBMotW+nTV61OqnGMUeeNG VVGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XvgW4L5x; 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 pv21si6052604ejb.44.2020.09.05.01.14.15; Sat, 05 Sep 2020 01:14:37 -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=XvgW4L5x; 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 S1728473AbgIEINB (ORCPT + 99 others); Sat, 5 Sep 2020 04:13:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33662 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728465AbgIEIM7 (ORCPT ); Sat, 5 Sep 2020 04:12:59 -0400 X-UUID: 714f0e8180064d5e9dfbe0eb5f4336b8-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=Vzf/IOctNEaxUcVyI0bSixh2bnyH5eoqKF1ExkxJzm4=; b=XvgW4L5xTmZPCMnGVk/uLo2i46HBuWJSlJLkIC1kpTZAxKeU1ILf3tnkpxdScS20ruUJKqnpO6ZTNglIH/JkvrmFIZxPY6+IXbMOw5b6wdCL2A7gH95UReyrzTCw0cL6+gRw5WhRnnGVj1B6XP9A2wuGu9OCdJxVsRR7nZDo334=; X-UUID: 714f0e8180064d5e9dfbe0eb5f4336b8-20200905 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] 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 1643018157; Sat, 05 Sep 2020 16:12:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Sep 2020 16:12:53 +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:52 +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 11/23] iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek Date: Sat, 5 Sep 2020 16:09:08 +0800 Message-ID: <20200905080920.13396-12-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 VGhlIHN0YW5kYXJkIGlucHV0IGlvdmEgYml0cyBpcyAzMi4gTWVkaWFUZWsgcXVhZCB0aGUgbHZs MSBwYWdldGFibGUNCig0ICogbHZsMSkuIE5vIGNoYW5nZSBmb3IgbHZs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