Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1161116pxu; Fri, 27 Nov 2020 00:51:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDPUwMgSqczI5aNofD401XNGH5KXqzrMTqDd+M7Rgxf9v0JjnIu21lvBns3RAI37+zU74+ X-Received: by 2002:a17:906:b217:: with SMTP id p23mr4978645ejz.461.1606467089857; Fri, 27 Nov 2020 00:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606467089; cv=none; d=google.com; s=arc-20160816; b=gkX7KRe/7FYhfkl14BrgXsFtYnqA4ELGdpPKo/ZuTVOafc+qhdc3fDrMADe6LCVsoR ff2Yp7tKHbkO7TgSK2gD+TbNYBAH2Lpo+joRLtcblkgX5fAy2TejUqhBCqtzH+JyBpkB X820mcUlM4qhYEi5h/bavU3Ur3R5T/ULioOjlD+6Qmmr5XYE6JJ8yOVdZwLdmkBlxmPS C5A1cT675Twubtc1mwhpDRcNh6gIJ53jsolhCH2LcPDPZrDPo2rpSJSVF3yTx3pyRLx0 zDneBJxKdHivRy4E9An2JinCd8t5EaCSM2HzglSniymSe2ZfOe9TZh29kLNqs3OQoatn BMQw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=k6991k1USSeF9xBY2RrFpj24tWMV0+Y0E7njcNgEzrA=; b=HWpm3dyFs9V+zB1ecv3Y1NRT3ukL84TXt13oScdnHNFbJTvw+H6tNNtfzFaQsAaSkn PVRkOUX4j22OCAJ530kA2ll/EknHIf1TLeRjP3z4TK9C3pQDAGIAxOMhZMWqIFWtQmhh RQHITqHT+9aiDpw8DhHAYU3MhVN40IBmDW+rm0eemm5awintoJlqj2FVHrBUhD5RTh6a svaQ2L88duLYRqt+gs9txYDXeHn5ZIUkelU9I1egX0yOMjQ6nDAn4Cp5Ep0Q1KtCUjzY VjiU1VpFE6d5IGA4DvPRnjU4IdEVWkCbtFZk+KyzgNL02Ec2dvqUKAVzaGAqcEssgqdX gVmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WSUb2Jke; 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 jt2si4514704ejb.552.2020.11.27.00.51.06; Fri, 27 Nov 2020 00:51:29 -0800 (PST) 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=WSUb2Jke; 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 S2392550AbgK0GVl (ORCPT + 99 others); Fri, 27 Nov 2020 01:21:41 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:9470 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2392545AbgK0GVl (ORCPT ); Fri, 27 Nov 2020 01:21:41 -0500 X-UUID: 0166de49f31e400fbe36e0a6b4f576b7-20201127 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=k6991k1USSeF9xBY2RrFpj24tWMV0+Y0E7njcNgEzrA=; b=WSUb2JkeLbCR7ASWwSPHvXoBOxCiLeZxB9PcOr1TeSr4lXi1/1u8dxwYjPnsRqLRc9ae/lcfDKyHZYlsUW9C/kKoMhFYXx+CWkKFna25lN/pUYCX49lpgJ3l6b7OqwIkigCMS+MZYKhTgD/sWrK39L3l0L/TS6BPOlpLkEZaUgI=; X-UUID: 0166de49f31e400fbe36e0a6b4f576b7-20201127 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2031242701; Fri, 27 Nov 2020 14:21:34 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 27 Nov 2020 14:21:32 +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; Fri, 27 Nov 2020 14:21:31 +0800 Message-ID: <1606458092.26323.192.camel@mhfsdcap03> Subject: Re: [PATCH v4 17/24] iommu/mediatek: Add single domain From: Yong Wu To: Robin Murphy CC: Joerg Roedel , Matthias Brugger , Rob Herring , Will Deacon , Krzysztof Kozlowski , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , , Greg Kroah-Hartman , Date: Fri, 27 Nov 2020 14:21:32 +0800 In-Reply-To: <22e49f08-6d23-86cf-bb9c-79d54ce55beb@arm.com> References: <20201111123838.15682-1-yong.wu@mediatek.com> <20201111123838.15682-18-yong.wu@mediatek.com> <22e49f08-6d23-86cf-bb9c-79d54ce55beb@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: DFD6FF2D0FFC111E8E3A9221E6491E4E883A7AD97F964DC7A2DB8863C42809542000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T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