How to check an Acorn’s PCIe link by hand on a Compute Blade¶
You have an Acorn in a Compute Blade and want to load the fpgas.online design and bring the card back on the PCIe bus.
This page is for a blade the site operator has taken out of service for it; on a blade in the fleet the load is not run (test-designs #241, #237).
The boot check reads the link by itself (pcie-link). On a blade it does not run pcie-bar0, because the card there is not converted: Acorn tests and their wires on a Compute Blade. The design is built for the CLE-215+, the CLE-215 and the CLE-101. On a Raspberry Pi 5 the addresses and the way back differ. That page is How to check an Acorn’s PCIe link by hand on a Raspberry Pi 5.
This procedure is waiting for its run: test-designs issue #237.
What you need¶
An Acorn in the M.2 slot of a Compute Blade with a CM4 or a CM5.
The JTAG wiring of Acorn wiring on a Compute Blade, and
openFPGALoaderwith thelibgpiodcable.The header’s chip as
gpiochip0, as in How to run JTAG by hand on an Acorn on a Compute Blade.The header’s serial port off in this boot:
The header’s serial port off in this boot:
enable_uart=0, nodtoverlay=uart0…ordtparam=uart0line, and noconsole=serial0word on the kernel command line. Under kernel 6.18 JTAG cannot run otherwise (why); under kernel 6.12 it also answers with the serial port on. In the serial-off boot there is no serial pair to test. Setting it takes a boot of the blade: ask the site operator first, because a reboot ends a visitor’s session on the blade.The card’s PCI address in
BDF:The card’s PCI address in
BDF, set once per shell:0001:01:00.0on a CM5 blade,0000:01:00.0on a CM4 blade. Check it withlspci.$ BDF=0001:01:00.0 # a CM5 blade; 0000:01:00.0 on a CM4 blade
The fpgas.online Acorn design’s
.bitfile inSOC:The design these steps load is the fpgas.online Acorn design, the only design a package installs.
fpgas-online-acorn-bitstreamsputs it in/usr/share/fpgas-online/acorn-pcie/images/, for each variant (cle-215p,cle-215,cle-101) asacorn-<variant>-sqrl_acorn.bitfor a JTAG load, beside the two flash images. Put its name inSOConce per shell; the example is a CLE-101, so put another card’s variant in place ofcle-101, here and in the release file names of the loopback and pin-ID designs:$ SOC=/usr/share/fpgas-online/acorn-pcie/images/acorn-cle-101-sqrl_acorn.bit
Steps¶
On the blade, list the card with
lspci; it shows one line, whose ID says which image it runs.$ lspci -nn -s $BDF
The line after the address says which image the card runs:
The factory Sqrl firmware: Processing accelerators [1200]: Squirrels Research Labs Acorn CLE-215+ [1e24:021f] Processing accelerators [1200]: Squirrels Research Labs Acorn CLE-101 [1e24:0101] The vendor (RHS Research) XDMA sample image: Processing accelerators [1200]: Xilinx Corporation 7-Series FPGA Hard PCIe block (AXI/debug) [10ee:7011] The fpgas.online Acorn design (or any LiteX x1 PCIe design): Memory controller [0580]: Xilinx Corporation Device [10ee:7021]
On the blade, detach the card’s PCIe endpoint before any JTAG load (why); the card no longer shows in
lspci.$ echo 1 | sudo tee /sys/bus/pci/devices/$BDF/remove
On the blade, load the design into SRAM and put the pins back; the load’s last line ends with
done 1.$ openFPGALoader --cable libgpiod --pins 2:3:4:14 $SOC $ pinctrl set 2,4 no pu
On the blade, rescan the bus and list the Xilinx devices; with the LiteX design on a CM5 the list is empty (why).
$ echo 1 | sudo tee /sys/bus/pci/rescan $ lspci -nn -d 10ee:
On the blade, find the root complex of the slot and print its name, which is
1000110000.pcieon a CM5.$ RC=$(readlink -f /sys/bus/pci/devices/${BDF%%:*}:00:00.0 | grep -o '[0-9a-f]*\.pcie') $ echo $RC
On the blade, unbind and bind the root complex to re-probe the slot; the link comes up at 5 GT/s x1.
$ echo $RC | sudo tee /sys/bus/platform/drivers/brcm-pcie/unbind $ echo $RC | sudo tee /sys/bus/platform/drivers/brcm-pcie/bind
On the blade, list the Xilinx devices again; the card is back, as the LitePCIe default for one lane.
$ lspci -nn -d 10ee:
Check¶
Step 7 shows the fpgas.online design’s ID.
Xilinx Corporation Device [10ee:7021]
If it fails¶
The Acorn does not appear in step 1: the M.2 card is not seated; reseat it and read
dmesg | grep -i pci.The blade reboots or SSH drops during the load: the endpoint was still enumerated; detach it (step 2) before every load.
gpiod_line_request_set_values_subset: Assertion 'request' failedin step 3: the serial port was on. Ask the site operator, then boot with it off.bindfails withNo such device: the link was down, so the root port is gone. Load a design that links (oropenFPGALoader --reset), thenbindagain.The card still does not link: check that the build’s I/O report has the lane on B10 and B6.