skhynix / hmsdk

Heterogeneous Memory Software Development Kit
BSD 2-Clause "Simplified" License
70 stars 8 forks source link

Does HMSDK Support CXL Memory Devices from different vendor apart from SKHYNIX CXL Memory Expander? #1

Open nchaii opened 1 year ago

nchaii commented 1 year ago

Hello, We are testing other Vendor CXL samples along with HYNIX . We have observed that HMSDK kernel can only detect HYNIX devices. Does it mean HMSDK can only work with SKhynix's CXL devices or are we missing something?

Thank you!!

rakiekim commented 1 year ago

HMSDK doesn't have any vendor specific code, but it just uses the existing NUMA based policy for CXL devices. https://github.com/skhynix/hmsdk/wiki/User-Guide#12-system-requirements

If other vendor's CXL device requires their vendor specific changes in the Linux kernel, then both HMSDK and upstream kernels do not have a way to support it.

In addition, the HMSDK kernel(linux kernel v6.1) requires a bit of grub config changes to detect SK hynix's CXL device so please add the line below in /etc/default/grub.

GRUB_CMDLINE_LINUX="efi=nosoftreserve"  

The "efi=nosoftreserve" in the grub config is not needed since upstream Linux kernel v6.3. The current HMSDK kernel is based on v6.1, but we plan to upgrade it to v6.3 or higher in the near future.

nchaii commented 1 year ago

Got it .Thank you for the reply!!

rakiekim commented 1 year ago

Thanks very much for opening the first issue for our project! Please feel free to ask anything if you need. Thanks!