Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cxl.v5 #100

Closed
wants to merge 17 commits into from
Closed

Cxl.v5 #100

wants to merge 17 commits into from

Conversation

mxu9
Copy link
Contributor

@mxu9 mxu9 commented Jul 4, 2024

No description provided.

Move some PCIE spec definitions from pcie_ide.c to pcie.h because these
definitions will be used in cxl as well.

Signed-off-by: Min Xu <min.m.xu@intel.com>
@mxu9 mxu9 marked this pull request as draft July 4, 2024 00:35
mxu9 added 13 commits July 4, 2024 02:50
Add CXL.memcache related definition in intel_keyp.h. These definitions
are Intel specific.

Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
The major changes of this patch are:
1. Move the test case/config/group funcs from pcie_ide_test_lib.h.
   Instead pcie_ide_test_lib_register_funcs is added. This function is
   called to register the pcie_ide_test_lib test case/config/group
   funcs. The benifinit is that if some more funcs are to be added, it
   only need to update the codes in pcie_ide_test_lib.

2. pcie_ide_test_lib_get_test_case_names is to get the supported test case
    names of pcie_ide_test_lib.

3. pcie_ide_test_lib_get_config_bitmask is to get the supported config
   bitmask.

Signed-off-by: Min Xu <min.m.xu@intel.com>
The major changes are:
1. Add device_pcie_read/write_16 and mmio_read/write 64. They are
   required in CXL.memcache.
2. Add test_catetory helper functions.
3. OFFSET_OF is to get the offset of a field in a struct.

Signed-off-by: Min Xu <min.m.xu@intel.com>
test_factory has below major funcs:
1. test_factory_init/test_factory_close
   In test_factory_init() it calls xxx_test_lib_register_funcs to
   register test related functions. In the future if TDISP is to be
   enabled, TDISP test lib shall implement its register func and be
   called in test_factory_init().

2. test_factory_get_test_group_funcs
   test_factory_get_test_config_funcs
   test_factory_get_test_case_funcs
   These 3 functions are to get the test group/config/case funcs.

3. test_factory_get_config_bitmask
   This function is to get the config_bitmask of PCIE-IDE/CXL-IDE.

Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
The major changes are:
1. Update cmdline.c to support test_catetory (pcie or cxl.mem)
2. Update ide_test_ini.c to support test_category field in TestSuite
   section.
3. Update ide_test.c to support test_category.
4. Call test_factory_init/test_factory_close in teeio_validator.c.

Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
(MAX(MAX_QUERY_CASE_ID, MAX(MAX_KEYPROG_CASE_ID, MAX(MAX_KSETGO_CASE_ID, MAX(MAX_KSETSTOP_CASE_ID, MAX(MAX_SPDMSESSION_CASE_ID, MAX_FULL_CASE_ID))))))

#define MAX_CXL_QUERY_CASE_ID 2
Copy link
Contributor

@jyao1 jyao1 Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please separate to a standalone file. Dont change this file.

mxu9 added 3 commits July 8, 2024 20:02
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
@mxu9 mxu9 closed this Jul 10, 2024
@mxu9
Copy link
Contributor Author

mxu9 commented Jul 10, 2024

Updated with cxl.v6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants