Skip to content

How to run two nvme devices in simplessd-fs? #30

@GrootLiu

Description

@GrootLiu

Running Environment (please complete the following information):

  • Host OS and Kernel version: [Ubuntu 22.04 with Linux 6.5.0]
  • Compiler version used to build SimpleSSD-FullSystem: [GCC 8.4.0]
  • SimpleSSD-FullSystem version: [96377cf]
  • SimpleSSD version: [v2.0.13]
  • Guest Kernel version: [Linux 4.9 compiled with aarch64-linux-gnu-gcc]
  • Compiler version used to build Guest Kernel binary: [Linaro GCC 14.0.0]

Execution information

  • Execution command line of gem5:
    ./build/ARM/gem5.opt --debug-flag=M5Print --debug-file=debug.txt ./configs/example/fs.py --kernel=my_new_kernel_image --dtb-file=armv8_gem5_v1_4cpu.dtb --machine-type=VExpress_GEM5_V1 --num-cpu=4 --cpu-clock=2GHz --caches --l2cache --cpu-type=AtomicSimpleCPU --mem-size=4GB --mem-type=DDR4_2400_8x8 --ssd-interface=nvme2 --ssd-config=./src/dev/storage/simplessd/config/sample.cfg

Explain what you want to ask here:

"I want to attach two NVMe devices to gem5-fs, so I edited the FSConfig.py file.:

# configs/common/FSConfig.py: 288
    if simplessd['interface'] == 'nvme':
        self.pci_nvme = NVMeInterface(SSDConfig=simplessd['config'])
        pci_devices.append(self.pci_nvme)
    elif simplessd['interface'] == 'nvme2':
        self.pci_nvme_1 = NVMeInterface(SSDConfig=simplessd['config'])
        self.pci_nvme_2 = NVMeInterface(SSDConfig=simplessd['config'])
        pci_devices.append(self.pci_nvme_1)
        pci_devices.append(self.pci_nvme_2)

But, when I boot the system, there is only one NVMe device in the system. The other can't be probed correctly.

pci info:

root@genericarmv8:~# lspci
00:03.0 Class 0108: 144d:2001
00:02.0 Class 0108: 144d:2001
00:01.0 Class 0101: 8086:7111

device info

root@genericarmv8:~# ls /dev/nvme*
/dev/nvme1    /dev/nvme1n1

And, there is a error info in dmesg:

[   60.829371] nvme nvme0: I/O 232 QID 0 timeout, disable controller
[   60.829414] nvme nvme0: Identify Controller failed (-4)
[   60.829421] nvme nvme0: Removing after probe failure status: -5

So, I hope someone can help me to attach another nvme device to system correctly.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions