From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA6227B; Wed, 29 Jun 2022 17:19:32 +0000 (UTC) Received: from fraeml705-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LY7S45THgz6H6sH; Thu, 30 Jun 2022 01:17:08 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml705-chm.china.huawei.com (10.206.15.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Wed, 29 Jun 2022 19:19:29 +0200 Received: from localhost (10.202.226.42) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.24; Wed, 29 Jun 2022 18:19:28 +0100 Date: Wed, 29 Jun 2022 18:19:27 +0100 From: Jonathan Cameron To: Dan Williams CC: , , , , Subject: Re: [PATCH 27/46] cxl/port: Move 'cxl_ep' references to an xarray per port Message-ID: <20220629181927.000029fa@Huawei.com> In-Reply-To: <20220624041950.559155-2-dan.j.williams@intel.com> References: <165603869943.551046.3498980330327696732.stgit@dwillia2-xfh> <20220624041950.559155-2-dan.j.williams@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.42] X-ClientProxiedBy: lhreml709-chm.china.huawei.com (10.201.108.58) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected On Thu, 23 Jun 2022 21:19:31 -0700 Dan Williams wrote: > In preparation for region provisioning that needs to walk the topology > by endpoints, use an xarray to record endpoint interest in a given port. > In addition to being more space and time efficient it also reduces the > complexity of the implementation by moving locking internal to the > xarray implementation. It also allows for a single cxl_ep reference to > be recorded in multiple xarrays. > > Signed-off-by: Dan Williams Reviewed-by: Jonathan Cameron