Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4354381pxk; Wed, 30 Sep 2020 00:14:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOMhDLqUhrR8phl5+tHvvcA/MDwtXNb3lY0PxLxK70Q+PjIx1sIy/eZjLIbaz4JXTh1It3 X-Received: by 2002:a17:906:375a:: with SMTP id e26mr1383879ejc.552.1601450068491; Wed, 30 Sep 2020 00:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601450068; cv=none; d=google.com; s=arc-20160816; b=L4qUiDMJ34Ak9ZkINDiMgMwtxJgP55FZwRnim/wSubPU8NTBBnMfwljeB8GTjfwObY YuoSt/7/N6ncSbPi4gFhXrdWesFJXpD52tkDsPTXrPX3z+yfxkrQWFGEXmf1XD9VaAAb 4Z4UpRDN6bG1EamMxqPEsujkpy4oEn+zTWXcc0VJ0KMOQhgjdENoge8umSdyxCERdVDP 9rlz6TJbgUUFrxEZQ/Z1xQ7osMf5v5zxssZgmY+NJ6LxhweDWAFi8UemFpXfgZXJvlJZ emy7TPouSanopD8RpCxYdV9BtXj4174+mn459c/itQUWd4g9Kh3WfTYGzpbLBBxCjhf2 h0hg== 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=nevF8TOMCP6TM9eSDhUCz2BThWkCdrWjmk4H0qqzNTc=; b=DyFt7qAVefjcz8yGQrvHljcVdf6/PMKVJCl6K4/rLVLQ0S2iHHyeYnPnen+VtZICFq HzgqmDcYgxMt1IMog/VIXBEwXBkjd/JgKbjqpVZbuZmtJyc1jmxnIX6LSHFnPsb8dWjO 70SrglK88OS5qoXV5NvP6MqTsbLXndFGqh6ZzVihej7oEwiDD/bDKeu5UkZfSHcupBu+ sh/3r6ZkbnEhI0JZVnJWeuaNXiOgiUR4oLhkL3VtKalzWIlwHXsoCyOUqlSy+948k6dl fSWNFQw89qR4x5urWckRNyGrXiDfJH6xHRRjpO6qIC0U4bbUf7NxjDUxXOPifOR6zIp2 hJng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=da7u8j9m; 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 s20si611339ejd.559.2020.09.30.00.14.05; Wed, 30 Sep 2020 00:14:28 -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=da7u8j9m; 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 S1728799AbgI3HKc (ORCPT + 99 others); Wed, 30 Sep 2020 03:10:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41525 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725440AbgI3HKb (ORCPT ); Wed, 30 Sep 2020 03:10:31 -0400 X-UUID: 3012554c69ee4cf9b474eee6741de7aa-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=nevF8TOMCP6TM9eSDhUCz2BThWkCdrWjmk4H0qqzNTc=; b=da7u8j9mZGBx+bfM/BTSQaYYeiWsYYc6b5Zbr9vQ3ma9MMEXOcb99/yVhW2pff12ZZHhe8IxTjBabJ5kCojT+vNZvQ0W4LgwVe7FBxiQjRZJA4ggeRcmU2HI/MjwHk6/MUuIdQXu3O27YtK5DfUUQemxRyIx84MQYpYVyRhxOms=; X-UUID: 3012554c69ee4cf9b474eee6741de7aa-20200930 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 173674371; Wed, 30 Sep 2020 15:10:27 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 15:10:24 +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:10:24 +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 17/24] iommu/mediatek: Add single domain Date: Wed, 30 Sep 2020 15:06:40 +0800 Message-ID: <20200930070647.10188-18-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-TM-SNTS-SMTP: DA869CDE9D35E654ECB38AE90AA4E9286629CEE0AE83DF861D8E2709C31037692000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGVmYXVsdGx5IHRoZSBpb3ZhIHJhbmdlIGlzIDAtNEcuIGhlcmUgd2UgYWRkIGEgc2luZ2xlLWRv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