Closed Ninlives closed 1 year ago
@Ninlives just to rule out a qemu dependency, can you try with this branch using --git-qemu https://gitlab.com/jic23/qemu/-/commits/cxl-2023-02-21?ref_type=heads
@stellarhopper Hi, thanks for your help! Switched to that qemu and now memdev appears under /sys/bus/cxl/devices
:
decoder0.0 decoder2.1 decoder4.0 decoder5.3 endpoint5 pmem0
decoder0.1 decoder2.2 decoder4.1 decoder6.0 endpoint6 pmem1
decoder1.0 decoder2.3 decoder4.2 decoder6.1 mem0 pmem2
decoder1.1 decoder3.0 decoder4.3 decoder6.2 mem1 pmem3
decoder1.2 decoder3.1 decoder5.0 decoder6.3 mem2 port1
decoder1.3 decoder3.2 decoder5.1 endpoint3 mem3 port2
decoder2.0 decoder3.3 decoder5.2 endpoint4 nvdimm-bridge0 root0
The cxl list
command also recognizes the CXL devices:
[
{
"memdev":"mem1",
"pmem_size":268435456,
"serial":0,
"host":"0000:c0:00.0"
},
{
"memdev":"mem3",
"pmem_size":268435456,
"serial":0,
"host":"0000:c1:00.0"
},
{
"memdev":"mem2",
"pmem_size":268435456,
"serial":0,
"host":"0000:37:00.0"
},
{
"memdev":"mem0",
"pmem_size":268435456,
"serial":0,
"host":"0000:36:00.0"
}
]
but lspci
returns the same result. Does the README need to be updated to match the latest implementation, or I'm still missing something?
@Ninlives Ah yeah the quick sanity check stuff in the readme is definitely outdated and needs to be removed or updated. Your lspci isn't missing anything you expected to be there right?
@stellarhopper Yeah the result looks fine, thanks for your help!
I'm running
run_qemu.sh --cxl
on Ubuntu 22.10 with qemu 7.2.0 and kernel 6.2,lspci
returns the following result:and here is the content under
/sys/bus/cxl/devices
:which does not match the content described in README. I'm not using
--git-qemu
since qemu 7.2.0 has already merged the CXL support, but maybe it's still needed? Could you please point out potential issues in my setup? Thanks!BTW, I found the following log in
dmesg
:Is this an expected behavior?