Skip to content

Commit 2489d83

Browse files
Gregory Pricedavejiang
authored andcommitted
Documentation/driver-api/cxl: BIOS/EFI expectation update
Add a snippet about what Linux expects BIOS/EFI to do (and not to do) to the BIOS/EFI section. Suggested-by: Alejandro Lucero Palau <alucerop@amd.com> Signed-off-by: Gregory Price <gourry@gourry.net> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Alejandro Lucero Palau <alucerop@amd.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20251219170538.1675743-2-gourry@gourry.net Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 0f61b18 commit 2489d83

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Documentation/driver-api/cxl/platform/bios-and-efi.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ at :doc:`ACPI Tables <acpi>`.
2929
on physical memory region size and alignment, memory holes, HDM interleave,
3030
and what linux expects of HDM decoders trying to work with these features.
3131

32+
33+
Linux Expectations of BIOS/EFI Software
34+
=======================================
35+
Linux expects BIOS/EFI software to construct sufficient ACPI tables (such as
36+
CEDT, SRAT, HMAT, etc) and platform-specific configurations (such as HPA spaces
37+
and host-bridge interleave configurations) to allow the Linux driver to
38+
subsequently configure the devices in the CXL fabric at runtime.
39+
40+
Programming of HDM decoders and switch ports is not required, and may be
41+
deferred to the CXL driver based on admin policy (e.g. udev rules).
42+
43+
Some platforms may require pre-programming HDM decoders and locking them
44+
due to quirks (see: Zen5 address translation), but this is not the normal,
45+
"expected" configuration path. This should be avoided if possible.
46+
47+
Some platforms may wish to pre-configure these resources to bring memory
48+
up without requiring CXL driver support. These platform vendors should
49+
test their configurations with the existing CXL driver and provide driver
50+
support for their auto-configurations if features like RAS are required.
51+
3252
UEFI Settings
3353
=============
3454
If your platform supports it, the :code:`uefisettings` command can be used to

0 commit comments

Comments
 (0)