Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4353616pxk; Wed, 30 Sep 2020 00:12:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCKC2xd/O8xyGl++jtm2yhfuhMHcIR5MPFMcHppE1evarTkf/oyHG80ymsNgXOboMwJ/RM X-Received: by 2002:a17:906:f2cd:: with SMTP id gz13mr1474177ejb.19.1601449977139; Wed, 30 Sep 2020 00:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601449977; cv=none; d=google.com; s=arc-20160816; b=xMunOJHKeXhPPborn4zYOLbdXcKA39TR5ivxfo9KbGXsTkIQlXj/QJ4x1rjBi47jAS sQ81oIkGw4u1JAAEBN79ov8LG5+jttItj5oWqc8VcZ2o9V2H4M74xSrJ98jJz3zrPqm6 5m/+sm5tp/GoUBjIHzvyWoDSbu1oaoJ+4+SLxZmqI+6Dc8mKNAgMA5FmflcvVFQQc32X pqTK024fKVZaGhHJwiCQjuYU4vbHjPuEPEChRy4B+TOmsf5glNeawwMGc9Q8bJqF478M Zc++XplS6JEVw40PM4WS8cVDRop2XDmnyVvyksv13d27bgZYymWzngqOQ1i559KoVgl7 vE2g== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=u2nLowWb9320Nhqe4Te3XyjuUyh2p45gZPSNv8O11x4=; b=nc1GsZbdNPzdTyyKFV6+R7Qt+QKES+pCqTpmgtYr1BJMLWpdZpNM1ZeXs56bHI8vMB pvoLzJwSazBZaN2iDYo4TwDsuP4CMzr747GJx1lIvAUDICLLjmd+2twTGreHWF0f9dwZ nUmBnu9KsP2bc4hvYpJunoCxlG/oDudEh1s18q6OdjwJ5kqY9NoxUNfhZnynZ6pQqTJ3 X97cO6cp48kOfL9eJWJElTOAa2XmBhrMt2JEE+AbrIK5PUUJRZSyK5mSMS5LHlo/Klw+ LC7O+jIkMb4rQs+/+Kt6FmKZgfDzxnqpoB0rQoG5WCL5FFXU/rsACVzX+cpqgbsCuIRY D4Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EZAW6Jat; 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 b11si728848ejz.631.2020.09.30.00.12.34; Wed, 30 Sep 2020 00:12:57 -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=EZAW6Jat; 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 S1728594AbgI3HJE (ORCPT + 99 others); Wed, 30 Sep 2020 03:09:04 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:50132 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725440AbgI3HJE (ORCPT ); Wed, 30 Sep 2020 03:09:04 -0400 X-UUID: e8f46f3a15d74819bfaa31bb8ed33291-20200930 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=EZAW6Jatb+I+lVXOYq613sFllezZhg7GYFOmkfyYl/MR/DT8554+l7A/3Z5hxSuJqTJjYMeYjGMavPgOjShqG+K7knwFAXG3JrlCmAdqEcEH7YBZw7qzydoFCaH6gMVYxT512HH3WtgYg1DnitEpxmCThiTCCj6ZHn8d5YBOBWQ=; X-UUID: e8f46f3a15d74819bfaa31bb8ed33291-20200930 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 1805677688; Wed, 30 Sep 2020 15:09:00 +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; Wed, 30 Sep 2020 15:08:52 +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; Wed, 30 Sep 2020 15:08:53 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Krzysztof Kozlowski , Will Deacon CC: Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Greg Kroah-Hartman , Subject: [PATCH v3 09/24] iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek Date: Wed, 30 Sep 2020 15:06:32 +0800 Message-ID: <20200930070647.10188-10-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200930070647.10188-1-yong.wu@mediatek.com> References: <20200930070647.10188-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TWVkaWFUZWsgZXh0ZW5kIHRoZSBiaXQ1IGluIGx2bDEgYW5kIGx2bDIgZGVzY3JpcHRvciBhcyBQ QTM0Lg0KDQpTaWduZWQtb2ZmLWJ5OiBZb25nIFd1IDx5b25nLn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