From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (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 05824299A9D for ; Mon, 12 May 2025 18:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073400; cv=none; b=o2h572N58j11hHEHjdh2oBcE6eX5puF0hCQCpymXGeLud7giTYNLrOq4smdejSuLRR9uk1hP61YYsauHZEIc/ROAObQA8CpcRJZCzo3J8DDN+A8/CWGPgUvCew6+cXHGfd0qvOsqJKpuxjAnVO5wKRjYHYDoqSUs7UNMfl5Txw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073400; c=relaxed/simple; bh=cWcnF6hGE/Ye6ZO375UdjwJyHtfdTGvvw2msT1AGNEM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MtXU63u2Bzn2mW3kLIOGoCbxkED5mmQLCaERaYXdKQXSly3YRyqHg30ieiYyyBQtp8sGfuU/WTvleu5vOlYIBvcRUI8erWqBwd8p8ZZDkKoKfuBS59qZ1PjetfYnXLHq6c/hHsxQtykq3AlTJppKGiW15zbhDk+Ywa+942Cd/4s= 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=DXcBYu4u; arc=none smtp.client-ip=209.85.219.43 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="DXcBYu4u" Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-6f544014883so25267216d6.0 for ; Mon, 12 May 2025 11:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1747073398; x=1747678198; 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=e/iDvEsSNRwi1aH8iKQVOJMR248bXxybzmXa6GTNy2M=; b=DXcBYu4ur+MLYeTARtLxuSjGH0G8R3OlmLybrW/19tyVtnmpPM4AUr2/oKZ+Z4cP2c War7lY9LK4tXjpahUK9j01otA7YguUdEWLtB0eV0OLigUsvEM6lMp62CxJ3VRD+7iq61 g1st8fzKYVLAI3nktlTffEf4KG56/IvJl22/LO5W+ChSNZxpm4HvEj9D2vFMWNORG/fg FWYHso+brd7AtIuDYnDROPK8vTB0eRAiTqh7eS3lbs77dPyFjJo+M0Ec/B2J91imbvqY PfEp/B5u6ynu0YDN90VbBHatQa+Ducqm2FEoJ4YJvTeE1ZJ8Khz10TNR6p9mTEzkGsKA 2Jmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747073398; x=1747678198; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e/iDvEsSNRwi1aH8iKQVOJMR248bXxybzmXa6GTNy2M=; b=cYacsPSem/2dAWmDpUU87RNP6/sm1S0y/LSxTdu7cEnEMc50VKRjEeY0s38diEDHt1 yhQWtipBI2yRVdGG2l9rtQZaYGInIqgdIfXsaUu10OuYjv7SCETIF2290msDwtRjNWS+ po9AA35mlP6tY8WxvU8/L7BhwoUcQF97VHb1LaTxSa+Nui437816CgFeXHhT8THfcnki af9niyfqAYsgtJEGAISqM/VC9n8RKY8uodngIiIdkg52tyDs47c+m/P+AT3hQceu+Vb4 mO9eEwjLZCjd+WDbSf4Vh30oP7oC204XXDomlZvYivM9HSDvDnfIYlSIKsWvVk6xNjdy CE1w== X-Forwarded-Encrypted: i=1; AJvYcCXPNp9NUtCy/hYahKcjUe/vhM+IRbqE6sN08/uv8anUOG43c3GIasf/MXi1cTHai7asvAk3hOS0z54=@vger.kernel.org X-Gm-Message-State: AOJu0YyVu07/CBu0oEY7Y0yJrOr5XeRBUu8UE9yl3/yg1svV4OU5l8gR TIj7ry3qRn73e6hlcPBt6ntkeCjquQo9jp5s+xkrelAJ3/VHLcy4BXq+mjPZFHA= X-Gm-Gg: ASbGncu2A5X/hAMe6QeivLFvR+aJ9gCyWYmMKXmBz1NXu+WhlF96Ewu/jVLCH6Wq5bz p6MFblZoWgVVVa9Ho5I00xKcXXg/V/ZkJauGqommmHE7gcjJqDNe8tX1Uy7VVSG6cZBPTwoShgT tr+KY4CimI4WNvRipQMvzf2PoXhE6hXkvzNO31EIW4zuKcX/LdPjasI6J4dQtUebxD2SHyXsQNG vUdaMh4RWhWKihsqTH1T7bD02bFz9ZsX5FVEJOD5e9qTXc20WIDn0gGwK0SyvbANXt1iImvhDC7 yMcR1rNQtX+FsFMfr+ckmdoIt6Lmr08gZL+Gq9siGI8qf4+Nsg1h5KRCs9SfR+52yO38E2UTZZL M76/1f8k4d8EPhor28HWNKzCOqN4sxQY= X-Google-Smtp-Source: AGHT+IHfNuX0QzD4BdSUhiyIBeelzyTiA39KqOo6r6tn5oIPKGjpRdvxCGpkFc3YRqf63eD/EfUW2g== X-Received: by 2002:a05:6214:234e:b0:6e6:5bd5:f3c3 with SMTP id 6a1803df08f44-6f6e4821690mr177034106d6.44.1747073397756; Mon, 12 May 2025 11:09:57 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-96-255-20-42.washdc.ftas.verizon.net. [96.255.20.42]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f6e3a4729bsm54875686d6.70.2025.05.12.11.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 11:09:57 -0700 (PDT) Date: Mon, 12 May 2025 14:09:55 -0400 From: Gregory Price To: Matthew Wilcox Cc: linux-cxl@vger.kernel.org, linux-doc@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, corbet@lwn.net Subject: Re: [PATCH v3 14/17] cxl: docs/allocation/page-allocator Message-ID: References: <20250512162134.3596150-1-gourry@gourry.net> <20250512162134.3596150-15-gourry@gourry.net> Precedence: bulk X-Mailing-List: linux-doc@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: On Mon, May 12, 2025 at 06:52:31PM +0100, Matthew Wilcox wrote: > > > > Feel free to submit patches that deletes the existing code if you want > > it removed from the documentation. > > Who sneaked that in when? The ACPI and EFI folks when they allowed for CXL memory to be marked EFI_CONVENTIONAL_MEMORY - which means Linux can't actually differentiate between DRAM and CXL during __init and brings it online in the page allocator as SystemRAM in ZONE_NORMAL (attached to the NUMA node that maps to the Proximity Domain in the SRAT). Not sure there's anything you can do about that. And for DAX: 09d09e04d2 (cxl/dax: Create dax devices for CXL RAM regions) Which allows for EFI_MEMORY_SP / Soft Reserved CXL regions to be brought up as a DAX devices (which can be bound to SystemRAM via DAX kmem). Wasn't much sneaking going on here - DAX kmem has been around and hacked on since 2019, and probably some years before that. ~Gregory