Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp819533ybg; Sun, 26 Jul 2020 23:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVYXDO83Rct1cLoZ/50LX4382Oj+gNkhfjigZnTLOqKfWBLEeKm8WC+1w/fblYpF+bdaLg X-Received: by 2002:a17:906:bcc4:: with SMTP id lw4mr9205537ejb.361.1595832230021; Sun, 26 Jul 2020 23:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595832230; cv=none; d=google.com; s=arc-20160816; b=Rd1UvvDZ5qb+U3UScf+jO0Dcy8DRDgoqLHuFt1aTdhVsXBWDO1WPeJ49N7IT03hV+w B4LDqhFOannQGywwgxCG4/kbquWQtywyYyRAGYnLSmFsR3VrLcWNAXj7miEG2R/4CXAT hoqvitZSWIjv6GBrTrE55D6cki2LLusorkH0Cn9njLqANds1OorBOEKUaMRPpyjk0aOi DJIdrK5IlVpnh4fxaUc/nScnqtnLB9XgQAp2dfq8wKJzFdmfjawyviCf6RQPtH5GG6ep Cj523UcDMYlQi6wlDUnIN71efWv+4+HOGL1m2vVeNjef3YwRwMj5UaCV411q+gI7KF8N CASg== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=sPmuXHpH9XNlFgouHZYOVCVUIZrXlxeu/KMhxKhqoFc=; b=X+R7YkypfiHsVTMuwl/uwKV+tDkTlsSm3BXprsBly8rAKu11xpR78Qh9OZ4SBiobNT v4BZbC+XYE0zUzW1aslZSiivvzc9cNs/myY+mssITr2ctXIKi3Soy97XRPE+lR3i2bE1 0pg5O70u8nsVbld3Ac4oWeqXF0bKYHvs84JavIEOvwpEgXawwGvixpImkY06Bp36JFT3 Oqfp2qEFHz7A/V1iTWPvhjyDoQv1ni3nRUircqo5AQjr7Qw8NHs5/WYlBTh1oJeFapEG EFFFTrCgOCIf36yiXanCBS2OTi+rXf5S1TciQaj8EBsJ/Ok7i2FnVxSPFO8n+2cZrrxV 1k+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CSaEj9xs; 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 r26si5759925ejb.35.2020.07.26.23.43.27; Sun, 26 Jul 2020 23:43:50 -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=CSaEj9xs; 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 S1726676AbgG0Gmz (ORCPT + 99 others); Mon, 27 Jul 2020 02:42:55 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:46325 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726122AbgG0Gmz (ORCPT ); Mon, 27 Jul 2020 02:42:55 -0400 X-UUID: 7eb9876217be47ceb8d12aa6fa423a50-20200727 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=sPmuXHpH9XNlFgouHZYOVCVUIZrXlxeu/KMhxKhqoFc=; b=CSaEj9xsdVGsTTGzjZNP6nk77KrP83X/JIeZRPFPAz4jC4GMhQt0kGDv8d/7pYyDSKqkOU4BZlJtjP7Qhr0L6cCkZCtIJvApQtTTbxSdmqH5GoZZdNn+u2vI/E5dFIqzN2tUR23p79URFq2gj807/goi7Fii5lZ5VVUz9OKW2+I=; X-UUID: 7eb9876217be47ceb8d12aa6fa423a50-20200727 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 967003377; Mon, 27 Jul 2020 14:42:41 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS32N1.mediatek.inc (172.27.4.71) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 27 Jul 2020 14:42:38 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 27 Jul 2020 14:42:35 +0800 Message-ID: <1595832080.16172.88.camel@mhfsdcap03> Subject: Re: [PATCH 18/21] iommu/mediatek: Add support for multi domain From: Yong Wu To: Rob Herring CC: Joerg Roedel , Matthias Brugger , Robin Murphy , Will Deacon , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Date: Mon, 27 Jul 2020 14:41:20 +0800 In-Reply-To: <20200723204729.GA823856@bogus> References: <20200711064846.16007-1-yong.wu@mediatek.com> <20200711064846.16007-19-yong.wu@mediatek.com> <20200723204729.GA823856@bogus> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: AAEEA5DEDA078252AF7983EB2F3959E34D7A075A7A10B725C05A35A5BB0517B82000: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 T24gVGh1LCAyMDIwLTA3LTIzIGF0IDE0OjQ3IC0wNjAwLCBSb2IgSGVycmluZyB3cm90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