From patchwork Mon Dec 2 17:12:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lucero Palau, Alejandro" X-Patchwork-Id: 13891059 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2040.outbound.protection.outlook.com [40.107.237.40]) (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 38A451DE4CC; Mon, 2 Dec 2024 17:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733159596; cv=fail; b=pIANpnKIfrgceUncjczs3CeAaeHcN5cySFovy3RK9Dr1hfITTeMa7m0blfyA+8GiDiTkOkO64Z3+rqPPDw2usmEnOcqkvAf0KS851a1Pm6m98wO3KAU0PrHvbGFNDyOdkTnThnMx+4K2vqEG30nr0hRlQV07EXbKXoT6oTvOedA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733159596; c=relaxed/simple; bh=FMK8C5r4zco8T13/OSoZ6AIuyTX0IIxaIjNXgHd0QXo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Y8proE6dlgVn34YOqvexdg9Ok+ChYKyOCPhntA4yDASsuef0p4BDUh/uj5nNQJtbVZ6pnJh1rOKnx6ZbeA/gtx1ECmLhbonFkR7AmDTNqxWqpeLAoHqbQB/Hx3nqztOXUis5upLo9cXyKRHpxiLms7Y5+pmiAzVZegi37PpDT9w= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=a/mAgyQv; arc=fail smtp.client-ip=40.107.237.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="a/mAgyQv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fvAKdWeK+PrqTTnqZ+gqIjRDihOCVKpHhceH945ox5dWzZmivtjKKUUco6xXG0/GsU72POfLkO9ijcXp3kbu+bxnLZf1IkAi8p61QWV6ggDDrahsTS8HogGegI/9rldb5Ubq/8Xvj7D1mh+Yq+DZAjVmA97kHXE/1q8hZupNuJOcMh2dr8nXR6IaqyKzoYOd70f/aCHmwDUNFPFcthHi3QnF4INGaXZ+OmGrrmwnLFM84fk6bFQCnT8kHShA34j974iq7ySjn9mKx11xXrmBgWWrgmMBaZy0Bu9X+WZ2cwRnRFrHizi51kwQzVbhtCXMdU2rWR95m5LPVnWmh/axkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OgZlkSzgFPedwRrKDOxWuO8ui4M7AiOKGXvLTanpixA=; b=fR9+0rDvJLsi82gTxP/c+Kj6S7gxOLV8jOW2gE7pRtEzmGlrSk8EpuuyVHujSsyR2bMsnfILT+yhXomXCKtt+aV/TlVln28MvbE+sBn2kp25Ho9u8OvExwJ649oJQyBLZw74jXD2JFZn0dGBd2MYptrjrfwwMxP7padfDt+ws+oC2azxvy1k01jLKsvv8ycPGWZMp9t6yLlEMZoQVe5+0ZTxujoBSQm8JFps5JRR5vVPd0z2WVOBSeRy1MNF1iNeExH3mKJDq396CmfLCy2dVQlHRaYnH0RApG5zDAY8MSV4xtdfPQXLR/n53OLAzPpumteFhcE3aUbDVbar78rqtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OgZlkSzgFPedwRrKDOxWuO8ui4M7AiOKGXvLTanpixA=; b=a/mAgyQvzI7Ac/QPVWGAS8O1vN6Ukq52/BC64qz019KGrKMUTg1edkFi7kc0uCM8fuTXiJR+WIXZ9/DzOpbeLz29fiMa5Gqy4eaOarA5EQMZBKAVYKHb1WHAeEajZiPMwqev6nvuuwfpeO10iViAxGIxxGFOmYIyQx/l9wbregU= Received: from BN9PR03CA0530.namprd03.prod.outlook.com (2603:10b6:408:131::25) by PH7PR12MB7353.namprd12.prod.outlook.com (2603:10b6:510:20c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.17; Mon, 2 Dec 2024 17:13:07 +0000 Received: from BN2PEPF000044AC.namprd04.prod.outlook.com (2603:10b6:408:131:cafe::cd) by BN9PR03CA0530.outlook.office365.com (2603:10b6:408:131::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.17 via Frontend Transport; Mon, 2 Dec 2024 17:13:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN2PEPF000044AC.mail.protection.outlook.com (10.167.243.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8230.7 via Frontend Transport; Mon, 2 Dec 2024 17:13:07 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 2 Dec 2024 11:13:05 -0600 Received: from xcbalucerop41x.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 2 Dec 2024 11:13:03 -0600 From: To: , , , , , , , , , CC: Alejandro Lucero Subject: [PATCH v6 22/28] cxl: allow region creation by type2 drivers Date: Mon, 2 Dec 2024 17:12:16 +0000 Message-ID: <20241202171222.62595-23-alejandro.lucero-palau@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20241202171222.62595-1-alejandro.lucero-palau@amd.com> References: <20241202171222.62595-1-alejandro.lucero-palau@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: alejandro.lucero-palau@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AC:EE_|PH7PR12MB7353:EE_ X-MS-Office365-Filtering-Correlation-Id: d106d551-a61c-4dbf-2861-08dd12f4973b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|82310400026|376014|921020; X-Microsoft-Antispam-Message-Info: fAR+hcxjwftcAbbixqrkNDQW/eIT/tjIV3wBls24KaxWyL+kSlJ21LpCFd0n3CQbuGg9bWkmS41FvLDYj0C3ehPLT7N17uXh8kyfHk12uyCuDAdNpHmccjZzZKTk/0Fjtxv98KmiWnOrMAXVgHIWQ3U0bZWs/DZeiCgwgGkOV3G5xH64K64iz31MOl5cfBIxUcqcdpd4X6pIa384DhYK16ZW27w4Mo60piMHm9tgxiPSkAlalchaMHruqRPOIA7aDQbNqTvo4+qtenU7EvT/3Nb9gFkHJr7lk04MEC/zyElWqMgP2SRjbvaIwoMA4AtqoWZdBH1cngYHtReomT8P0iQyt9Er8CD/4EC3xZfbLujeQu2uW0BoXd8IFT0RnFlMSOlS5GcQ3u3XfctIWxWm++Tj11c+0xO9xY+K5eZ/JDW48+wZk/+ASum0NaLFaxicZRbRZPrej4tJ3nLtgVJ+IRf3My624nbIql2UcmamQzohRRsmvCqnpdSV+5bvj7UTtSJbzxoYYVVuMrIhxkW2naXWCpq1vhtVM3SGwTpMh+m/uNby8uTlcwzpoi0drR/lPy/A1WXVh6zHeyfCyBTawQRjyel8Szm7O2r8N2955d1oB9RlW+bURQIGIp8aW7iUP94ixH+GBHmPlMyc+i3w26sI6ydNRxUCMDwDFEC0JatfIM+y0PD5fI93RHq2Kfzzpg4lxYrbQlIPgJuim3MauzFQU8CAITrhyer40Ly5bjlS/hyRW5k0KeLQYvu5HVmLUmwpq3FgyUtSAC9Fv6FZVMAqlIs1oY/h/VB6kmkj70OfSH0yQIZU4ZPcLhDmdQJD7jLxKv2hFOXWvSXbRXxWm9EcVdNhkN0DAxIItLBXNELLWN3SQnqTJN8cX7+PoHfcNkXRDlflOu6yXTLNBlPqiNpYxjxuqdDpf7jy5CdszXLql1ZfRvT8C+vfxVyBCFqY1k/P36q61ZcLlNaptlx0Dg1B7tMTiSy6Pis2HOMtUy3XE0KDw6PMYQ+HqAg2aTZ9sFkDs8rtBlOEHPb21ErvwiMRoB1fAv92+wFODtp/pFR6aStTR5CPzjhNafkmnCLzcV4Xl1dSjZqkKkvaEsDAAyqNg5TEgta+0osMkgb7dDzs4U0nUNHnLFlv5PkQ8QXjaluJCD5hYn9Hkh0DL3Wnzz90ZvSi/QOcF4qNOdND5U8PNwIbHsAuEAAjJlT96IoLM2yiE+1zGMtOXCRq9hj0an0UPrxTa6ZzRO4esAYcUrXQkkev8YqipXpycpy9xrOkr54cXrDpZ0lYGDm6nEjaw8hlIhOqnhQlp2Ed9RR/F5IgSPkkdKl0kbsW+T8yMqwNifeFA0PyRPW4kof4hq6BrqWF/+fvbGiJ7O4panWTYRsCVwdEnfAvskmUBBzRcByPwxRHs1yhOyhVZX7tiNFbiVEuda6eD2T/7bbYU0xS+nvh8+0vZDQoWTKzpgkQhSRlK3fhFmKCy32zYCKKvC9iug== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2024 17:13:07.4097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d106d551-a61c-4dbf-2861-08dd12f4973b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044AC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7353 From: Alejandro Lucero Creating a CXL region requires userspace intervention through the cxl sysfs files. Type2 support should allow accelerator drivers to create such cxl region from kernel code. Adding that functionality and integrating it with current support for memory expanders. Based on https://lore.kernel.org/linux-cxl/168592159835.1948938.1647215579839222774.stgit@dwillia2-xfh.jf.intel.com/ Signed-off-by: Alejandro Lucero Signed-off-by: Dan Williams --- drivers/cxl/core/region.c | 148 +++++++++++++++++++++++++++++++++----- drivers/cxl/cxlmem.h | 2 + drivers/cxl/port.c | 5 +- include/cxl/cxl.h | 4 ++ 4 files changed, 142 insertions(+), 17 deletions(-) diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index 203312007165..79d5e3a47af3 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -2260,6 +2260,18 @@ static int cxl_region_detach(struct cxl_endpoint_decoder *cxled) return rc; } +int cxl_accel_region_detach(struct cxl_endpoint_decoder *cxled) +{ + int rc; + + down_write(&cxl_region_rwsem); + cxled->mode = CXL_DECODER_DEAD; + rc = cxl_region_detach(cxled); + up_write(&cxl_region_rwsem); + return rc; +} +EXPORT_SYMBOL_NS_GPL(cxl_accel_region_detach, CXL); + void cxl_decoder_kill_region(struct cxl_endpoint_decoder *cxled) { down_write(&cxl_region_rwsem); @@ -2766,6 +2778,14 @@ cxl_find_region_by_name(struct cxl_root_decoder *cxlrd, const char *name) return to_cxl_region(region_dev); } +static void drop_region(struct cxl_region *cxlr) +{ + struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); + struct cxl_port *port = cxlrd_to_port(cxlrd); + + devm_release_action(port->uport_dev, unregister_region, cxlr); +} + static ssize_t delete_region_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) @@ -3372,17 +3392,18 @@ static int match_region_by_range(struct device *dev, void *data) return rc; } -/* Establish an empty region covering the given HPA range */ -static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, - struct cxl_endpoint_decoder *cxled) +static void construct_region_end(void) +{ + up_write(&cxl_region_rwsem); +} + +static struct cxl_region *construct_region_begin(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled) { struct cxl_memdev *cxlmd = cxled_to_memdev(cxled); - struct cxl_port *port = cxlrd_to_port(cxlrd); - struct range *hpa = &cxled->cxld.hpa_range; struct cxl_region_params *p; struct cxl_region *cxlr; - struct resource *res; - int rc; + int err; do { cxlr = __create_region(cxlrd, cxled->mode, @@ -3391,8 +3412,7 @@ static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, } while (IS_ERR(cxlr) && PTR_ERR(cxlr) == -EBUSY); if (IS_ERR(cxlr)) { - dev_err(cxlmd->dev.parent, - "%s:%s: %s failed assign region: %ld\n", + dev_err(cxlmd->dev.parent, "%s:%s: %s failed assign region: %ld\n", dev_name(&cxlmd->dev), dev_name(&cxled->cxld.dev), __func__, PTR_ERR(cxlr)); return cxlr; @@ -3402,13 +3422,33 @@ static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, p = &cxlr->params; if (p->state >= CXL_CONFIG_INTERLEAVE_ACTIVE) { dev_err(cxlmd->dev.parent, - "%s:%s: %s autodiscovery interrupted\n", + "%s:%s: %s region setup interrupted\n", dev_name(&cxlmd->dev), dev_name(&cxled->cxld.dev), __func__); - rc = -EBUSY; - goto err; + err = -EBUSY; + construct_region_end(); + drop_region(cxlr); + return ERR_PTR(err); } + return cxlr; +} + +/* Establish an empty region covering the given HPA range */ +static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled) +{ + struct cxl_memdev *cxlmd = cxled_to_memdev(cxled); + struct range *hpa = &cxled->cxld.hpa_range; + struct cxl_region_params *p; + struct cxl_region *cxlr; + struct resource *res; + int rc; + + cxlr = construct_region_begin(cxlrd, cxled); + if (IS_ERR(cxlr)) + return cxlr; + set_bit(CXL_REGION_F_AUTO, &cxlr->flags); res = kmalloc(sizeof(*res), GFP_KERNEL); @@ -3431,6 +3471,7 @@ static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, __func__, dev_name(&cxlr->dev)); } + p = &cxlr->params; p->res = res; p->interleave_ways = cxled->cxld.interleave_ways; p->interleave_granularity = cxled->cxld.interleave_granularity; @@ -3447,16 +3488,91 @@ static struct cxl_region *construct_region(struct cxl_root_decoder *cxlrd, /* ...to match put_device() in cxl_add_to_region() */ get_device(&cxlr->dev); - up_write(&cxl_region_rwsem); - + construct_region_end(); return cxlr; err: - up_write(&cxl_region_rwsem); - devm_release_action(port->uport_dev, unregister_region, cxlr); + construct_region_end(); + drop_region(cxlr); return ERR_PTR(rc); } +static struct cxl_region * +__construct_new_region(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled) +{ + struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; + struct cxl_region_params *p; + struct cxl_region *cxlr; + int rc; + + cxlr = construct_region_begin(cxlrd, cxled); + if (IS_ERR(cxlr)) + return cxlr; + + rc = set_interleave_ways(cxlr, 1); + if (rc) + goto err; + + rc = set_interleave_granularity(cxlr, cxld->interleave_granularity); + if (rc) + goto err; + + rc = alloc_hpa(cxlr, resource_size(cxled->dpa_res)); + if (rc) + goto err; + + down_read(&cxl_dpa_rwsem); + rc = cxl_region_attach(cxlr, cxled, 0); + up_read(&cxl_dpa_rwsem); + + if (rc) + goto err; + + rc = cxl_region_decode_commit(cxlr); + if (rc) + goto err; + + p = &cxlr->params; + p->state = CXL_CONFIG_COMMIT; + + construct_region_end(); + return cxlr; +err: + construct_region_end(); + drop_region(cxlr); + return ERR_PTR(rc); +} + +/** + * cxl_create_region - Establish a region given an endpoint decoder + * @cxlrd: root decoder to allocate HPA + * @cxled: endpoint decoder with reserved DPA capacity + * + * Returns a fully formed region in the commit state and attached to the + * cxl_region driver. + */ +struct cxl_region *cxl_create_region(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled) +{ + struct cxl_region *cxlr; + + mutex_lock(&cxlrd->range_lock); + cxlr = __construct_new_region(cxlrd, cxled); + mutex_unlock(&cxlrd->range_lock); + + if (IS_ERR(cxlr)) + return cxlr; + + if (device_attach(&cxlr->dev) <= 0) { + dev_err(&cxlr->dev, "failed to create region\n"); + drop_region(cxlr); + return ERR_PTR(-ENODEV); + } + return cxlr; +} +EXPORT_SYMBOL_NS_GPL(cxl_create_region, CXL); + int cxl_add_to_region(struct cxl_port *root, struct cxl_endpoint_decoder *cxled) { struct cxl_memdev *cxlmd = cxled_to_memdev(cxled); diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h index 4c1c53c29544..9d874f1cb3bf 100644 --- a/drivers/cxl/cxlmem.h +++ b/drivers/cxl/cxlmem.h @@ -874,4 +874,6 @@ struct cxl_hdm { struct seq_file; struct dentry *cxl_debugfs_create_dir(const char *dir); void cxl_dpa_debug(struct seq_file *file, struct cxl_dev_state *cxlds); +struct cxl_region *cxl_create_region(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled); #endif /* __CXL_MEM_H__ */ diff --git a/drivers/cxl/port.c b/drivers/cxl/port.c index 24041cf85cfb..2b2cde5890bb 100644 --- a/drivers/cxl/port.c +++ b/drivers/cxl/port.c @@ -33,6 +33,7 @@ static void schedule_detach(void *cxlmd) static int discover_region(struct device *dev, void *root) { struct cxl_endpoint_decoder *cxled; + struct cxl_memdev *cxlmd; int rc; if (!is_endpoint_decoder(dev)) @@ -42,7 +43,9 @@ static int discover_region(struct device *dev, void *root) if ((cxled->cxld.flags & CXL_DECODER_F_ENABLE) == 0) return 0; - if (cxled->state != CXL_DECODER_STATE_AUTO) + cxlmd = cxled_to_memdev(cxled); + if (cxled->state != CXL_DECODER_STATE_AUTO || + cxlmd->cxlds->type == CXL_DEVTYPE_DEVMEM) return 0; /* diff --git a/include/cxl/cxl.h b/include/cxl/cxl.h index c450dc09a2c6..e0ea5b801a2e 100644 --- a/include/cxl/cxl.h +++ b/include/cxl/cxl.h @@ -60,4 +60,8 @@ struct cxl_endpoint_decoder *cxl_request_dpa(struct cxl_memdev *cxlmd, resource_size_t min, resource_size_t max); int cxl_dpa_free(struct cxl_endpoint_decoder *cxled); +struct cxl_region *cxl_create_region(struct cxl_root_decoder *cxlrd, + struct cxl_endpoint_decoder *cxled); + +int cxl_accel_region_detach(struct cxl_endpoint_decoder *cxled); #endif