Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/driver-api/cxl: remove page-allocator quirk section

The node/zone quirk section of the cxl documentation is incorrect.
The actual reason for fallback allocation misbehavior in the
described configuration is due to a kswapd/reclaim thrashing scenario
fixed by the linked patch. Remove this section.

Link: https://lore.kernel.org/linux-mm/20250919162134.1098208-1-hannes@cmpxchg.org/
Signed-off-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>

authored by

Gregory Price and committed by
Dave Jiang
82b5d7e3 6146a0f1

-31
-31
Documentation/driver-api/cxl/allocation/page-allocator.rst
··· 41 41 will fallback to allocate from :code:`ZONE_NORMAL`. 42 42 43 43 44 - Zone and Node Quirks 45 - ==================== 46 - Let's consider a configuration where the local DRAM capacity is largely onlined 47 - into :code:`ZONE_NORMAL`, with no :code:`ZONE_MOVABLE` capacity present. The 48 - CXL capacity has the opposite configuration - all onlined in 49 - :code:`ZONE_MOVABLE`. 50 - 51 - Under the default allocation policy, the page allocator will completely skip 52 - :code:`ZONE_MOVABLE` as a valid allocation target. This is because, as of 53 - Linux v6.15, the page allocator does (approximately) the following: :: 54 - 55 - for (each zone in local_node): 56 - 57 - for (each node in fallback_order): 58 - 59 - attempt_allocation(gfp_flags); 60 - 61 - Because the local node does not have :code:`ZONE_MOVABLE`, the CXL node is 62 - functionally unreachable for direct allocation. As a result, the only way 63 - for CXL capacity to be used is via `demotion` in the reclaim path. 64 - 65 - This configuration also means that if the DRAM ndoe has :code:`ZONE_MOVABLE` 66 - capacity - when that capacity is depleted, the page allocator will actually 67 - prefer CXL :code:`ZONE_MOVABLE` pages over DRAM :code:`ZONE_NORMAL` pages. 68 - 69 - We may wish to invert this priority in future Linux versions. 70 - 71 - If `demotion` and `swap` are disabled, Linux will begin to cause OOM crashes 72 - when the DRAM nodes are depleted. See the reclaim section for more details. 73 - 74 - 75 44 CGroups and CPUSets 76 45 =================== 77 46 Finally, assuming CXL memory is reachable via the page allocation (i.e. onlined