Hey, I am trying to get xillybus working with a Jetson Nano 900-13448-0020-00 talking to a Artix7 100t fpga. I compiled the jetson kernel with Xillybus enabled, and I have the xillybus demo running on the fpga. They are hooked up via the 4lane pcie on the jetson nano, with the PCIERST pin tied to the PCIE_PERST_B_LS. When I run lspci on my nano, I see the device, with the vendor and device id what I would expect, and in the syslog I can actually see the driver attempting to startup the device and failing. Really at a loss on where to debug this, as it could be anywhere along the chain.
I would think that because I can properly load the pcie device and get its id and whatnot it is not a hardware problem, and probing the heartbeat GPIO_LED pins, I can see it starting to tick as the reset is enabled, so I am not sure what is causing this error. I went into the xillybus_core.c stuff and poked around in the kernal and found the error messages, but really low PCIe stuff is beyond me. Maybe it is a device tree setup issue? Not really sure which interrupt to provide. It could also be the fact that it seems the jetson nano has a PCIe bridge in the way, so maybe related to that? Here is my xillybus relevant syslog, if it's any help.
Jan 28 07:58:18 turro kernel: [ 1.036066] xillybus_pcie 0000:01:00.0: enabling device (0000 -> 0002)
Jan 28 07:58:18 turro kernel: [ 1.036333] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.054102] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.054128] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.071865] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.071883] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.089617] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.089635] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.107367] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.107384] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112780] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112797] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112801] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112817] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112823] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112838] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112843] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112859] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112864] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112879] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112884] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112899] xillybus_pcie 0000:01:00.0: Malformed message (skipping): opcode=0, channel=000, dir=0, bufno=000, data=0000000
Jan 28 07:58:18 turro kernel: [ 1.112903] xillybus_pcie 0000:01:00.0: Sending a NACK on counter 0 (instead of b) on entry 0
Jan 28 07:58:18 turro kernel: [ 1.112908] xillybus_pcie 0000:01:00.0: Lost sync with interrupt messages. Stopping.
Jan 28 07:58:18 turro kernel: [ 1.138534] xillybus_pcie 0000:01:00.0: No response from FPGA. Aborting.
Thanks a bunch for the help