Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp796705rwd; Thu, 1 Jun 2023 06:45:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xykQNAn+tOsqHUYtBx/kiuO2teLLLTAQYUz5l4BY/oQ5lXph/dhy5QjW2w5cKJ1LnQyxE X-Received: by 2002:a05:6a20:8e18:b0:10c:38d3:437c with SMTP id y24-20020a056a208e1800b0010c38d3437cmr7664930pzj.58.1685627111759; Thu, 01 Jun 2023 06:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685627111; cv=none; d=google.com; s=arc-20160816; b=L1gXO1qDtAkHAQ+hpTphqE4HXjmiZIjvs3toRTDqWde4Bz943dca8VqjXchXsRieVl Dy/3GbVtT4jKHlG/lV6YVl3BTFK3fxJBj0Fm+FD92JQ9xI7gpl9HJnz6wMpvGCbJPDQs Pncf96nbsFS7otXrU31ousXMwX3t05oPX5sMtpkfO/geAS62H7SdcOODAP5kL55/27Uf lQWbL+PqCqT/eQK8J6j//KfrhJ1OuQIW5tSMnmkJiFgP4tu5RM9jDCQW8g/RV+S2C+7p Jw3VFZd+704y6uFNJJTqmXLS3S0/5M3GguCJ3+6TWO0vzTNrfBUCxqFrpB4ujlktaeMt kwzQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=klmH8mDsRw15Y8dgW3l/c++LbH2ZFHhuBxVO1taSNNw=; b=uk/o7BNnCv8L9igDEorCyw19gM4BS8KLNbsiN9n6xyYebey4h1cLLguo8ztjBpZwFt Oy9jfkHDTCaXYp/ICA3tKXvfq/KpIDOtR/CK0l42ATbckMHsnQrfi6ZF132So1nLkI6+ +ZbeYdtF1bI3JxPjdEYkEUjyKWt/nKTsZsDgTdAa3nWKLZluu9pKX5w2sFGxhDJbWl4d dafSZD7Afav+1RVyB1MePCiTF4rpVM/iFzo3b0Rbs6y/wvI+L6dsiza4f6c+uesAXEl6 TUPNggrQMC0X0QXkrvYrbHJBk5mSH1ODiyRYfnSkq12Pk7D/nxy9wqK5cRDPkf556EDf ZMgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020aa79528000000b00643c4d0d0f5si5443163pfp.39.2023.06.01.06.44.59; Thu, 01 Jun 2023 06:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233854AbjFAN2H (ORCPT + 99 others); Thu, 1 Jun 2023 09:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233734AbjFAN1v (ORCPT ); Thu, 1 Jun 2023 09:27:51 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A235FE66; Thu, 1 Jun 2023 06:27:29 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QX6PK5rSLz6J74d; Thu, 1 Jun 2023 21:27:17 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 1 Jun 2023 14:27:18 +0100 Date: Thu, 1 Jun 2023 14:27:18 +0100 From: Jonathan Cameron To: Terry Bowman CC: , , , , , , , , , Subject: Re: [PATCH v4 14/23] cxl/port: Remove Component Register base address from struct cxl_port Message-ID: <20230601142718.00001855@Huawei.com> In-Reply-To: <20230523232214.55282-15-terry.bowman@amd.com> References: <20230523232214.55282-1-terry.bowman@amd.com> <20230523232214.55282-15-terry.bowman@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 May 2023 18:22:05 -0500 Terry Bowman wrote: > From: Robert Richter > > The Component Register base address @component_reg_phys is no longer > used after the rework of the Component Register setup which now uses > struct member @comp_map instead. Remove the base address. > > Signed-off-by: Robert Richter > Signed-off-by: Terry Bowman Reviewed-by: Jonathan Cameron > --- > drivers/cxl/core/port.c | 4 +--- > drivers/cxl/cxl.h | 2 -- > 2 files changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c > index db2ba0c886e2..183f9f8548e2 100644 > --- a/drivers/cxl/core/port.c > +++ b/drivers/cxl/core/port.c > @@ -615,7 +615,6 @@ static int devm_cxl_link_parent_dport(struct device *host, > static struct lock_class_key cxl_port_key; > > static struct cxl_port *cxl_port_alloc(struct device *uport, > - resource_size_t component_reg_phys, > struct cxl_dport *parent_dport) > { > struct cxl_port *port; > @@ -665,7 +664,6 @@ static struct cxl_port *cxl_port_alloc(struct device *uport, > } else > dev->parent = uport; > > - port->component_reg_phys = component_reg_phys; > ida_init(&port->decoder_ida); > port->hdm_end = -1; > port->commit_end = -1; > @@ -724,7 +722,7 @@ static struct cxl_port *__devm_cxl_add_port(struct device *host, > struct device *dev; > int rc; > > - port = cxl_port_alloc(uport, component_reg_phys, parent_dport); > + port = cxl_port_alloc(uport, parent_dport); > if (IS_ERR(port)) > return port; > > diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h > index dc83c1d0396e..4365d46606df 100644 > --- a/drivers/cxl/cxl.h > +++ b/drivers/cxl/cxl.h > @@ -556,7 +556,6 @@ struct cxl_dax_region { > * @nr_dports: number of entries in @dports > * @hdm_end: track last allocated HDM decoder instance for allocation ordering > * @commit_end: cursor to track highest committed decoder for commit ordering > - * @component_reg_phys: component register capability base address (optional) > * @dead: last ep has been removed, force port re-creation > * @depth: How deep this port is relative to the root. depth 0 is the root. > * @cdat: Cached CDAT data > @@ -576,7 +575,6 @@ struct cxl_port { > int nr_dports; > int hdm_end; > int commit_end; > - resource_size_t component_reg_phys; > bool dead; > unsigned int depth; > struct cxl_cdat {