OpenMPDK / SMDK

SMDK, Scalable Memory Development Kit, is developed for Samsung CXL(Compute Express Link) Memory Expander to enable full-stack Software-Defined Memory system
271 stars 60 forks source link

cxl_pci.ko driver failed to load #7

Closed jacabay closed 2 years ago

jacabay commented 2 years ago

I built and installed the SMDK kernel 5.18-rc3-smdk under Ubuntu 22.04. I could see my CXL device in the lspci output and recognized as ExMem zone in the buddyinfo output as shown below.

image

image

But when I checked the CXL drivers, only cxl_core was loaded.

image

When I tried to load driver, cxl_pci.ko, I got below error.

image

Could you help decode the error messages? If cxl_pci.ko is not loaded, how does it affect the CXL operation and testing?

wj28lees commented 2 years ago

First of all, since the page is registered in the ExMem zone, it seems possible to test the CXL memory.

However, It is strange that pages are registered in the ExMem zone when the cxl_pci module is not loaded, because the CXL memory registration is performed in cxl_pci.ko.

Can you provide dmesg full log for the above situation? Then I think a more detailed analysis is possible.

jacabay commented 2 years ago

Can you provide your email address for sending the dmesg log just to you?

wj28lees commented 2 years ago

Can you provide your email address for sending the dmesg log just to you?

It's wj28.lee@samsung.com

jacabay commented 2 years ago

thank you! I've sent you the dmesg log via email.

KyungsanKim commented 2 years ago

Thank you for sharing the experiment result. Your feedback is valuable for us to make SMDK robustness. In a few days, we will update SMDK kernel repo, https://github.com/OpenMPDK/SMDK-linux-cxl, that clones tovalds for the error handling logic. Furthermore, SMDK repo will update the logic on next offcial release. Please feel free to contact us for any upcoming inquery.