Advertisement
vliaskov

mem0 CXL type3 device not seen under sysfs

Nov 1st, 2022
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. qemu-7.1
  2.  
  3. Using simplest CXL example (first example) from: https://www.qemu.org/docs/master/system/devices/cxl.html#example-command-lines
  4.  
  5. -object memory-backend-file,id=cxl-mem1,share=on,mem-path=/tmp/cxltest.raw,size=256M \
  6. -object memory-backend-file,id=cxl-lsa1,share=on,mem-path=/tmp/lsa.raw,size=256M \
  7. -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1 \
  8. -device cxl-rp,port=0,bus=cxl.1,id=root_port13,chassis=0,slot=2 \
  9. -device cxl-type3,bus=root_port13,memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem0 \
  10. -M cxl-fmw.0.targets.0=cxl.1,cxl-fmw.0.size=4G
  11.  
  12. VM:
  13. kernel-default 6.0.2-1
  14.  
  15. localhost:~ # cat /boot/config-6.0.2-1.g1071ada-default | grep -i CXL
  16. CONFIG_CXL_BUS=m
  17. CONFIG_CXL_PCI=m
  18. # CONFIG_CXL_MEM_RAW_COMMANDS is not set
  19. CONFIG_CXL_ACPI=m
  20. CONFIG_CXL_PMEM=m
  21. CONFIG_CXL_MEM=m
  22. CONFIG_CXL_PORT=m
  23. CONFIG_CXL_SUSPEND=y
  24. CONFIG_CXL_REGION=y
  25.  
  26.  
  27. localhost:~ # ls -al /sys/bus/cxl/devices/
  28. total 0
  29. drwxr-xr-x 2 root root 0 Nov 1 14:46 .
  30. drwxr-xr-x 4 root root 0 Nov 1 14:44 ..
  31. lrwxrwxrwx 1 root root 0 Nov 1 14:46 decoder0.0 -> ../../../devices/platform/ACPI0017:00/root0/decoder0.0
  32. lrwxrwxrwx 1 root root 0 Nov 1 14:46 nvdimm-bridge0 -> ../../../devices/platform/ACPI0017:00/root0/nvdimm-bridge0
  33. lrwxrwxrwx 1 root root 0 Nov 1 14:46 port1 -> ../../../devices/platform/ACPI0017:00/root0/port1
  34. lrwxrwxrwx 1 root root 0 Nov 1 14:46 root0 -> ../../../devices/platform/ACPI0017:00/root0
  35.  
  36.  
  37. localhost:~ # cxl list -vvvv
  38. [
  39. {
  40. "bus":"root0",
  41. "provider":"ACPI.CXL",
  42. "nr_dports":1,
  43. "dports":[
  44. {
  45. "dport":"ACPI0016:00",
  46. "id":12
  47. }
  48. ],
  49. "ports:root0":[
  50. {
  51. "port":"port1",
  52. "host":"ACPI0016:00",
  53. "depth":1,
  54. "state":"disabled"
  55. }
  56. ],
  57. "decoders:root0":[
  58. {
  59. "decoder":"decoder0.0",
  60. "resource":28185722880,
  61. "size":4294967296,
  62. "interleave_ways":1,
  63. "max_available_extent":4294967296,
  64. "pmem_capable":true,
  65. "volatile_capable":true,
  66. "accelmem_capable":true,
  67. "nr_targets":1,
  68. "targets":[
  69. {
  70. "target":"ACPI0016:00",
  71. "position":0,
  72. "id":12
  73. }
  74. ]
  75. }
  76. ]
  77. }
  78. ]
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement