Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- qemu-7.1
- Using simplest CXL example (first example) from: https://www.qemu.org/docs/master/system/devices/cxl.html#example-command-lines
- -object memory-backend-file,id=cxl-mem1,share=on,mem-path=/tmp/cxltest.raw,size=256M \
- -object memory-backend-file,id=cxl-lsa1,share=on,mem-path=/tmp/lsa.raw,size=256M \
- -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1 \
- -device cxl-rp,port=0,bus=cxl.1,id=root_port13,chassis=0,slot=2 \
- -device cxl-type3,bus=root_port13,memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem0 \
- -M cxl-fmw.0.targets.0=cxl.1,cxl-fmw.0.size=4G
- VM:
- kernel-default 6.0.2-1
- localhost:~ # cat /boot/config-6.0.2-1.g1071ada-default | grep -i CXL
- CONFIG_CXL_BUS=m
- CONFIG_CXL_PCI=m
- # CONFIG_CXL_MEM_RAW_COMMANDS is not set
- CONFIG_CXL_ACPI=m
- CONFIG_CXL_PMEM=m
- CONFIG_CXL_MEM=m
- CONFIG_CXL_PORT=m
- CONFIG_CXL_SUSPEND=y
- CONFIG_CXL_REGION=y
- localhost:~ # ls -al /sys/bus/cxl/devices/
- total 0
- drwxr-xr-x 2 root root 0 Nov 1 14:46 .
- drwxr-xr-x 4 root root 0 Nov 1 14:44 ..
- lrwxrwxrwx 1 root root 0 Nov 1 14:46 decoder0.0 -> ../../../devices/platform/ACPI0017:00/root0/decoder0.0
- lrwxrwxrwx 1 root root 0 Nov 1 14:46 nvdimm-bridge0 -> ../../../devices/platform/ACPI0017:00/root0/nvdimm-bridge0
- lrwxrwxrwx 1 root root 0 Nov 1 14:46 port1 -> ../../../devices/platform/ACPI0017:00/root0/port1
- lrwxrwxrwx 1 root root 0 Nov 1 14:46 root0 -> ../../../devices/platform/ACPI0017:00/root0
- localhost:~ # cxl list -vvvv
- [
- {
- "bus":"root0",
- "provider":"ACPI.CXL",
- "nr_dports":1,
- "dports":[
- {
- "dport":"ACPI0016:00",
- "id":12
- }
- ],
- "ports:root0":[
- {
- "port":"port1",
- "host":"ACPI0016:00",
- "depth":1,
- "state":"disabled"
- }
- ],
- "decoders:root0":[
- {
- "decoder":"decoder0.0",
- "resource":28185722880,
- "size":4294967296,
- "interleave_ways":1,
- "max_available_extent":4294967296,
- "pmem_capable":true,
- "volatile_capable":true,
- "accelmem_capable":true,
- "nr_targets":1,
- "targets":[
- {
- "target":"ACPI0016:00",
- "position":0,
- "id":12
- }
- ]
- }
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement