Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1883781pxk; Sat, 5 Sep 2020 01:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuB8S3jRwMn6vd066KuiMagpLEeCSi0dI6+lm6CvGHIBGVgbPy1dZXfimVpy9eJpU19hrK X-Received: by 2002:a17:907:270f:: with SMTP id w15mr11978859ejk.141.1599293734397; Sat, 05 Sep 2020 01:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599293734; cv=none; d=google.com; s=arc-20160816; b=EHQ7fMXax4SWCa4yhAy9bacXaD2Qys7W6bVKH9IPiPtEruQQiAGeLM6N1akc+qhBce /YH4CTJYh49/g/kWFmjrfg0rZNSWWiTXqMS+vTRrxYaIkqQLQ/CzMNNyZVFfjtKVyYnX 58PkMxIRe93BfIsVFh514F2O/Ca1ySr9uNZ4Rytmo00iWMFAMuFePsX7W+iq3AeZkKn8 0bDcgi+JrScdVvFxVSR0NCIEQrBQZAcxw2+rqMhbgJFhcelB0K+ojkocq6gJLKs8RZ3D XlgXVSqpDC9PhnI+bIMcbWGuGLW4NrDKoDA70lp78ybC6SdYt+T35UgqrJlyElCc5pAE Fcdw== 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=pMU7cXDAfnjPywcyu7y0QXMV0hTqN18SPFUpxi7UALI=; b=fSM5D8zbCNERLKv+h0zzQYMdbZiU2RhEuJUSDFiM8vA9kM6/hNqqxMbqe4BdfsUpFa aAjLyQRpAGeENXbqnrLBEg0sMTx4yHu+ZUoHQ3hVAGfcVCJfMejqb228V7WyUBlzYGcq cQ0J8NZPUnL9uN3Frqv6QaDB55w6F5fDlnblNLW+tFjmxD3bjAykKT2lhQc1yjef0v7b dk7lIZcA0o6IBxCaG4BGa0uBGRlth+SabCF4kK9kd6LyODI2JT9Orwq6rVoU1JhD8baW PFnT3HgySVh8EpeJOBDedOq2fm60fiPbrlGaQX/NbqgDEAjFnuU6BR3aaYPCukkP8Q2K Tctw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gVHCGHEE; 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 o21si5416871ejg.255.2020.09.05.01.15.11; Sat, 05 Sep 2020 01:15:34 -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=gVHCGHEE; 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 S1728297AbgIEIN6 (ORCPT + 99 others); Sat, 5 Sep 2020 04:13:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:3074 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726398AbgIEIN5 (ORCPT ); Sat, 5 Sep 2020 04:13:57 -0400 X-UUID: 3eb9a74b16cb4e09a9d58c60a057e26e-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=pMU7cXDAfnjPywcyu7y0QXMV0hTqN18SPFUpxi7UALI=; b=gVHCGHEEXErNEpcawhIK3LfrT907bsQVtScge/mRx3onRA6HgQNWMSanZuSTuakSwPUPglYq53DnZyNZOaNvmHh3OAY/wCgxwqqI1sSL5Yf8XD4+eXh65hR9WJL7Q4weR2NBSNCttara6iGDYQs17pTY2DIOTg4Niic4HUIsNss=; X-UUID: 3eb9a74b16cb4e09a9d58c60a057e26e-20200905 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] 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 1278988371; Sat, 05 Sep 2020 16:13:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Sep 2020 16:13:50 +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:13:44 +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 16/23] iommu/mediatek: Add single domain Date: Sat, 5 Sep 2020 16:09:13 +0800 Message-ID: <20200905080920.13396-17-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-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 RGVmYXVsdGx5IHRoZSBpb3ZhIHJhbmdlIGlzIDAtNEcuIGhlcmUgd2UgYWRkIGEgc2luZ2xlLWRv bWFpbigwLTRHKQ0KZm9yIHRoZSBwcmV2aW91cyBTb0MuIHRoaXMgYWxzbyBpcyBhIHBy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