Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1884246pxk; Sat, 5 Sep 2020 01:16:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygy1EQhtKqvfkaeQ/+ojCBVl/kh8gYygJj8GBBN3eJ2zxK0K8oI4vL3s2k4lz6L7ceSSFx X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr12079513eji.155.1599293802323; Sat, 05 Sep 2020 01:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599293802; cv=none; d=google.com; s=arc-20160816; b=XguEFChg7Ag24R1jVVR4t5xNK0wF3gCRQCrMqnPXUQe3fD01H4dOG+BMgypdKZj1XA rgEW26MpQTxWpifCqw6m5QWMnK8NstcugBSxUa1F4fkHoO1VZhq8opE7s5YzDGwOhiMY qSRylTZEWSMoegcvBmPnZDNc1Gn5aCh1M8diANb5dR5GVto0WaSi4q8qVykHyXtk3maL Z9dCqYFQMl2/SfiokHaaXHe6UG1rATINKRcGvCTtXI+a4MiBi7RyxA4fUqcrtqDAgNYx BVkD4GqH8C8DLzLbrEHI7+VILxsXa3vX38SFfpsdeKO3v91myhDENdZ31OcKYoUwVJR8 WuXw== 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=RGC4TyuwgH+C0nl9qqtSkY3WkBISOgOe8Q8KEaKsHZg=; b=GeAydKFvQ0RnMM3r8INmGI1Cj8lFthggaiWRZmV7sd0IX4f/K7rqXlW5/TUSnE+os0 nWMD1UmB8xmVEq5aYllfrNd9tDDvIGCpFwAIevZTo/fVVMs2wkGdlVkxDHLosbVCqFi1 ecEbK+Bti5o0kI9Z9q8TeqgA6Elob748qLv5DMxc9ML4nXCXY+kZ1n/UYP4nrmeQJfSp H9tvcr/Lb5F6aclqSed+WKK2jAlkawyA2QPKPyIlCinFp12z/zgsGWp6a3oNWN02miQd steCwpePyFWKGxSO1+pC4lAZB1CIylZHy7akNpIE6xN0eHQp1Ijoya5OMa9MhyZm0OpJ KVFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FFpOp74z; 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 o2si5426548edw.285.2020.09.05.01.16.19; Sat, 05 Sep 2020 01:16:42 -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=FFpOp74z; 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 S1726888AbgIEIOx (ORCPT + 99 others); Sat, 5 Sep 2020 04:14:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:48603 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728313AbgIEIOo (ORCPT ); Sat, 5 Sep 2020 04:14:44 -0400 X-UUID: 00dc1d75ef68401ab1df6a840c582e5a-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=RGC4TyuwgH+C0nl9qqtSkY3WkBISOgOe8Q8KEaKsHZg=; b=FFpOp74zlpgQJL8hFhxGQE7Bb7vDVuCD8R2WElaffKQKG+g6G9JG+7N4JMQbPCepJlUp5QYqnyXbpGVXtQJfkJA7WGGF0WVkXD7mXPvdTD6L44qp2aSltXdAbeAUfHsLJ/eWSZ7fqkFr5bM5yEdvdJkUUTNoIuu9P7R04LWv9+g=; X-UUID: 00dc1d75ef68401ab1df6a840c582e5a-20200905 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.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 1671242871; Sat, 05 Sep 2020 16:14:41 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Sep 2020 16:14:38 +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:14:38 +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 22/23] iommu/mediatek: Add mt8192 support Date: Sat, 5 Sep 2020 16:09:19 +0800 Message-ID: <20200905080920.13396-23-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-TM-SNTS-SMTP: 5B5F9E93F3ACDA5B93F530C569B8DA973D4AF1AF300DD1BD6639A2B983DAA07A2000:8 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 QWRkIG10ODE5MiBpb21tdSBzdXBwb3J0Lg0KDQpGb3IgbXVsdGkgZG9tYWluLCBBZGQg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