Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp14917pxx; Mon, 26 Oct 2020 01:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOTPFopL9M3F7mzpVsTA+jU5ZA/s+HBjq08TU3wK94jPu2Yo1RiqdpnMiUyDK2u8JA1th4 X-Received: by 2002:a17:907:435e:: with SMTP id oc22mr15325002ejb.485.1603702756845; Mon, 26 Oct 2020 01:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603702756; cv=none; d=google.com; s=arc-20160816; b=0UBk/AdTUwPK44753nH0JlaXzcQ22Lxns6BLDxtrkRq8FHfsxwKvE5YjNHICchlMhf kHKfNLcHQCYsJXvFQwK1ONpwFmb6hUlt0WQqNtZQNLSmScscM0bCX1xJ79YQkcibOTBc cAqGdj4JMP3Nt3zlv2UGQR6K+2QaqmLl7y0AGZjRWESI2arTpHHCk/jpQFh+RT4uLW+S qJMQN9i0vMXqhLptWUPJqtBNSWxdAx6So3vO+WlsG99dwFklRHyOOWsSwddALpSICtb0 pLgVnIKbbwoeE6jnfLOjQMZ7Xd790y7U75yxRgE6ip3BFqNftgjn47DJTU3JuJRQ7XGx +gqw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=KDA+LpW6FDBz49qbTaYvO3XwD3JWyDQOAMzmFaf86MU=; b=YODfsN0JiaHkkfbPuKCeumy/6azaYnajoMklQzQW/bVIYVDINn4vZdrECHMTVX+h+D Uuvj/XYBkuQ27fXbjLoPH5jWMWz87Hn1XcuxqLN9iu8HDuFlNwU9qWn2d4nHSN9ADtPW cY9HLjyFBF7/xTThEMAJfwIDWsPqLs3Th4Tz8RXRgjYdje7DvI8UY3G7Rf9b94IvFzCd 3G4kVkUtzj7csgIosY+fTG26EdreJGNV/MOlQb6y1mUUlCRKj2YYJOibqbe48yYkTIgJ YzvHbBEFmfwdksrlryrBSpb8y25RFN7nKNIvMMm7glS7oBWDVv8q3scvPZr7BrhD5zfx NKbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JrwCHtZF; 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 e26si6817414ejx.724.2020.10.26.01.58.54; Mon, 26 Oct 2020 01:59:16 -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=JrwCHtZF; 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 S1770953AbgJZHmT (ORCPT + 99 others); Mon, 26 Oct 2020 03:42:19 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:63675 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1770191AbgJZHmT (ORCPT ); Mon, 26 Oct 2020 03:42:19 -0400 X-UUID: b451202fb9eb4ca7b6d1941c66e6ee5b-20201026 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=KDA+LpW6FDBz49qbTaYvO3XwD3JWyDQOAMzmFaf86MU=; b=JrwCHtZFB/nCXCepC9MG9nKlZ7OeettQ0mHd0/YgOk0O572rD+nH+Se1SZ1G/4XcO0bvGGqndoBO4Rqpz75j4g13cWW3bjBtkeeIWngGaRcU8aWFocPcp8Af67Bc2gPfhP6+Mrw/UKtLGYT7Axex7f0/rjJ8lgzUs1iuKnMyxqs=; X-UUID: b451202fb9eb4ca7b6d1941c66e6ee5b-20201026 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 166890295; Mon, 26 Oct 2020 15:42:01 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Oct 2020 15:41:23 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 26 Oct 2020 15:41:22 +0800 Message-ID: <1603698083.26323.87.camel@mhfsdcap03> Subject: Re: [PATCH v3 11/24] iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek From: Yong Wu To: Robin Murphy CC: Joerg Roedel , Matthias Brugger , Rob Herring , "Krzysztof Kozlowski" , Will Deacon , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Greg Kroah-Hartman , Date: Mon, 26 Oct 2020 15:41:23 +0800 In-Reply-To: References: <20200930070647.10188-1-yong.wu@mediatek.com> <20200930070647.10188-12-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 020A65BDCF4EA27467567D031B54810B516A69E7C2B6BB71FC4C0F5EDD0582DF2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIwLTEwLTIzIGF0IDE1OjE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