Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1115218ybt; Fri, 10 Jul 2020 23:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJpT6yK5afh2P4VmHtFY7Up7m5mSnyDch7WO/bBesnEOWEpIJ10gpeqp/rGSHpp+tWVoPX X-Received: by 2002:a17:906:54a:: with SMTP id k10mr63116868eja.480.1594450465484; Fri, 10 Jul 2020 23:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450465; cv=none; d=google.com; s=arc-20160816; b=VRjyPNYopNt2oALCj5x2Shg0qMsPB199kRtvpo8n0V26951GXSbYb+SE9bo9oBKHWl KB2CcvasOw24MXJwRzp8+xtAPPiLaVqa4v6uhuI//D5yyapDnPcfRSSZ/chKA5rLKaBD jJYWUTE8Jl8rP73X6EGypG3KwcvkJ9P9tWspSfFTStHmAh7NtWqfhXynei8m4grCB3Uo yylToCx+u6l1NV4g3D7VrncccyT0RemjrP/6RYyWdd0++DA/XAwHgchIrb2iwq3iYc1c pcGC3SDacbR3Qd49H/YOwHFD0PM8pj25E27RYRnz0LO49roHscfHCTJZIROAmPh9TxT+ n0dA== 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=C/2LsDKm07Lh3+wc6lQDYpS3D2CvCrOhSM0W+xVCf2Y=; b=eRdsJqeThKY7ybJTAKJwQFwd8ZGs6Q0WKZDsgbeffTt1UNP0x0MKH/dOMfG7tWbW/4 ai+3S3Oqg2yzq2CJ/wl14j3xYZfCx1Kpkv4moHWLf1FtuVgrb1LahErM0xHann64CkUE yV7L+eHCacih8N+fcTk/MvAGsgX0DOIjtuuyH6FpTL+vjsrLO2HD+7Kxqa7gyJn5KZec yvFvPT5V+B8GeEtpbvRokj+/cCv64kK3HN6qTEsb5vutFlemndjOnFqWc/RVr261Xbxd 95eHv4fZMXvgL2YwKG9MPY1UC/CChGAQ3wncylqnkvb20vcAjowMocZPViwgbQgBGePP xK8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Tw+4CqLz; 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 ot25si5663463ejb.647.2020.07.10.23.54.03; Fri, 10 Jul 2020 23:54:25 -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=Tw+4CqLz; 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 S1728258AbgGKGvN (ORCPT + 99 others); Sat, 11 Jul 2020 02:51:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34690 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728090AbgGKGvN (ORCPT ); Sat, 11 Jul 2020 02:51:13 -0400 X-UUID: 806b76b624ae40f8aeadc2330b5077e0-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=C/2LsDKm07Lh3+wc6lQDYpS3D2CvCrOhSM0W+xVCf2Y=; b=Tw+4CqLzRg0NqRthDGSKzKU6QmwclQPXPQTZzOh7FimbZTPA/3mqWQaQvoaPDaytsXORVQtnKMLj5NofnjpPcNSnkTaF37K2P9UfM/s+3dFE2Ki6OoHWhsdVmgG63VXBhXWbE1oXGOnFRLEqAG+tlG2mDMkcCSvdfcQELio/a2Y=; X-UUID: 806b76b624ae40f8aeadc2330b5077e0-20200711 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1733844089; Sat, 11 Jul 2020 14:51:09 +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; Sat, 11 Jul 2020 14:51:05 +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:51:04 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 09/21] iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek Date: Sat, 11 Jul 2020 14:48:34 +0800 Message-ID: <20200711064846.16007-10-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 VGhlIHN0YW5kYXJkIGlucHV0IGlvdmEgYml0cyBpcyAzMi4gTWVkaWFUZWsgcXVhZCB0aGUgbHZs MQ0KcGFnZXRhYmxlKDQqbHZsMSkuIE5vIGNoYW5nZSBmb3IgbHZsMiBwYWdldGFibGUuDQpUaGVu IHRoZSBpb3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