Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1114821ybt; Fri, 10 Jul 2020 23:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0D/yVLsnM+ZtjqgCCWXIk7KTwIcvotgEWcJpsU66fW718SxH/Dn1wMrFxSBe+0kJr4CjA X-Received: by 2002:a50:bf09:: with SMTP id f9mr21510624edk.249.1594450397843; Fri, 10 Jul 2020 23:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450397; cv=none; d=google.com; s=arc-20160816; b=YUlLgM2aQtzHcihM3tUG6qvD4/0DI6tUTh43ZQ4m7gRvguJJE7Zk9dfPsuKPhNRaTK 4d9GH+rCYC2+1p1j5lH87Wdrb2ZW/liucedFCX2CDwPGCtN8oO4LEuOhcOLHqJccvJj3 QpEwz4vL9Ibl9p2x2vPgVl8rd+a4JqhldkjuYddakEQAJ58FzSrQWwPHn2ZGNdU89J4S Dlxs5IN4A7slYEddjFwMMAQNK3SF9+OW0eGYlznp7FXigj6ZxIRuboNlU3xp3S1ehLmt mAAl5d3qKoqBApY1mE2Mq5dz6QdgXXsLuXyN3520a1AbpSqSvDFaG3eRkDzVaGvHeCX+ fxdQ== 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=sEiaKj8+B4t3boj7mRPJMc76iEHueHPApwh8Duxwsfc=; b=Mxsjfpnbxp8AHkGd04k/d2lJ3B7Bqvwl0WYwwfRV7PoHRQZZw0VViY9+sJwKcddYv3 Ihy0Mxp09Bdf/mxqiB4KOGT9QtV4vhUqQuangeL73Nl58QYVueOPCamx5nCF9fk64kmr NmwSu0X6zQHYW0KumuUNCeVRwqM+B+LbEteWOOyLqPRW2fYWs/VqAshFH10agP8FKSRy BnBq0nXpKrHwqe5Z9QJ3bw4XUY+WtZaxFEX/H621BareTHBYf1/Rnw9TQW6qL4yaykuN oZfQkKgSCcl3pQGcKt7QVx4Wsg4V0mBLPSPCJ6VWsn7TBVB86lBeVaf+CiajT+UdWM44 gvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QokLMbbB; 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 a1si5761281edb.90.2020.07.10.23.52.55; Fri, 10 Jul 2020 23:53:17 -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=QokLMbbB; 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 S1728318AbgGKGwB (ORCPT + 99 others); Sat, 11 Jul 2020 02:52:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:23715 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727984AbgGKGwB (ORCPT ); Sat, 11 Jul 2020 02:52:01 -0400 X-UUID: 6d7ba65a555e4627995719caa0e62e9e-20200711 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=sEiaKj8+B4t3boj7mRPJMc76iEHueHPApwh8Duxwsfc=; b=QokLMbbBZ+YEYeyx+7n/NmoUjeT2q3+Rlp+XZmOyoK9oQmAnv4UH6Cez+QZLOLCP4tt/B5bijURWtH22O3fuK3L2q0TBVwRDdoMXDKSsKWZHwAAu37spOtzS44lsoXH1eGDzPyXZdwG9WEGnpRK4OJjAXNVn79Kf2UPegxDWaBI=; X-UUID: 6d7ba65a555e4627995719caa0e62e9e-20200711 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 743627226; Sat, 11 Jul 2020 14:51:56 +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; Sat, 11 Jul 2020 14:51:53 +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; Sat, 11 Jul 2020 14:51:52 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 14/21] iommu/mediatek: Add single domain Date: Sat, 11 Jul 2020 14:48:39 +0800 Message-ID: <20200711064846.16007-15-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200711064846.16007-1-yong.wu@mediatek.com> References: <20200711064846.16007-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E2BD001D552BBF5B1333269437BCDBFED01E27E9CA7423881F6A591C561CD3522000: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 RGVmYXVsdGx5IHRoZSBpb3ZhIHJhbmdlIGlzIDAtNEcuIGhlcmUgd2UgYWRkIGEgc2luZ2xlLWRv bWFpbigwLTRHKQ0KZm9yIHRoZSBwcm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