Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp524060pxb; Wed, 27 Jan 2021 13:52:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUnDrO/uzy/jLHhitYVlQaw10Q7uBwBtzyEeKaSbQPWz3bGx0O2+wQ+kEha0redULSl/42 X-Received: by 2002:a50:934a:: with SMTP id n10mr10858524eda.26.1611784336902; Wed, 27 Jan 2021 13:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611784336; cv=none; d=google.com; s=arc-20160816; b=iOGx/1ONCJaNWv6lXKU6Lk+8XoKNrA1ltDK1Qh0K9i4DF1FXYQJByeJFkx4vLFhKNa 1IjjUihIril5t9xmexQTP9HpmCvTemdMq4eM1XkHzYUUQdm6JAoHRDGuopQp5E3PV3BB AhgI4W5aSnoBPKS6HIm5MgqDvytE+OhypX5Qm/LWHULfXRzlo92l/gDXToci/krLF85H dJkVv0YrlHI9vOCuymzZ+dhg5A5YhPnBKFYry5vWkyAQQJf92xqH4nZz2JCQIC/Yqx7U rJdx5DTODsw1Y1H7eXQHT6uJha02eAUsr36YH/K20skJvq1OMwTUV4mAW+eCpGfCoNQp A8MA== 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=OBxOSBPDbNRIc9EIOyaVw0/Acj/J50gJQln+TyAJ4w4=; b=n0QH3yqTcXA4sVLRt81GEHP18BFmbEvR6QPJ0/1BvCLHRnTwaKd78Tv6/q8MLCjaop MAGTu8p/Mj2rXYBSfgM9lSKXtXsQWjuDE114IU4oGZAFqecBIdlgSRtkzFMltWkxKq/j a79kFOYAVR3fqGlFyA/k4KMfvAKVUdQR+8KHL1sBB7r94MNHT3CW2Khszo0mc2VpGPCH aW/Nwpd96f3d8K9N952kYkovVfvhyT1/bAMsrjQncwc+CL96EkiLbCNyCroisMadPkom jbtUN7eEjg/VW8ddEOlMOb279E/e2Tg8XJi492RA/qLAX5zWSx2xhvzz81s9NjrYRNwF HLCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fKTey2Us; 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 u8si1809844edj.434.2021.01.27.13.51.51; Wed, 27 Jan 2021 13:52:16 -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=fKTey2Us; 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 S233793AbhA0JmP (ORCPT + 99 others); Wed, 27 Jan 2021 04:42:15 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:35879 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233593AbhA0JkL (ORCPT ); Wed, 27 Jan 2021 04:40:11 -0500 X-UUID: 95a941a449a945569533e47030366fa5-20210127 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=OBxOSBPDbNRIc9EIOyaVw0/Acj/J50gJQln+TyAJ4w4=; b=fKTey2UsD9ZWtXMjndTDzR8flYyWadWqD3c0di7De3krd96p/88RpeIDGsiigtf1d7pZrWTZGrqqZc4zwcJMXo36VHJTaZYbMLwlt+xy3lmI28KLMntvuUG8N4iZUXh/Pmi2FoqvhFacYiYdXTKM00S3hWiLDYCUwMiJeOk2PbU=; X-UUID: 95a941a449a945569533e47030366fa5-20210127 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 969588445; Wed, 27 Jan 2021 17:39:19 +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; Wed, 27 Jan 2021 17:39:17 +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; Wed, 27 Jan 2021 17:39:16 +0800 Message-ID: <1611740356.5302.14.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: Wed, 27 Jan 2021 17:39:16 +0800 In-Reply-To: <20210126222305.GB30460@willie-the-truck> References: <20210111111914.22211-1-yong.wu@mediatek.com> <20210111111914.22211-8-yong.wu@mediatek.com> <20210126222305.GB30460@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: F36F529AFC96016349EB7092D40E98B771F9B02D82265433FE286BC98F51FFAC2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIxLTAxLTI2IGF0IDIyOjIzICswMDAwLCBXaWxsIERlYWNvbiB3cm90ZToNCj4g T24gTW9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