SimpleSSD / SimpleSSD-FullSystem

Open-Source Licensed Educational SSD Simulator for High-Performance Storage and Full-System Evaluations
BSD 3-Clause "New" or "Revised" License
88 stars 46 forks source link

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

Open GrootLiu opened 4 months ago

GrootLiu commented 4 months ago

Running Environment (please complete the following information):

Execution information

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.