Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1456804pxb; Thu, 28 Jan 2021 17:54:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdV60XlkaInmRA2dOb5Fjmyn+htOFiYbiN+Pl0mTYGKLmbkJny9O9fPcQuiKYRYjEffsMo X-Received: by 2002:a17:906:4451:: with SMTP id i17mr2247290ejp.436.1611885273556; Thu, 28 Jan 2021 17:54:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611885273; cv=none; d=google.com; s=arc-20160816; b=BhMGrk8wCHFVLMVNTt12fPYA5B+1zxGH9luuElh+xDIq7tGjsfvT2DK7jDGOYdBP8v /nJUAlzAFCxRVeHzh0O1TRZg6VrPs9u60AAjW5M+mYjuQG0yfVg9F6bW16iqXnfeB6LK gDgFdYhkyutejErcRz2JhVWPVfSigeI3y4k/iNlziOtln5yaKtPlzB91hsYlSwm53kDL JouwMkQ1L6+QFeKzUM9PqRz28uFUS3BuK5DfIjJffD8occgcc1wzyw4n82OiO9wexGq2 BJT1k+Y59+jqyQscvIsVUVmQ1XBkkIpSgTFz7cpQwPE5OvaolY6PPoN28h3ZzgN+erDZ VcBg== 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=fdRmt55p+MQD3S1Cu81aNjjrFDffurU5HWdEwTLBEdQ=; b=eTXrTg+4CB1efDFho6ckoB34Uhq68F4c1+2e41rkEy/KnulKgMNethElbH6DM77y88 3BEa+5tlpSUXi96BIxRZ6v7DscoLJwH0L2jBftFj0j+mJD2HT1RkPkoapRiTjfkyk2ci x8aX3QpMTRm3sVALOBo1TpNUAXQCM04TBvYQRy0WD1GNHnAwEEZTluTP5MLHA4moZMb6 rF+kkdtuPwhc5ILQDBAkU6XK2DgrBMZS/VNmkApOmhBKLLzifJv7/ayjALNISVhsn3k4 hLNAd4MhDHf06zerN7VjVRfDHBOMI+AuZ3lAWQhaNB+FVdUgdEQWgLhr+QMDdO2N4k+F /1Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jvqRAwKx; 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 jt18si3733114ejb.633.2021.01.28.17.54.08; Thu, 28 Jan 2021 17:54:33 -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=jvqRAwKx; 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 S231224AbhA2Bxk (ORCPT + 99 others); Thu, 28 Jan 2021 20:53:40 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:7826 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229866AbhA2Bxg (ORCPT ); Thu, 28 Jan 2021 20:53:36 -0500 X-UUID: dc9c42d6294a48ee8dd193beffc176c0-20210129 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=fdRmt55p+MQD3S1Cu81aNjjrFDffurU5HWdEwTLBEdQ=; b=jvqRAwKx77mrVFAY9ifsdXuA3WEDaJy1giDwPh7i+foA2l69CMIuGplOP2nFEp2MMB+sHWv6dIo37lLmI7CfsflINWNm/SWr7TYK3ldCTKwsjuBjiCfFbmlndv8TkTGBVyWoRpmHZA156TMFaQobkyhbbLIw8Dtoa979/h0m8Og=; X-UUID: dc9c42d6294a48ee8dd193beffc176c0-20210129 Received: from mtkcas34.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 1814884913; Fri, 29 Jan 2021 09:52:44 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 Jan 2021 09:52:42 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 Jan 2021 09:52:41 +0800 Message-ID: <1611885162.5302.19.camel@mhfsdcap03> Subject: Re: [PATCH v6 07/33] iommu: Avoid reallocate default domain for a group From: Yong Wu To: Will Deacon CC: Joerg Roedel , Rob Herring , Matthias Brugger , Robin Murphy , Krzysztof Kozlowski , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , Date: Fri, 29 Jan 2021 09:52:42 +0800 In-Reply-To: <20210128211442.GB3531@willie-the-truck> References: <20210111111914.22211-1-yong.wu@mediatek.com> <20210111111914.22211-8-yong.wu@mediatek.com> <20210126222305.GB30460@willie-the-truck> <1611740356.5302.14.camel@mhfsdcap03> <20210128211020.GA3531@willie-the-truck> <20210128211442.GB3531@willie-the-truck> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: C7FA721F47A35587783A8CC9CE434783D2147DE2CF3728D62F7C900CF55A2C7A2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kern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