cxl: docs/driver-api/conventions resolve conflicts btw CFMWS, LMH, ED
Subsystems (2)
PATCH v2 1/1 cxl: docs/driver-api/conventions resolve conflicts btw CFMWS, LMH, ED
Add documentation on how to resolve conflicts between CXL Fixed Memory Windows, Platform Memory Holes, and Endpoint Decoders.
---
v1 -> v2: Rewrite "Summary of the Change" section, 3r paragraph.
Documentation/driver-api/cxl/conventions.rst | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+)
Documentation/driver-api/cxl/conventions.rst +85 -0
@@ -45,3 +45,88 @@ Detailed Description of the Change ---------------------------------- <Propose spec language that corrects the conflict.> + + +Resolve conflict between CFMWS, Plaftform Memory Holes, and Endpoint Decoders +============================================================================= + +Document +-------- + +CXL Revision 3.2, Version 1.0 + +License +------- + +SPDX-License Identifier: CC-BY-4.0 + +Creator/Contributors +-------------------- + +Fabio M. De Francesco, Intel +Dan J. Williams, Intel +Mahesh Natu, Intel + +Summary of the Change +--------------------- + +According to the current CXL Specifications (Revision 3.2, Version 1.0) +the CXL Fixed Memory Window Structure (CFMWS) describes zero or more Host +Physical Address (HPA) windows that are associated with each CXL Host +Bridge. Each window represents a contiguous HPA range that may be +interleaved across one or more targets, some of which are CXL Host Bridges. +Associated with each window are a set of restrictions that govern its +usage. It is the OSPM’s responsibility to utilize each window for the +specified use. + +Table 9-22 states the Window Size field contains that the total number of +consecutive bytes of HPA this window represents and this value shall be a +multiple of Number of Interleave Ways * 256 MB. + +Platform Firmware (BIOS) might reserve part of physical addresses below +4 GB (e.g., the Low Memory Hole that describes PCIe memory space for MMIO +or a requirement for the greater than 8 way interleave CXL regions starting +at address 0). In that case the Window Size value cannot be anymore +constrained to the NIW * 256 MB above-mentioned rule. + +On those systems, BIOS publishes CFMWS which communicate the active System +Physical Address (SPA) ranges that map to a subset of the Host Physical +Address (HPA) ranges. The SPA range trims out the hole, and capacity in the +endpoint is lost with no SPA to map to CXL HPA in that hole. + +The description of the Window Size field in table 9-22 needs to take that +special case into account. + +Note that the Endpoint Decoders HPA range sizes have to comply with the +alignment constraints and so a part of their memory capacity might not be +accessible if their size exceeds the matching CFMWS range's. + +Benefits of the Change +---------------------- + +Without this change, the OSPM wouldn't match Endpoint Decoders with CFMWS +whose Window Size don't comply with the alignment rules and so all their +capacity would be lost. This change allows the OSPM to match Endpoint +Decoders whose HPA range size exceeds the matching CFMWS and create +regions that at least utilize part of the decoders total memory capacity. + +References +---------- + +Compute Express Link Specification Revision 3.2, Version 1.0 +<https://www.computeexpresslink.org/> + +Detailed Description of the Change +---------------------------------- + +The current description of a CFMWS Window Size (table 9-22) is replaced +with: + +"The total number of consecutive bytes of HPA this window represents. This +value shall be a multiple of NIW*256 MB. On platforms that reserve physical +addresses below 4 GB for special use (e.g., the Low Memory Hole for PCIe +MMIO on x86), an instance of CFMWS whose Base HPA is 0 might have a window +size that doesn't align with the NIW*256 MB constraint; note that the +matching Endpoint Decoders HPA range size must still align to the +above-mentioned rule and so the memory capacity that might exceeds the +CFMWS window size will not be accessible.".
base-commit: a021802c18c4c30dff3db9bd355cacb68521f1aa
Signature · 1 line
2.49.0
Quoted 16 lines · Fabio M. De Francesco
Add documentation on how to resolve conflicts between CXL Fixed Memory Windows, Platform Memory Holes, and Endpoint Decoders.
Signed-off-by Fabio M. De Francesco <[email protected]>---
v1 -> v2: Rewrite "Summary of the Change" section, 3r paragraph.
Documentation/driver-api/cxl/conventions.rst | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+)Documentation/driver-api/cxl/conventions.rst +0
-0
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 51
Quoted 7 lines
Documentation/driver-api/cxl/conventions.rst +4
-0@@ -45,3 +45,88 @@ Detailed Description of the Change ---------------------------------- <Propose spec language that corrects the conflict.> + + +Resolve conflict between CFMWS, Plaftform Memory Holes, and Endpoint Decoders +=============================================================================
typo Plaftform
Quoted 47 lines
Documentation/driver-api/cxl/conventions.rst +47
-0+ +Document +-------- + +CXL Revision 3.2, Version 1.0 + +License +------- + +SPDX-License Identifier: CC-BY-4.0 + +Creator/Contributors +-------------------- + +Fabio M. De Francesco, Intel +Dan J. Williams, Intel +Mahesh Natu, Intel + +Summary of the Change +--------------------- + +According to the current CXL Specifications (Revision 3.2, Version 1.0) +the CXL Fixed Memory Window Structure (CFMWS) describes zero or more Host +Physical Address (HPA) windows that are associated with each CXL Host +Bridge. Each window represents a contiguous HPA range that may be +interleaved across one or more targets, some of which are CXL Host Bridges. +Associated with each window are a set of restrictions that govern its +usage. It is the OSPM’s responsibility to utilize each window for the +specified use. + +Table 9-22 states the Window Size field contains that the total number of +consecutive bytes of HPA this window represents and this value shall be a +multiple of Number of Interleave Ways * 256 MB. + +Platform Firmware (BIOS) might reserve part of physical addresses below +4 GB (e.g., the Low Memory Hole that describes PCIe memory space for MMIO +or a requirement for the greater than 8 way interleave CXL regions starting +at address 0). In that case the Window Size value cannot be anymore +constrained to the NIW * 256 MB above-mentioned rule. + +On those systems, BIOS publishes CFMWS which communicate the active System +Physical Address (SPA) ranges that map to a subset of the Host Physical +Address (HPA) ranges. The SPA range trims out the hole, and capacity in the +endpoint is lost with no SPA to map to CXL HPA in that hole. + +The description of the Window Size field in table 9-22 needs to take that +special case into account.
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 108
Quoted 10 lines
Documentation/driver-api/cxl/conventions.rst +10
-0+ +Note that the Endpoint Decoders HPA range sizes have to comply with the +alignment constraints and so a part of their memory capacity might not be +accessible if their size exceeds the matching CFMWS range's. + +Benefits of the Change +---------------------- + +Without this change, the OSPM wouldn't match Endpoint Decoders with CFMWS +whose Window Size don't comply with the alignment rules and so all their
Size does not comply
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 111
Quoted 3 lines
Documentation/driver-api/cxl/conventions.rst +3
-0+capacity would be lost. This change allows the OSPM to match Endpoint +Decoders whose HPA range size exceeds the matching CFMWS and create +regions that at least utilize part of the decoders total memory capacity.
the decoder's total memory ?
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 122
Quoted 11 lines
Documentation/driver-api/cxl/conventions.rst +11
-0+ +References +---------- + +Compute Express Link Specification Revision 3.2, Version 1.0 +<https://urldefense.com/v3/__https://www.computeexpresslink.org/__;!!ACWV5N9M2RV99hQ!KMvmUQzFTNqBga7-zQPzxmzSqdYgKZWELM7-GwPfbpk5BeOwvr0WMeZ9UxWW235HbZzpgBfnIUryy_eQSHsLGAt9Z7Abgi_UdiU$ > + +Detailed Description of the Change +---------------------------------- + +The current description of a CFMWS Window Size (table 9-22) is replaced
Table 9-22
Quoted 11 lines
Documentation/driver-api/cxl/conventions.rst +10
-0+with: + +"The total number of consecutive bytes of HPA this window represents. This +value shall be a multiple of NIW*256 MB. On platforms that reserve physical +addresses below 4 GB for special use (e.g., the Low Memory Hole for PCIe +MMIO on x86), an instance of CFMWS whose Base HPA is 0 might have a window +size that doesn't align with the NIW*256 MB constraint; note that the +matching Endpoint Decoders HPA range size must still align to the +above-mentioned rule and so the memory capacity that might exceeds the +CFMWS window size will not be accessible.".
Quoted 1 line
base-commit:
a021802c18c4c30dff3db9bd355cacb68521f1aa
Thanks,
Alok
Quoted 20 lines · Central European Summer Time ALOK TIWARI
Quoted 18 lines · Fabio M. De Francesco
Add documentation on how to resolve conflicts between CXL Fixed Memory Windows, Platform Memory Holes, and Endpoint Decoders.
Signed-off-by Fabio M. De Francesco <[email protected]>---
v1 -> v2: Rewrite "Summary of the Change" section, 3r paragraph.
Documentation/driver-api/cxl/conventions.rst | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+)Documentation/driver-api/cxl/conventions.rst +0
-0@@ -45,3 +45,88 @@ Detailed Description of the Change ----------------------------------
Quoted 8 lines
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 51
Quoted 5 lines
Documentation/driver-api/cxl/conventions.rst +4
-0<Propose spec language that corrects the conflict.> + + +Resolve conflict between CFMWS, Plaftform Memory Holes, and Endpoint Decoders +=============================================================================typo Plaftform
Ah yes, "Platform".
Quoted 52 lines
Quoted 52 lines
Documentation/driver-api/cxl/conventions.rst +51
-0+ +Document +-------- + +CXL Revision 3.2, Version 1.0 + +License +------- + +SPDX-License Identifier: CC-BY-4.0 + +Creator/Contributors +-------------------- + +Fabio M. De Francesco, Intel +Dan J. Williams, Intel +Mahesh Natu, Intel + +Summary of the Change +--------------------- + +According to the current CXL Specifications (Revision 3.2, Version 1.0) +the CXL Fixed Memory Window Structure (CFMWS) describes zero or more Host +Physical Address (HPA) windows that are associated with each CXL Host +Bridge. Each window represents a contiguous HPA range that may be +interleaved across one or more targets, some of which are CXL Host Bridges. +Associated with each window are a set of restrictions that govern its +usage. It is the OSPM’s responsibility to utilize each window for the +specified use. + +Table 9-22 states the Window Size field contains that the total number of +consecutive bytes of HPA this window represents and this value shall be a +multiple of Number of Interleave Ways * 256 MB. + +Platform Firmware (BIOS) might reserve part of physical addresses below +4 GB (e.g., the Low Memory Hole that describes PCIe memory space for MMIO +or a requirement for the greater than 8 way interleave CXL regions starting +at address 0). In that case the Window Size value cannot be anymore +constrained to the NIW * 256 MB above-mentioned rule. + +On those systems, BIOS publishes CFMWS which communicate the active System +Physical Address (SPA) ranges that map to a subset of the Host Physical +Address (HPA) ranges. The SPA range trims out the hole, and capacity in the +endpoint is lost with no SPA to map to CXL HPA in that hole. + +The description of the Window Size field in table 9-22 needs to take that +special case into account. + +Note that the Endpoint Decoders HPA range sizes have to comply with the +alignment constraints and so a part of their memory capacity might not be +accessible if their size exceeds the matching CFMWS range's.
Quoted 9 lines
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 108
Quoted 6 lines
Documentation/driver-api/cxl/conventions.rst +6
-0+ +Benefits of the Change +---------------------- + +Without this change, the OSPM wouldn't match Endpoint Decoders with CFMWS +whose Window Size don't comply with the alignment rules and so all theirSize does not comply
Right!. Maybe "fit the alignment constraints"?
Quoted 7 lines
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 111
Quoted 4 lines
Documentation/driver-api/cxl/conventions.rst +3
-0+capacity would be lost. This change allows the OSPM to match Endpoint +Decoders whose HPA range size exceeds the matching CFMWS and create +regions that at least utilize part of the decoders total memory capacity.the decoder's total memory ?
Ah yes, maybe "part of the memory devices capacity"?
Quoted 15 lines
Documentation/driver-api/cxl/conventions.rst Detailed Description of the Change · line 122
Quoted 12 lines
Documentation/driver-api/cxl/conventions.rst +11
-0+ +References +---------- + +Compute Express Link Specification Revision 3.2, Version 1.0 +<https://urldefense.com/v3/__https://www.computeexpresslink.org/__;!!ACWV5N9M2RV99hQ!KMvmUQzFTNqBga7-zQPzxmzSqdYgKZWELM7-GwPfbpk5BeOwvr0WMeZ9UxWW235HbZzpgBfnIUryy_eQSHsLGAt9Z7Abgi_UdiU$ > + +Detailed Description of the Change +---------------------------------- + +The current description of a CFMWS Window Size (table 9-22) is replacedTable 9-22
OK.
Quoted 12 lines
Quoted 12 lines
Documentation/driver-api/cxl/conventions.rst +10
-0+with: + +"The total number of consecutive bytes of HPA this window represents. This +value shall be a multiple of NIW*256 MB. On platforms that reserve physical +addresses below 4 GB for special use (e.g., the Low Memory Hole for PCIe +MMIO on x86), an instance of CFMWS whose Base HPA is 0 might have a window +size that doesn't align with the NIW*256 MB constraint; note that the +matching Endpoint Decoders HPA range size must still align to the +above-mentioned rule and so the memory capacity that might exceeds the +CFMWS window size will not be accessible.".
Quoted 5 lines
Quoted 1 line
base-commit:
a021802c18c4c30dff3db9bd355cacb68521f1aaThanks,
Alok
Thanks,
Fabio