From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 122D6CCA479 for ; Tue, 28 Jun 2022 17:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232298AbiF1RC4 (ORCPT ); Tue, 28 Jun 2022 13:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233911AbiF1RC2 (ORCPT ); Tue, 28 Jun 2022 13:02:28 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C052255B8; Tue, 28 Jun 2022 10:02:13 -0700 (PDT) Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LXW8S0MWKz6GD42; Wed, 29 Jun 2022 01:01:28 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 19:02:11 +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_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 18:02:10 +0100 Date: Tue, 28 Jun 2022 18:02:09 +0100 From: Jonathan Cameron To: Dan Williams CC: , Ira Weiny , , , , , Subject: Re: [PATCH 12/46] cxl/mem: Convert partition-info to resources Message-ID: <20220628180209.00001ca1@Huawei.com> In-Reply-To: <165603878921.551046.8127845916514734142.stgit@dwillia2-xfh> References: <165603869943.551046.3498980330327696732.stgit@dwillia2-xfh> <165603878921.551046.8127845916514734142.stgit@dwillia2-xfh> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.42] X-ClientProxiedBy: lhreml712-chm.china.huawei.com (10.201.108.63) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, 23 Jun 2022 19:46:29 -0700 Dan Williams wrote: > To date the per-device-partition DPA range information has only been > used for enumeration purposes. In preparation for allocating regions > from available DPA capacity, convert those ranges into DPA-type resource > trees. > > With resources and the new add_dpa_res() helper some open coded end > address calculations and debug prints can be cleaned. > > The 'cxlds->pmem_res' and 'cxlds->ram_res' resources are child resources > of the total-device DPA space and they in turn will host DPA allocations > from cxl_endpoint_decoder instances (tracked by cxled->dpa_res). > > Cc: Ira Weiny > Signed-off-by: Dan Williams LGTM Reviewed-by: Jonathan Cameron