Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp250659ybk; Sat, 9 May 2020 01:42:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLrS/hI4wHyMQJzEn/AadE3x5ZrvgytOTmOyw8lgpY5cJS9BPzZtxzTng00x/OgOufs+BKW X-Received: by 2002:a17:906:7e19:: with SMTP id e25mr5535559ejr.358.1589013759631; Sat, 09 May 2020 01:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589013759; cv=none; d=google.com; s=arc-20160816; b=WN9DaXoQMocrrIU5rZ1uKhK8GxhwDGw0dfQXbjYdpDiUafefoEd3/EPq0X/cS3ucyY UdXO7COuiCOehrokd+hMsD+HFoWaV6LQLNFQxKlc9bMrylubhaaJ5J2CrCJ5xYDh39G9 yBGeTqIKkWHh843IXYgGaxWZSOjOR6KN316sUycxluNLO9jmseQUf/W1pmmuV/H0EFrJ CNmSTP9DyfuQP2g2z3R0DZ/0PyG4/F8cZOWDeR7pD3E1RDT4eRvxexDVqPZHZwyORTui a17hmEJ8D4OHz1N6TZuCv2SP4HMkXAbybBwV1YOL6EideXCrNUSwx5jWmYuEIrLUlRmm MSLw== 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=CJeloX2LqvuI/dnpF7lv9RpSaPjcGxrPB01SIxCcvJ4=; b=QeIzr/NZtEDd0zL6umVu8vHsAoormMxqrQ1PxUemVzbj2XjNoAqRTFp8OFjmOz0ONy rhh1WoOv1ahxPTEvtKsSakNoJGGP+0lvyAmp9mRLV7JIsmQVeLtUPsmgV3egj33xB0eO Rt8FtsEKDXyMWBe1+JglYMzqfIILx2SuD9t/5c5dU9IhBghGXg4up6HxXfDrJyZfFXTb kA5WKxUPfaHXNfCN4QeNn59ojeyDzdtlzDEJAf6osQLWEyALaEU1MlVGJVSX64EyBC0+ OTwRkM6IWQ70JyVxyMfAFwcHPHcBurgvHQ/Me+P1ezWeZDWe/8muSdhbGgoAiZwd8TVA WBHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=s3J3L8Vl; 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 c13si2552887edq.97.2020.05.09.01.42.16; Sat, 09 May 2020 01:42:39 -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=s3J3L8Vl; 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 S1728114AbgEIIke (ORCPT + 99 others); Sat, 9 May 2020 04:40:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:37375 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728070AbgEIIk2 (ORCPT ); Sat, 9 May 2020 04:40:28 -0400 X-UUID: f3c53d4f55134e16967f923e729c10c0-20200509 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=CJeloX2LqvuI/dnpF7lv9RpSaPjcGxrPB01SIxCcvJ4=; b=s3J3L8VldYu0mSndSD9vtZd4DcTRBnT5J5hbpKabTyvtx3tVKU0gh1yKomqrfDujNqFM6WyQPAq3k7PfKBLvV93m6+e5bOG4pGw60nTcGwEyxYOrzIQyfU6w3jmmLMNvwFnquQVNr91spIf+qRBxbiOpf7Ne76Z60xiIEDf0WwE=; X-UUID: f3c53d4f55134e16967f923e729c10c0-20200509 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 922219923; Sat, 09 May 2020 16:40:23 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 9 May 2020 16:40:20 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 May 2020 16:40:19 +0800 From: Chao Hao To: Joerg Roedel , Rob Herring , Matthias Brugger CC: , , , , , , Chao Hao , Yong Wu , FY Yang , Jun Yan Subject: [PATCH v3 7/7] iommu/mediatek: Add mt6779 basic support Date: Sat, 9 May 2020 16:36:54 +0800 Message-ID: <20200509083654.5178-8-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200509083654.5178-1-chao.hao@mediatek.com> References: <20200509083654.5178-1-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3A137A09BE077EE258C0837B180446A21F7D2EEC13F5CA1EF7311B16A30ACAD62000: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 MS4gU3RhcnQgZnJvbSBtdDY3NzksIElOVkxEVF9TRUwgbW92ZSB0byBvZmZzZXQ9MHgyYywgc28g d2UgYWRkDQogICBSRUdfTU1VX0lOVl9TRUxfR0VOMiBkZWZpbml0aW9uIGFuZCBtdDY3NzkgdXNl cy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