From nobody Tue Feb 10 12:57:22 2026 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 908C824EABF for ; Mon, 12 May 2025 16:22:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747066929; cv=none; b=NZljEe/6D/5/wydijevb7P3VQVfSHCdyjU+cmEzHmjBX4TNCdBvrhZElQaJSkACMRdENQoKlnmka4mSrBlIRb8ISEXNhMQNr7L+bozK1dw9OBdOWXt4pQwOMbzSpfi5Tnfqh1XABzfIjgklXmDJZYb0l32JPaI1/xqlPevWme54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747066929; c=relaxed/simple; bh=02rFqC3gSUB4Fy4+GT/QyZr7jHPjwxLz9IoPedteAik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ShsQQoUjoX2AcDly+zsVg/yEUboinLP63jweymoFyYqIyf8hT9j0JjB3mQqhsjiiM40a1P6BbUWPOkIF/48R0pWoKuHzxx1nvwV8Vf+zl8XQRRSfbIq50Sc1f5klAxTtCuOr4MmdoDRi90Ry2kwWyrAaEhw5GZ06sJri9quxdXg= 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=SbIsS6Yw; arc=none smtp.client-ip=209.85.160.174 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="SbIsS6Yw" Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-47ae894e9b7so87956181cf.3 for ; Mon, 12 May 2025 09:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1747066926; x=1747671726; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gsjZ8+vqh9tLCwEMgliXk7JRqYeLc6j1GH7rHKcC4Fk=; b=SbIsS6YwW57XJuyeYgmxF9B4fxxJ2WETuQcFS/bsiU0dBMwUDvc7stG5P1Y9szPM6Y Ocu1QSlVumnQVcUHIAP3Jc4wJHopKP5uRZexOBBPxxEnoYLeyz90d2GEeiCHJPZtOb65 CRbwYauS8+xL9Gorb/zkDEg2fjRnkFTnR+Spc6tMjDEIyA7Hxibj6ov+7pYtplXM2Xs4 a+3nDfA0G6W5+YI5R5pP9Hcn2xZVO3jWp/Anfvz+ViJUW8ajiPqPRblh7Y04XvDw1shA gzjgSSAPvLWnhJkDjaNkr28M+rr7jp5hyceGpYOUsPuG9+WKbgBRIV7ypJo8KW+kkqrB rZuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747066926; x=1747671726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gsjZ8+vqh9tLCwEMgliXk7JRqYeLc6j1GH7rHKcC4Fk=; b=KirBH3wFbSMGEv9zDpe3jXKP27KMXVk/tAurPrXpvNwWSFtPjI1aW3hdi+5BD5XEKd 9DH8Hxw4InJdUdORblAGjRvkaBhNfQGrdunr1Ta9DfBhA8q6C4Kk85tqObMetiADG9cX r3Aj/P+cv8M6G+1CLOrzXSMIM/SAlvlQg+lz1OfqaEuSTT10pqrJOGoa7es+aWDV28ie UZpiwjlJuhBJ+2GRd0gecBATaxocY/6IGfyskW+sXAvAnVSaaCHGlfkItZK8w/9SJzA+ q9Lz1GS+FJMNTdPjiMrpwfNTYIOdlQ/0gRmkvXzw6RNU1jEVlKrGXiIqxVPz0EsMsDTS NNTg== X-Forwarded-Encrypted: i=1; AJvYcCX8Ce0XpvYJCipSknAB37WVlp+eKDLzCsL1maCx3NJj8QX8XWANk7ofADh/I7YobUzjctRe+6Y4atj/WjU=@vger.kernel.org X-Gm-Message-State: AOJu0YzUlK9HnJ1xlDeywPjN+S6cUTtdqfh9kBj0J9j7Duw1n6KWt0a7 BXpMUaiknXvN3SYnxJl6BWf64wV/4weHRTKwRlmu8GbUsBRdJG+5NlUIZS0555E= X-Gm-Gg: ASbGncsH052LKoIfEriHHFjSOHtqi5g3qGmdqSgyeGFF4NHAsuc5gDHS6QN/iQuFsGl q/LhVwT7g3/qZLsfskY7BncOUZg0chmL/Y7f3oCK8RRP42+ViGIfiNTK/7PJPLnUfi3fEYqGKO5 I8drdJx/pGRaLerF13O1VL+yzRA8U6Wx1j1Cmfet/9yk9xB9ZvHrLwR521ngeIHw7NxeIWj5511 QY+hUok8uiGZR5ZYNOfP0IqqiNdJ5h9vs6OGxl459Fsgu0nrvzpOSXNF3epSBPfxY/Q04L/+IiF FbAW0UXamy/HI/Du+mq5RCP+tELe52gPsYrnSHfoUn3GCTLVIZwhK+WVkRNOo/i4sherBk6OTNf PX1ZSnN9JjZUoUxKJXubTi9uOODSRfLyku1AA X-Google-Smtp-Source: AGHT+IESCJ4wxgoeogGabJwCYGcV8hNihMeEX8lTGFo0c9q1TtRsQ3SAwLcPjqupzQu+Z/KuxiouEA== X-Received: by 2002:a05:622a:110c:b0:476:9377:17aa with SMTP id d75a77b69052e-494527fd87amr209927431cf.52.1747066926366; Mon, 12 May 2025 09:22:06 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F.lan (pool-96-255-20-42.washdc.ftas.verizon.net. [96.255.20.42]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-49452583961sm52461791cf.58.2025.05.12.09.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 09:22:06 -0700 (PDT) From: Gregory Price To: linux-cxl@vger.kernel.org Cc: 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: [PATCH v3 16/17] cxl: docs/allocation/hugepages Date: Mon, 12 May 2025 12:21:33 -0400 Message-ID: <20250512162134.3596150-17-gourry@gourry.net> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512162134.3596150-1-gourry@gourry.net> References: <20250512162134.3596150-1-gourry@gourry.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add docs on how CXL capacity interacts with CMA and HugeTLB allocation interfaces. Signed-off-by: Gregory Price --- .../driver-api/cxl/allocation/hugepages.rst | 32 +++++++++++++++++++ Documentation/driver-api/cxl/index.rst | 1 + 2 files changed, 33 insertions(+) create mode 100644 Documentation/driver-api/cxl/allocation/hugepages.rst diff --git a/Documentation/driver-api/cxl/allocation/hugepages.rst b/Docume= ntation/driver-api/cxl/allocation/hugepages.rst new file mode 100644 index 000000000000..1023c6922829 --- /dev/null +++ b/Documentation/driver-api/cxl/allocation/hugepages.rst @@ -0,0 +1,32 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Huge Pages +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Contiguous Memory Allocator +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D +CXL Memory onlined as SystemRAM during early boot is eligible for use by C= MA, +as the NUMA node hosting that capacity will be `Online` at the time CMA +carves out contiguous capacity. + +CXL Memory deferred to the CXL Driver for configuration cannot have its +capacity allocated by CMA - as the NUMA node hosting the capacity is `Offl= ine` +at :code:`__init` time - when CMA carves out contiguous capacity. + +HugeTLB +=3D=3D=3D=3D=3D=3D=3D +Different huge page sizes allow different memory configurations. + +2MB Huge Pages +-------------- +All CXL capacity regardless of configuration time or memory zone is eligib= le +for use as 2MB huge pages. + +1GB Huge Pages +-------------- +CXL capacity onlined in :code:`ZONE_NORMAL` is eligible for 1GB Gigantic P= age +allocation. + +CXL capacity onlined in :code:`ZONE_MOVABLE` is not eligible for 1GB Gigan= tic +Page allocation. diff --git a/Documentation/driver-api/cxl/index.rst b/Documentation/driver-= api/cxl/index.rst index d3ab928d4d7c..366faf851fc7 100644 --- a/Documentation/driver-api/cxl/index.rst +++ b/Documentation/driver-api/cxl/index.rst @@ -47,5 +47,6 @@ that have impacts on each other. The docs here break up = configurations steps. allocation/dax allocation/page-allocator allocation/reclaim + allocation/hugepages.rst =20 .. only:: subproject and html --=20 2.49.0