Problem with Intel X520 adapter can't be detected by HiFive Unmatched

We plugged an Intel X520 adapter with PCIe interface into HiFive Unmatched, but it couldn’t be detected by the board. Below is an output of lspci command from my board:

root@unmatched:~# lspci
00:00.0 PCI bridge: SiFive, Inc. Device 0000
01:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:03.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:04.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:08.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller

We have tried plugging the Intel X520 adapter into a PC, it could be detected by PC normally, we also tried plugging a GPU card with PCIe interface into HiFive Unmatched and the card was detected, so both the adapter and the Unmatched can work properly, but the adapter can’t be detected by the board.

Works for me under Ubuntu. Do you have the ixgbe driver enabled in your kernel?

$ lspci
00:00.0 PCI bridge: SiFive, Inc. Device 0000
01:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:03.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:04.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:08.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
07:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
07:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)

I tried to have the ixgbe driver enabled, but still no adapter was detected.

root@unmatched:/proc# zgrep IXGBE config.gz 
CONFIG_IXGBE=y
CONFIG_IXGBE_HWMON=y
# CONFIG_IXGBEVF is not set
root@unmatched:/proc# lspci
00:00.0 PCI bridge: SiFive, Inc. Device 0000
01:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:03.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:04.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
02:08.0 PCI bridge: ASMedia Technology Inc. Device 2824 (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller

Hi, I have also got this exact same problem with an X520-DA2. I have tried on the 2022.04 FUSDK, on Ubuntu 22.04, and on Gentoo with the latest stable kernel (5.18). But it does not show up in lspci no matter what. Just to make sure it wasn’t a dead card, I swapped it out for a known good one, same results, and the previous card worked fine in a different server.

Supposedly, this patch was tested on an X520-DA2. However this patch is already merged upstream, and it did not make the device appear.

Has anyone else run into this issue? @andersm , what version of Ubuntu did you test this on? Does it still work with 22.04?

21.10. I haven’t updated to 22.04 yet. I can’t remember which exact firmware version I’m using.

Hmm, I just tried 21.10 and it was even worse, it didn’t see anything on the PCIe bus at all, not even the NVMe drive.

Could you perhaps share images of your u-boot partitions? And your u-boot environment?

I just updated to 22.04, and the card is still detected just fine. I also updated the firmware to the commits listed here: riscv-bringup/Readme.md at 91452fd02a137065852ed0491e482eedcd55f5f9 · carlosedp/riscv-bringup · GitHub

Good news to report. I did not manage to get the X520 to be recognized. But I had a spare Mellanox ConnectX-3 from another project and plugged it in just out of curiosity - and it worked perfectly. It’s CPU-bound, but I get a little over 5Gbps with one core maxed out. @qqtxwh Try one of these cards if you can, they are half the price of an X520.

Do you have solved it? I have the same problem with Intel X710. What can I do?

Please post the output from:

lspci -s 02:08.0 -vvv

(run as root for unabbreviated output) which shows the state of the upstream switch’s downstream port wired to the PCIe connector onboard. This might provide some hints.