From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE9D5223336 for ; Mon, 12 Jan 2026 23:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768259148; cv=none; b=SmG3q7roU6hfIKS4RlYLv4U8ixwpjWMEWBthq2ElwWvABZjhFZaxxAXsGFc8w7z1w0POM5wlHpkUg/HLZndmWvQTj/Znbwyszt8yqL8kqjGbp/VuBdbYoFEL1G15gZHkYlFZh5VVpuc9SuDyYlZLrLq9WKlZm2uXyrUmXaNpflo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768259148; c=relaxed/simple; bh=ZoNauLjpKyH3DAShcEsgvFSrJpJqozh6wLl0Ed6u9Nk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eqf6f2gJ2r4edGSaXgxTbY+PM6sThca7lKiT2lHp4DyMZ7ihp70W/0ROhmbkiQoxcf2X/Sg02ZXxrZaKX9ZAiWAIgnvotcABMcTeMlTYyLTJhDL6BMB4vWS2zEz2M1G8axWgbnonw1CF88Tk3rAcsb90jqawY4eiQMeFk6m3/MA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=cjNBIRps; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="cjNBIRps" Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-4ffbea7fdf1so35274671cf.1 for ; Mon, 12 Jan 2026 15:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1768259145; x=1768863945; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=92L4TdOg/AQugAUIkow3sIKqVPV7itnh+gH/CFEV7/M=; b=cjNBIRpsxom5twQnPzs0tWXDX+eGdSnSvBgNBoGdUisJN6LUEaiMgrNgnRrqa5Xt4o oka7qwWZgA2g0Yt1Gc7QmtFkEzcHfCCi/9MFUmhi+KswB85fPc1Qtvd9CdWxftlWa004 HZ6E00BI5Xk00o0ILiasop06OplQR52D1fPMN3n0V26V+bbvj8UmzhLJRJvtG/HZf8H/ S+nDs64x17GB8Sxos/XhxiuEHsbJnHGBkH3zCTGgQwf24EhfppKoMjsLgqsjltbh6qnF 8r+kvpUt1T8JsIzHVTuejb9bEcqe8Sc51H2wULP+vNw2/Y9bdF89auVXKBMd3SysNVKD NUHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768259145; x=1768863945; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=92L4TdOg/AQugAUIkow3sIKqVPV7itnh+gH/CFEV7/M=; b=IyAwGvcexxk5IeeVDH1NnqZUPJWfvB6ZvsCD0sp6RRbPYdiyu8SwYpS2WyhPSIMZIw 7KipwyoaEEDjFL5AfyYoNnkgmY0ZWpahSvPBIAwt/DB/OZ15fkvq/IfPdWp5ll6anodb I1tbKsd9L3ydrin9L742AFYffUQmDN8VwhMUubRN9hrfGtTn7K4uoZL/t1A9o/1OUhS1 pkFoffmnNYF+0GM6h/lKI+Kg1yDZHv7t9w+zLUzb5++ZT3+oTDsxwFNvSiU5rmebboRf yq79lmn5nUZvDOQqEmKQLuylXjeUKmuHnjz3tyjSY7TxobX9OJrBYDk/NjQZl2PexNMe uV5g== X-Forwarded-Encrypted: i=1; AJvYcCUvwd5y7YThEeWA9RcLOsbAib1qrZqxTHbW3D+DjFP9dV5u/26ludLnCqQjgqC56PC7WUnEyOSSierlizs=@vger.kernel.org X-Gm-Message-State: AOJu0YxLi+DY3kAyv/EeGFJ8/YKEW7/7ugBI5o7aDlUXz6lN2hXO/wb/ HtJ5QzLmPKFNgnKpVlVIPguHTgP8nvwdB4eX30o1uF4mkaI4Ywh2CB+ScDaPk0kDlOw= X-Gm-Gg: AY/fxX4qdIi4I5EShfUZBmoyslAWj8CcCv9o1nqUS+QMNXYDhoX42G4Q8/YZgwSxWIe Vp1xO0x3luXxcmKrK+Dg8roAWuqezgEt0eZ+QptITSdQ/lfSViMTQwxuFRXWyGsCrBP7SflwbZX kZ56yy79CU0OiZmryTZAZHpIDkPSK7lJg5J6q4SCkVvJk2LhazFGz0lLLn9gZyKdarwvXXCY51n Kf8rms9RwcJQMlqQXqMPz0APMGIgHTLbUaT8xtxBnUL+i+0cp757MpNVld3kwdjEA4zwmG5lDDM Wy2qjqUdb9SpxknynEIf1i8E24exFpEHD08CLidIQl7VJbEbpakTHIPijC5sPaWCJKzaIN+bojx la/pcCfwjowq+/enzuhgHE+R9NOijJ4iXxoExW8iyxA4AfQ5DncxjYhW5znlWshjHVfNBBGPPU2 d0p1Uih9WAtEaDU5iReThEe87ZhzhKsikrL8hI+uiC+nE9MjsvILFtc+WBic77GwbUmaJCwSyVg Z8K5MjP X-Google-Smtp-Source: AGHT+IHwlNOUc3Pi8nsZFjFBY+3Up3ZCkjfkv6qwWxdPY/nNO44Sehb/7txzyAuNhDSiI6FwTr0sJQ== X-Received: by 2002:a05:622a:2611:b0:4f3:4cde:1660 with SMTP id d75a77b69052e-4ffb4a52a39mr278973801cf.83.1768259140847; Mon, 12 Jan 2026 15:05:40 -0800 (PST) Received: from gourry-fedora-PF4VCD3F (pool-96-255-20-138.washdc.ftas.verizon.net. [96.255.20.138]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4ffc17c2897sm96783981cf.32.2026.01.12.15.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jan 2026 15:05:38 -0800 (PST) Date: Mon, 12 Jan 2026 18:05:03 -0500 From: Gregory Price To: "Cheatham, Benjamin" Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, dave@stgolabs.net, jonathan.cameron@huawei.com, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, dan.j.williams@intel.com Subject: Re: [PATCH 4/6] cxl: add CONFIG_CXL_REGION_CTRL_AUTO_* build config options Message-ID: References: <20260112163514.2551809-1-gourry@gourry.net> <20260112163514.2551809-5-gourry@gourry.net> <05591180-c299-42e1-b8a0-ddd74c5f2174@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05591180-c299-42e1-b8a0-ddd74c5f2174@amd.com> On Mon, Jan 12, 2026 at 03:10:55PM -0600, Cheatham, Benjamin wrote: > On 1/12/2026 10:35 AM, Gregory Price wrote: > > +choice > > + prompt "CXL Region Auto Control Mode" > > + depends on CXL_REGION > > + default CXL_REGION_CTRL_AUTO_DAX > > + help > > + Select the default controller for CXL regions when ctrl mode is > > + set to 'auto'. This determines how CXL memory regions are exposed > > + to the system when no explicit control mode is specified. > > + > > +config CXL_REGION_CTRL_AUTO_DAX > > This should probably be renamed to CXL_REGION_CTRL_DAX since only DAX is mentioned. > > > + bool "DAX" > > + help > > + When a CXL region's control mode is 'auto', create a DAX region > > + controller. This allows fine-grained control over the memory region > > + through the DAX subsystem, and the region can later be converted to > > + System RAM via daxctl. > > + > > + This is the default and recommended option for most use cases. > > If you remove the 'auto' mode earlier on, then you can just drop the first sentence here. > I'd also add a note about when a DAX region can be failed to be created (i.e. BIOS already > set up and onlined the memory). > I think I'm just going to drop this entirely, probably this was just too ambitious trying to create an easy transition from dax to sysram for auto regions. The reality is BIOS-configured decoders "is NOT the way" (TM). If BIOS configures it - it's DAX, otherwise the user gets a choice (or they can tear it down and rebuild). ~Gregory