Page 1 of 1

Error while detecting PCIe

Posted: Thu Jun 01, 2017 12:42 am
by gunjae

I programmed FPGA and launched the firmware on the hardware.
I was able to see "Turn on the host PC" message and turned it on.

Followings are messages from the firmware.

PCIe Link: 1
PCIe Bus Master: 1
PCIe Bus Master: 0
PCIe Bus Master: 1

NVMe ready!!
num_of_queue 10001
Set Feature FID:7
Done Admin Command OPC: 9
CI:0, CB259018, 0, CB25A000

error in ../src/nvme/nvme_admin_cmd.c: Line 309
PCIe IRQ Disable:0
PCIe MSI Enable: 1, 0x0
PCIe MSI Enable: 0, 0x0
PCIe IRQ Disable:1
PCIe Bus Master:0


On the host machine, the OpenSSD is detected when I checked with "lspci"
but nvme device is not shown under /dev folder

Can anyone guess what the issue is?


Re: Error while detecting PCIe

Posted: Thu Jun 01, 2017 12:42 am
by gunjae
It looks like it is because the mainboard used for the host machine is not compatible with OpenSSD.
When I used the somewhat old generation board (e.g. Intel P67 or H67 chip is equipped), not error like "line 309" doesn't appear. Also I found the tested boards appearing on the tutorial slides are also kind of "old generation"
(I tested with Ubuntu 14.04 and Ubuntu 16.04. I need linux OSes for research)

Can anyone list the good host machine boards working fine with OpenSSD?

Re: Error while detecting PCIe

Posted: Thu Jun 01, 2017 4:17 am
by SangjinLee
Dear Gunjae,

You could find the list on Cosmos+ 2017 tutorial (page 56).

And could I request a test and a result with comment out the line, /src/nvme/nvme_admin_cmd.c: Line 309?

As issued on github repo, Cosmos+ NVMe controller has 4-byte addressing (for host) problem.
The problem is coverable by update firmware for temporary measure.
FIxed firmware is under verification.
We'll upload the firmware by early next week.

Sangjin Lee

Re: Error while detecting PCIe

Posted: Mon Jun 12, 2017 11:29 pm
by gunjae
Dear Sangjin,

I appreciate your team's effort for the new firmware.
Will the new firmware code be very different from the current one? I am going to analyze and develop our code based on the current code, but if the changes are huge I'm afraid porting to the new version may be tough.

Re: Error while detecting PCIe

Posted: Mon Dec 04, 2017 5:45 am
by changye
Hi Sangjin,

I have download the latest firmware(2.7.1.d), but the 4-byte addressing problem still exists.