From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.12 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796068514; b=EfuGnbnaU/txCqu7pxUYGgHt81oqOhKHpntRvmLrYiKEp9U0eeDfD8B88DsKDseOXkD/ NSblwL4m4ZPueoMVkYoxc6jRjQvHMye4mHdK+Ty6gPUV6/+Gu2ryqtp6reNI/gbbxtPpV SBv74JNJd1Mn+JonhyVN/lg6dadlifMNGXE5UjJ3zOQals+3ttQRTshkwPaBIAkl4lVGX iHwgmaxQcZ0dJnUkQCUnErf71++0d0nY+9e5mUece7iB2O09blUG5DwuRrWCry//SlIkY /3QskicxSND8rNq9meJOVbtr797cAJeNCiDMdfF5XCwXzMMvKdtzOH3D35SfUAXfD9g== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796068514; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Received:Received:Received:Date:From:To:CC:Subject:Message-ID: References:Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=Wlfc7hrtjPi9Tw4alvFsujZZyD8IWL1B5ntyo7PuCVo=; b=goaWE/DSJWkTG+4TUFifGkl63aWzxQQopQp0EHrTiKvgy85rWgj28SiMhVMkUXxOhFjJ 1Mdx0GVTERC0AXBJa09GDA2tz9Na8DuGs4RiY6zqGJqAbZIz3ucxxSQltmARa/CtBIZLn Ienq12bvTwMcP5ngIWbG6Eq2bB3kLZo6kv1pDt9KD623OCjyWxmNYxdOCi4rudlg56XdW xHejjO6/WWnDsVbY328Astff+pcCyO29OTEuiZiGpaBr8a3Dgt7sucmMzCCb8ps5Xc4Ua 3GZgHxx/1ph+EuBLeb8Yk3NezXkkZW4862j4NoVu0SNLfE2QmH/YxBuicSurmPyWrwQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=S9GAi9Ks; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 536BC606A332; Mon, 30 Nov 2026 19:55:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 536BC606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=S9GAi9Ks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796068514; x=1827604514; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=Wlfc7hrtjPi9Tw4alvFsujZZyD8IWL1B5ntyo7PuCVo=; b=S9GAi9Ksv13t57WiMsFUpy0Q/beEGdvmIcf2m7/i7FkJ7hk8eoJFQV0E 4XTsEOrejf8R6SNx5RQcLyg2JHFQ1Ug6ag8fLcMwFlyNJ83CgQxadsQ6o H9i79USfkWjOx3xqwtVhcx43hKUMaRkvw5kUs7oLVRWwCIQ0afQm18j3y d7gRyHTQgj54+TQyBy6lZhNJ+yaB6t5L//lmjokxH3TFEY45LpYjEv9N/ TQJFYiA/Oh8Wun8j2fXoZRXmAQiNqKuXH1QD93ML5aHApzmPmi9HloB55 1NTTNYIItMKpbrIsOy6gC27LkEHw0BqGPM8wR3rPQi2O2DCjPxFseeFAb w==; X-CSE-ConnectionGUID: kztWG94tQYW+QRWWbTYpnA== X-CSE-MsgGUID: TUrGQmFYSKalKqBo+0q8LA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4823666" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4823666" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 11:55:13 -0800 X-CSE-ConnectionGUID: Pij8HSlzQXa51kcOokgzlg== X-CSE-MsgGUID: KIQYftebQCuuNMthVtGS8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="13441747" Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by fmviesa009.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 11:55:12 -0800 Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 11:55:11 -0800 Received: from ORSEDG902.ED.cps.intel.com (10.7.248.12) by ORSMSX901.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Mon, 30 Nov 2026 11:55:11 -0800 Received: from DM1PR04CU001.outbound.protection.outlook.com (52.101.61.41) by edgegateway.intel.com (134.134.137.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 11:55:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=C2hiGwVHqpc8wKZL+nND4nsih7X0Nl99trjjM2rIrmogR9nO9tcNpb+VoU2iuxnTUoIhvrRXExI3bLczYDCEWff+v9fMAsXgXqJnDo16LCoi1okHRd4m7Q4gYf8KcMiqbKYb0GA312EmDbyBeKoG4PbcBck0vGguzmViYeUaqmQK72WRQHh7nbtNk0fvcskfQqBV+iijfZvSj+5ad5C3NnZg1q3bztSiH+j1oR7COoli8aw/9fFPvY+wlXGMc/NeFe1PMmJ1jnb2aqDJl4gOxU4llWoLiFWU3+WU3T+z3YVaKdpy4J0RT3CUiymB+GzcZ6YX0TXbJoKaJ4gTEknkYg== 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=Wlfc7hrtjPi9Tw4alvFsujZZyD8IWL1B5ntyo7PuCVo=; b=F8q1MLtENkhw8364j8vrwcKX3DHUbTpYWFHrzobnuuxdc2n48kg2Y8ONNYPGtO3/a1itNM2OKQvZAtnJYkM1Prf8aCmtje4oylyqdl/Hq+0TIVT/geBeZLp9dKU9uBkuwu6ObfTslmExOmq4VxuDRx8e6YlKYZIQuM//b2k7cemRMXlbzRISWzWKFVc/hloIwZZ1ui06L431AUv47CCJ9Qb+KaiFMCwRsjEyk9YFEpzj4iTAudmyFT8UWJ0wz+BvC/AtjNqFoc8PlrzREqXv6CfyWsufnX/Zw4uVQ59qRzAXAOtb1q2c1+PM68AQu8Kvxipro2dFFsbMTdLqoipqBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS4PPF0BAC23327.namprd11.prod.outlook.com (2603:10b6:f:fc02::9) by DS0PR11MB8072.namprd11.prod.outlook.com (2603:10b6:8:12f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Mon, 30 Nov 2026 19:54:54 +0000 Received: from DS4PPF0BAC23327.namprd11.prod.outlook.com ([fe80::a1fc:97e0:329a:4aa7]) by DS4PPF0BAC23327.namprd11.prod.outlook.com ([fe80::a1fc:97e0:329a:4aa7%6]) with mapi id 15.21.0662.012; Mon, 30 Nov 2026 19:54:53 +0000 Date: Mon, 30 Nov 2026 11:54:41 -0800 From: Alison Schofield To: Anisa Su CC: , , , Dave Jiang , "Jonathan Cameron" , Davidlohr Bueso , Ira Weiny , Vishal Verma , Fan Ni , Li Ming , Benjamin Cheatham , Gregory Price , Richard Cheng , Anisa Su Subject: Re: [PATCH v1 06/14] cxl/extent: Handle DC Add Capacity events Message-ID: References: <20261104230445.66625-1-anisa.su@samsung.com> <20261104230445.66625-7-anisa.su@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261104230445.66625-7-anisa.su@samsung.com> X-ClientProxiedBy: MW4PR04CA0066.namprd04.prod.outlook.com (2603:10b6:303:6b::11) To DS4PPF0BAC23327.namprd11.prod.outlook.com (2603:10b6:f:fc02::9) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS4PPF0BAC23327:EE_|DS0PR11MB8072:EE_ X-MS-Office365-Filtering-Correlation-Id: f1b5cdad-3234-406c-40e3-08df4f1bccb3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|366016|23010399003|4143699003|11063799006|6133799003|261009223027099003|18002099003|22082099003|10067099003|56012099006|261028144727099003|261102130727099003|261026121527099003|261026140227099003|261021121427099003|261022075727099003|261022105027099003|261021123027099003|261102123227099003; X-Microsoft-Antispam-Message-Info: 4Xol2bEsb8mv3+BhgnLcXjkzppBbni4phDyS4QjQw02mn8gi7HhNWlAIzWp1/xM0Ndh5JgMtxsX+Pw2zotXMumE5J7V4jPaQgjb/RbwCDRsHI/ypvZ7/6n8BiIZ3Pbrv4PC5izInCaLHNLV0awESWtGbXwXn2eesmPFHt6K60MlTOjMbumipFlo14M5f2OLRmjbGsW/EmZpvwQLIUm0mCLeOfal060MCKoTpL0WTh92+sh3sZZ0Kri7Q8zOitpV+6ymAtIY4RVrjENm+DLDDzCkn9+EJsZBQ8gKSOxS66/FOiSeGp9J2f5vkL082PI/+m4iQflJOKUr6b1Cco+z1Z/8gOsCzn4/UY352/mjQkSzu8wA2CctX7TAAADhke+7GZkupD/mkQImQwpQh0lTYPrKcU5XhVlNqmclsvqTHSg8z0U+TOHkfAn+N/atIUQl1Nt7ECV+Qcvbl/QcILAPgQ0syl3pRDuXNMukjGMPBZzegLoY2NwEH640IJE8aeUyAdiyp5ei5upsfpGnhK5NhB2rZFnY3vV4RdwElLu3ZNvp/YVvgXFH4wNsQgdP2PrQN2VUXwx/e4V3CF5b4Mixz7NfM2kzP/UJNQ5JzkUgsA3kcyMzm8CwgmfqMP7ykU1sDgyJ9Z1A7CL/S/TY4LKsN+JPTtYLhuAgGgKXPhFBS0AU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS4PPF0BAC23327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(366016)(23010399003)(4143699003)(11063799006)(6133799003)(261009223027099003)(18002099003)(22082099003)(10067099003)(56012099006)(261028144727099003)(261102130727099003)(261026121527099003)(261026140227099003)(261021121427099003)(261022075727099003)(261022105027099003)(261021123027099003)(261102123227099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QStnK09QeVlJRnFQQ2lTYVZjYUNqRndrZnk2bTl2QWVZQkk3eU95R3NUNHZJ?= =?utf-8?B?L0NROUduWHNLV016UUIzNGxsMml1MVpKS1NxNE4vaFg5TW90UHN5RWJVVVA4?= =?utf-8?B?NkhGWDIwenZaV1ZocFY0c2VTVDhLd09nWVMyMDFHM1ZDUFNWRkpGaGcwZlc2?= =?utf-8?B?M1poUUpVem9wbk5wcnhINFRTYlVzQ3FrQStMNXl2UEtORG0zdVBicHNNdjN0?= =?utf-8?B?ZnNlTEMzVjYyZ3NieHhTYTdYbzVPeHJHMGpyaTU2MWt5dkhhYS8rdUJUUGdR?= =?utf-8?B?dUs4QjE5ZEpGMEZzd0x5TGlrS080VmlJNnRodjJJcmlpOG95VkRORDlBYzFE?= =?utf-8?B?QTZ1b0hUTy82Y1IrdE9mNFhMRmJFeSs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utf-8?B?a1NoYVJid2hiUkgzeldTV2pSaERKeThDaGVOT0hLaE5ia0htZW9BVktEeWJ5?= =?utf-8?B?c0xFcjNwMlE3RWd4TUZRTGsxVURTMmxheTBTdFliWnZJMVluc0Uxb25nVys5?= =?utf-8?B?TDhwSE9VTTh4TWY3S1QwcFdwTDhqNldDdnB1ZUFPQzF0K2MvN3FUT29lYkxX?= =?utf-8?Q?g/50rAlxd18Gkuu8=3D?= X-Exchange-RoutingPolicyChecked: aTvOV1627wwVGL5tdY4nhSH3LB3ZXQ6lJqXMAt3qXqp9h3Thi2AAL+tjvLYUDEz72rjE5I+FHBZyqRlxv7IOmPVwTbE5sbL2KbtCrdcmsqGqB1A8DwN7+4ckp4yCLuHIlRCfYhbW/HyXRhdhVYRymiFokit3By5q8yinRWc5pbsYaasomx5K4G8HCgPwX3mafjlYgIBTTFiy4sQ5C8qZxInCiiyurUrYaibjKtgDEr/k8UUSbXirZimApsL0g1cpM9qKIVHYy75/caGyecBpwLqdvFvB1g75MsxH6u2w63qtjNhm6AjTcHxCnrRDt/5BsDo/6Lhr1/6Q02aOMJZgOw== X-MS-Exchange-CrossTenant-Network-Message-Id: f1b5cdad-3234-406c-40e3-08df4f1bccb3 X-MS-Exchange-CrossTenant-AuthSource: DS4PPF0BAC23327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 19:54:53.4304 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ohzb7nJ4Q0UpYLJyuYni+PyqIgecifNqpfzCfX0yLLXIKzv8k8G3PylYL1a3zqjXn8SWYH7r6a0kLQWpZe4uQ68coVhqFDZffoBrIUlW4dU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8072 X-OriginatorOrg: intel.com On Thu, Nov 05, 2026 at 08:02:30AM +0900, Anisa Su wrote: > From: Ira Weiny > > Replace the refuse-all stub for Add Capacity chains in > handle_dcd_chain_event() with the real add pipeline. > > DC Event Records can be grouped together with the 'More' flag. The > previous commit completed the set up for holding onto extents in > the pending list until receiving the last event record of the group, > marked by 'More'=0. > > This commit fills in the logic for processing the pending list and > adds basic validation for extents before they are added to the > device model as a child of the cxlr_dax region. More complete > checks for tags/sequence numbers/alignment are added in subsequent > commits. "The previous commit", "This commit" and "subsequent commits" depend on the series order. How about- DC Event Records can be grouped together with the 'More' flag, and extents are held in the pending list until the last record of the group (More=0) arrives. Process the pending list, with basic validation of each extent before it is added to the device model as a child of the cxlr_dax region. The tag, sequence number and alignment checks can then be described in their own changelogs. > > For each tag that appears in the pending list: > 1. Extract all extents in the pending list with that tag to a > local list. > > 2. The spec requires that shareable extents are ordered by > shared extent sequence number, which "instructs each host > on the relative order these extents must be placed in adjacent > virtual address space" (r4.0 Section 9.13.3 Figure 9-23 > Shared Extent List Example). Otherwise, retain arrival order. > > Thus the tag group is stable-sorted by shared_extn_seq; for non-sharable > extents every key is 0 and the stable sort preserves arrival > order. > > Individual extents are checked for the following: > 1. The extent's DPA range fully resolves to an endpoint decoder. > > 2. Doesn't overlap or repeat a previously accepted extent; the device > rejects a DPA range reported twice in an Add response (r4.0 Section > 8.2.10.9.9.3, Invalid Physical Address). > > A tag group is one allocation, and for sharable capacity the host > must accept all of it or none (r4.0 Section 8.2.10.9.9.3, otherwise > the device returns Invalid Extent List). So an extent failing any of > these checks drops its whole group. > > Upon passing these checks, extents are "onlined" together as a > tag group: > > online_tag_group() registers a tagged group as a tag_groupX.Y device > under cxlr_dax->dev and a struct device per dc_extent under it. > > A single "untagged" device is registered under cxlr_dax when > accepting the first untagged extent. All future untagged extents > will be registered under it. > > A group that fails to online is dropped from the Add response. > > Once the pending list has been fully processed, send the > DC_ADD_RESPONSE. There's no DC_ADD_RESPONSE. Code uses CXL_MBOX_OP_ADD_DC_RESPONSE which spec alls Add Dynamic Capacity Response. > > Region teardown invalidates the region's cached lines and releases all > extents under it. > > Based on an original patch by Navneet Singh. > > Signed-off-by: Ira Weiny > Co-developed-by: John Groves > Signed-off-by: John Groves > Co-developed-by: Anisa Su > Signed-off-by: Anisa Su > Tested-by: Wonjae Lee > Tested-by: Junhee Park > Tested-by: Heesoo Kim > --- > drivers/cxl/core/Makefile | 2 +- > drivers/cxl/core/core.h | 33 +++ > drivers/cxl/core/extent.c | 513 ++++++++++++++++++++++++++++++++++ > drivers/cxl/core/mbox.c | 248 +++++++++++++++- > drivers/cxl/core/region.c | 2 +- > drivers/cxl/core/region_dax.c | 78 +++++- > drivers/cxl/cxl.h | 87 ++++++ > drivers/cxl/cxlmem.h | 2 + > drivers/dax/bus.c | 13 + > tools/testing/cxl/Kbuild | 5 +- > 10 files changed, 974 insertions(+), 9 deletions(-) > create mode 100644 drivers/cxl/core/extent.c > > diff --git a/drivers/cxl/core/Makefile b/drivers/cxl/core/Makefile > index ce7213818d3c..208917ad8aac 100644 > --- a/drivers/cxl/core/Makefile > +++ b/drivers/cxl/core/Makefile > @@ -15,7 +15,7 @@ cxl_core-y += hdm.o > cxl_core-y += pmu.o > cxl_core-y += cdat.o > cxl_core-$(CONFIG_TRACING) += trace.o > -cxl_core-$(CONFIG_CXL_REGION) += region.o region_pmem.o region_dax.o > +cxl_core-$(CONFIG_CXL_REGION) += region.o region_pmem.o region_dax.o extent.o > cxl_core-$(CONFIG_CXL_MCE) += mce.o > cxl_core-$(CONFIG_CXL_FEATURES) += features.o > cxl_core-$(CONFIG_CXL_EDAC_MEM_FEATURES) += edac.o > diff --git a/drivers/cxl/core/core.h b/drivers/cxl/core/core.h > index 24fbb5718abc..759f2c47d765 100644 > --- a/drivers/cxl/core/core.h > +++ b/drivers/cxl/core/core.h > @@ -40,6 +40,8 @@ int cxl_dc_mode_parse(const char *buf, bool *shareable, bool *read_only); > > #ifdef CONFIG_CXL_REGION > > +int cxl_region_invalidate_memregion(struct cxl_region *cxlr); > + > struct cxl_region_context { > struct cxl_endpoint_decoder *cxled; > struct range hpa_range; > @@ -75,12 +77,42 @@ int devm_cxl_add_dax_region(struct cxl_region *cxlr); > int devm_cxl_add_pmem_region(struct cxl_region *cxlr); > void kill_regions(struct cxl_root_decoder *cxlrd); > > +int cxl_add_extent(struct cxl_memdev_state *mds, struct cxl_extent *extent, > + u16 seq_num); > +int online_tag_group(struct cxl_dc_tag_group *group); > +bool rm_tag_group(struct cxl_dc_tag_group *group); > +void discard_tag_group(struct cxl_dc_tag_group *group); > +int cxl_dax_untagged_add(struct cxl_dax_region *cxlr_dax); > #else > static inline u64 cxl_dpa_to_hpa(struct cxl_region *cxlr, > const struct cxl_memdev *cxlmd, u64 dpa) > { > return ULLONG_MAX; > } > + > +static inline int cxl_add_extent(struct cxl_memdev_state *mds, > + struct cxl_extent *extent, u16 seq_num) > +{ > + return -ENXIO; > +} > + > +static inline int online_tag_group(struct cxl_dc_tag_group *group) > +{ > + return 0; > +} > + > +static inline bool rm_tag_group(struct cxl_dc_tag_group *group) > +{ > + return true; > +} > + > +static inline void discard_tag_group(struct cxl_dc_tag_group *group) { } > + > +static inline int cxl_dax_untagged_add(struct cxl_dax_region *cxlr_dax) > +{ > + return 0; > +} > + > static inline > struct cxl_region *cxl_dpa_to_region(const struct cxl_memdev *cxlmd, u64 dpa, > struct cxl_endpoint_decoder **cxled) > @@ -182,6 +214,7 @@ long cxl_pci_get_latency(struct pci_dev *pdev); > int cxl_pci_get_bandwidth(struct pci_dev *pdev, struct access_coordinate *c); > int cxl_port_get_switch_dport_bandwidth(struct cxl_port *port, > struct access_coordinate *c); > +void memdev_release_group(struct cxl_dc_tag_group *group); These global in cxl_core should carry cxl_ prefix. Referring to: online_tag_group() rm_tag_group() discard_tag_group() memdev_release_group() Same for the exported is_dc_extent() and for struct dc_extent, which is next to struct cxl_dc_tag_group. > > static inline struct device *port_to_host(struct cxl_port *port) > { > diff --git a/drivers/cxl/core/extent.c b/drivers/cxl/core/extent.c snip > +static void dc_extent_release(struct device *dev) > +{ > + struct dc_extent *dc_extent = to_dc_extent(dev); > + struct cxl_dc_tag_group *group; > + > + if (!dc_extent) > + return; > + > + group = dc_extent->group; > + xa_erase(&group->cxlr_dax->dc_extents, dc_extent->dev.id); > + xa_erase(&group->dc_extents, dc_extent->seq_num); > + group->nr_extents--; > + if (!group->nr_extents) > + free_tag_group(group); > + kfree_rcu(dc_extent, rcu); > +} Same comment as Sashiko here wrt the deferred release of an extent device. > +/* > + * Stage 1 of the add pipeline: pure, no allocation. Resolve the extent > + * to its region/endpoint decoder and ext_range, and verify the range > + * fits in the resolved endpoint decoder's DPA resource. > + * > + * Caller must hold cxl_rwsem.region and cxl_rwsem.dpa for read: > + * cxl_dpa_to_region() walks every decoder's dpa_res. > + * On success, @out_cxled / @out_cxlr_dax / @out_ext_range carry the > + * resolved handles consumed by the rest of the pipeline. > + */ > +static int cxl_validate_extent(struct cxl_memdev_state *mds, > + struct cxl_extent *extent, > + struct cxl_endpoint_decoder **out_cxled, > + struct cxl_dax_region **out_cxlr_dax, > + struct range *out_ext_range) > +{ > + u64 start_dpa = le64_to_cpu(extent->start_dpa); > + struct cxl_memdev *cxlmd = mds->cxlds.cxlmd; > + struct cxl_endpoint_decoder *cxled; > + struct cxl_region *cxlr; > + struct range ext_range = (struct range) { > + .start = start_dpa, > + .end = start_dpa + le64_to_cpu(extent->length) - 1, > + }; > + struct range ed_range; > + > + cxlr = cxl_dpa_to_region(cxlmd, start_dpa, &cxled); > + if (!cxlr || !cxlr->cxlr_dax) > + return -ENXIO; > + > + ed_range = (struct range) { > + .start = cxled->dpa_res->start, > + .end = cxled->dpa_res->end, > + }; > + if (!range_contains(&ed_range, &ext_range)) { This lets an extent with a length of 0 through, and it shouldn't. A start_dpa + length that wraps gets through the same way. Patch 8 fixes it in cxl_extent_dc_partition(). Should that check be done now, in this patch? snip > +static enum cxl_extent_class > +cxlr_dax_classify_extent(struct cxl_dax_region *cxlr_dax, > + struct cxl_endpoint_decoder *cxled, > + const struct range *ext_range) > +{ > + struct dc_extent *entry; > + unsigned long i; > + > + /* kfree_rcu() defers the free; hold RCU so entries stay live while walked */ > + guard(rcu)(); > + xa_for_each(&cxlr_dax->dc_extents, i, entry) { Same as Sashiko here wrt duplicate or overlapping extents inside one group. There is a check later, shared_extn_seq, but it doesn't catch repeeated DPA ranges and is skipped for groups not shareable. > + if (entry->cxled != cxled) > + continue; > + if (range_contains(&entry->dpa_range, ext_range)) > + return CXL_EXT_DUPLICATE; > + if (range_overlaps(&entry->dpa_range, ext_range)) > + return CXL_EXT_OVERLAP; > + } > + return CXL_EXT_NEW; > +} snip > +/* > + * Stage 4: insert @dc_extent into the pending tag group. All extents in > + * one More-chain group share a UUID — enforced here as the group is > + * either being created (first extent) or appended to. On any failure > + * the dc_extent is freed. > + * > + * Returns 0 on success, <0 on error. > + */ cxlr_add_extent() and cxl_add_extent() differ by one letter but do different things. This one inserts an already-built dc_extent into the pending tag group. Maybe tag_group_insert_extent() ? > +static int cxlr_add_extent(struct cxl_memdev_state *mds, > + struct cxl_dax_region *cxlr_dax, > + struct dc_extent *dc_extent) > +{ > + struct cxl_dc_tag_group **group = &mds->dc_chain.group; > + int rc; > + > + if (*group && !uuid_equal(&(*group)->uuid, &dc_extent->uuid)) { > + kfree(dc_extent); > + return -EINVAL; > + } > + > + if (!*group) { > + dev_dbg(&cxlr_dax->dev, "Alloc new tag group\n"); > + *group = alloc_tag_group(cxlr_dax, &dc_extent->uuid); > + if (IS_ERR(*group)) { > + rc = PTR_ERR(*group); > + *group = NULL; > + kfree(dc_extent); > + return rc; > + } > + } else { > + dev_dbg(&cxlr_dax->dev, "Append dc_extent to tag group\n"); > + } > + > + dc_extent->group = *group; Same as Sashiko here wrt a tag group spanning two regions. snip > +/* > + * Region teardown, a devres action on the dax_region device: the host gives > + * the group's capacity back to the device. Flush the region's cached lines > + * first; once the Release DC goes out the device may reassign the range. > + * devres order puts the DAX devices created after the group ahead of it. > + */ > +static void dc_tag_group_teardown(void *_group) > +{ > + struct cxl_dc_tag_group *group = _group; > + > + /* Exclude a release flush, which holds the lock for read */ > + guard(rwsem_write)(&cxl_rwsem.region); 'Release flush' here means processing a staged release chain, right? That arrives in Patch 11. The next time flushes CPU caches. I think this comment may fit better in patch 11 and also use a word other that 'flush' for processing a chain. > + cxl_region_invalidate_memregion(group->cxlr_dax->cxlr); > + memdev_release_group(group); The function comment block says flush must happen before Release DC but the return value of cxl_region_invalidate_memregion() is ignored. > + unregister_tag_group(group); > +} snip > + > + /* > + * Seed nr_extents with the full group size plus a +1 pin held by > + * this function. The size counts every dc_extent that might > + * decrement nr_extents on cleanup; the pin keeps @group alive > + * across the body even if every dc_extent release fires in the > + * unwind (e.g. a devm_add_action() failure with a single extent). > + * The pin is dropped at the end of the function. > + */ > + xa_for_each(&group->dc_extents, index, dc_extent) > + group->nr_extents++; > + group->nr_extents++; The nr_extents seeding here and in discard_tag_group(), and the "nr_extents--; if (!nr_extents) free_tag_group()" sequence used in all five release and unwind paths, could be small tag_group_get() / tag_group_put() style helpers. snip > diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c snip > +/* > + * Realize a tag @group: assign each extent its dax-side @seq_num and add it > + * via cxl_add_extent(), then online the resulting tag group. Returns the > + * number of accepted extents (>= 0) with @group left holding them for the > + * caller to splice, or a negative errno on failure with @group untouched for > + * the caller to drop. > + */ > +static int cxl_realize_group(struct cxl_memdev_state *mds, const uuid_t *tag, > + struct list_head *group) > +{ > + struct device *dev = mds->cxlds.dev; > + struct cxl_extent_list_node *pos; > + struct cxl_dc_tag_group *tag_group; > + int group_cnt = 0; > + u16 seq_num; > + int rc; > + > + lockdep_assert_held(&cxl_rwsem.region); > + lockdep_assert_held(&cxl_rwsem.dpa); > + > + /* Each extent gets a dense dax-side seq_num, 0..n-1 */ > + seq_num = -1; > + list_for_each_entry(pos, group, list) { > + seq_num++; > + rc = cxl_add_extent(mds, pos->extent, seq_num); > + if (rc < 0) { > + dev_dbg(dev, > + "Tag %pUb: dropping group, failed to add extent DPA:%#llx LEN:%#llx\n", > + tag, > + le64_to_cpu(pos->extent->start_dpa), > + le64_to_cpu(pos->extent->length)); > + goto err_discard; > + } > + group_cnt++; > + } Not clear separate seq_num is needed, and the set of a u16 to -1 is odd. At the cxl_add_extent() call seq_num always equals group_cnt. Can this just pass group_cnt instead? snip > +/* > + * Drive the pending Add-Capacity records through cxl_realize_group() one > + * tag group at a time, moving each group that realizes onto the accepted > + * list. > + */ > +static int cxl_add_pending(struct cxl_memdev_state *mds, > + struct list_head *pending) > +{ > + LIST_HEAD(accepted); > + int total_accepted = 0; > + > + /* > + * Held across validation, add and online so that cxlr_dax_unpublish() > + * excludes a whole flush; cxl_dpa_to_region() also walks every dpa_res. > + */ > + guard(rwsem_read)(&cxl_rwsem.region); > + guard(rwsem_read)(&cxl_rwsem.dpa); > + > + while (!list_empty(pending)) { > + struct cxl_extent_list_node *first; > + LIST_HEAD(group); > + uuid_t tag; > + int cnt; > + > + first = list_first_entry(pending, struct cxl_extent_list_node, > + list); > + import_uuid(&tag, first->extent->uuid); > + /* > + * A null tag carries no allocation identity: surface each > + * untagged extent as its own single-extent group rather than > + * coalescing all untagged extents together. > + */ > + if (uuid_is_null(&tag)) > + list_move_tail(&first->list, &group); > + else > + extract_tag_group(pending, &tag, &group); > + > + /* > + * Only a sharable allocation carries a meaningful per-extent > + * shared_extn_seq; order those by it. For non-sharable groups, > + * the stable sort maintains arrival order. > + */ > + list_sort(NULL, &group, extent_seq_compare); > + > + cnt = cxl_realize_group(mds, &tag, &group); > + if (cnt < 0) { > + drop_extent_group(&group); > + continue; > + } > + > + list_splice_tail_init(&group, &accepted); > + total_accepted += cnt; > + } > + > + list_splice(&accepted, pending); > + > + return cxl_send_dc_response(mds, CXL_MBOX_OP_ADD_DC_RESPONSE, > + pending, total_accepted); > +} Same as Sashiko and Richard here. Until it changes, a later offer of the same range is dropped as "already accepted", and once host-wide tag tracking is added later in the series, a re-offer of the same tag is refused as "tag already committed". snip > diff --git a/drivers/cxl/core/region_dax.c b/drivers/cxl/core/region_dax.c snip > @@ -57,11 +74,14 @@ static struct cxl_dax_region *cxl_dax_region_alloc(struct cxl_region *cxlr) > if (!cxlr_dax) > return ERR_PTR(-ENOMEM); > > + xa_init_flags(&cxlr_dax->dc_extents, XA_FLAGS_ALLOC1); > + ida_init(&cxlr_dax->tag_group_ida); > cxlr_dax->hpa_range.start = p->res->start; > cxlr_dax->hpa_range.end = p->res->end; > > dev = &cxlr_dax->dev; > cxlr_dax->cxlr = cxlr; > + cxlr->cxlr_dax = cxlr_dax; I think this will let an Add event online a group on a cxl_dax_region w no driver bound, ie before the dax_cxl probe or after an unbind. It looks like that is gated in patch 12 for recovery. Could the gate be in this patch? snip > +/* > + * The dax_region's driver may probe, and its extent scan run, before > + * devm_cxl_add_dax_region() returns, so the untagged device is registered > + * on first use instead. Callers are serialized by the memdev's > + * dc_chain.lock; a DC region has a single memdev behind it. > + */ Comment seems ahead of code. extent scan is in patch 12. snip > +/** > + * struct dc_extent - A single dynamic-capacity extent surfaced to the host. > + * > + * One per device-stamped extent. Multiple dc_extents that share a tag > + * (see &struct cxl_dc_tag_group) form a single logical allocation, but > + * each dc_extent has its own HPA range. > + * > + * @dev: device representing this extent; child of its tag_groupX.Y > + * device, or of the dax_region's untagged device for a null tag. > + * @group: tag group that this extent belongs to; shared across siblings. > + * @cxled: endpoint decoder backing the DPA range. > + * @dpa_range: DPA range this extent covers within @cxled. > + * @hpa_range: HPA range that @dpa_range decodes to, relative to > + * cxlr_dax->hpa_range.start. > + * @uuid: tag uuid (matches @group->uuid). > + * @seq_num: 0..n-1 assembly-order index within the tag group. For a > + * sharable partition the order follows the shared_extn_seq given > + * by the device; for a non-sharable partition, where > + * shared_extn_seq is reserved, the order is the order in which > + * extents arrive. Either way @seq_num forms a dense range 0..n-1. > + * @rcu: rcu_head for the kfree_rcu() deferred free in dc_extent_release(), > + * so RCU readers walking the tag group's extents finish safely. > + */ >From Documentation/doc-guide/kernel-doc.rst It asks for the members right after the brief description, with the longer description after the members, like this: /** * struct struct_name - Brief description. * @member1: Description of member1. * @member2: Description of member2. * * Description of the structure. */ snip > + * struct cxl_dc_tag_group - A tagged dynamic-capacity allocation. > + * > + * Container for the &struct dc_extent siblings that share a tag. A > + * tagged group is a tag_groupX.Y device under the dax_region and the > + * parent of its extentX.Y devices; untagged extents, each a group of > + * one, sit under the region's untagged device instead. The group > + * exists to keep tag-scoped invariants (atomic add, atomic release, > + * ordered carve by seq_num) in one place. > + * > + * @dev: device representing a tagged group; child of cxlr_dax->dev. > + * Holds the group's memory: the last dc_extent release drops the > + * final reference. Never registered for an untagged group. > + * @cxlr_dax: back reference to parent region device. > + * @uuid: tag identifying this allocation; same across all member dc_extents. > + * @dc_extents: xarray of &struct dc_extent in this group, indexed by the > + * dc_extent's @seq_num (0..n-1, dense). See &struct dc_extent > + * for how seq_num is sourced for sharable vs non-sharable > + * allocations. > + * @nr_extents: live count of dc_extents in the group; the group is freed > + * when the last dc_extent device is released. > + */ Same as the struct dc_extent comment above. Put members first, then the description.