Skip to content

Commit df63e01

Browse files
Gregory Pricedavejiang
authored andcommitted
cxl: docs/allocation/hugepages
Add docs on how CXL capacity interacts with CMA and HugeTLB allocation interfaces. Signed-off-by: Gregory Price <gourry@gourry.net> Link: https://patch.msgid.link/20250512162134.3596150-17-gourry@gourry.net Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent f109e77 commit df63e01

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
==========
4+
Huge Pages
5+
==========
6+
7+
Contiguous Memory Allocator
8+
===========================
9+
CXL Memory onlined as SystemRAM during early boot is eligible for use by CMA,
10+
as the NUMA node hosting that capacity will be `Online` at the time CMA
11+
carves out contiguous capacity.
12+
13+
CXL Memory deferred to the CXL Driver for configuration cannot have its
14+
capacity allocated by CMA - as the NUMA node hosting the capacity is `Offline`
15+
at :code:`__init` time - when CMA carves out contiguous capacity.
16+
17+
HugeTLB
18+
=======
19+
Different huge page sizes allow different memory configurations.
20+
21+
2MB Huge Pages
22+
--------------
23+
All CXL capacity regardless of configuration time or memory zone is eligible
24+
for use as 2MB huge pages.
25+
26+
1GB Huge Pages
27+
--------------
28+
CXL capacity onlined in :code:`ZONE_NORMAL` is eligible for 1GB Gigantic Page
29+
allocation.
30+
31+
CXL capacity onlined in :code:`ZONE_MOVABLE` is not eligible for 1GB Gigantic
32+
Page allocation.

Documentation/driver-api/cxl/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ that have impacts on each other. The docs here break up configurations steps.
4747
allocation/dax
4848
allocation/page-allocator
4949
allocation/reclaim
50+
allocation/hugepages.rst
5051

5152
.. only:: subproject and html

0 commit comments

Comments
 (0)