03-12-2020 07:04 PM
03-13-2020 01:11 PM
Changes to source solved the compile problem, now it won't boot unless I remove the pcie-xdma-pl.c module from the build, then it boots fine. Bad Boot anyone know why?
[ 4.378911] io scheduler kyber registered
[ 25.390959] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 25.391235] rcu: 2-...0: (1 GPs behind) idle=a1a/1/0x4000000000000000 softirq=378/379 fqs=2610
[ 25.399966] rcu: (detected by 3, t=5254 jiffies, g=-551, q=43)
[ 25.405849] Task dump for CPU 2:
[ 25.409049] swapper/0 R running task 0 1 0 0x0000000a
[ 25.416056] Call trace:
[ 25.418485] __switch_to+0x94/0xe8
[ 25.421855] __devm_ioremap+0xa0/0x160
02-11-2021 10:24 AM
I ran into the same issue and I made two changes and it was able to build
1. Add #include "../pci.h"
2. Replace the
err = of_pci_get_host_bridge_resources(dev->of_node, 0, 0xff, &res,&iobase);
err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,&iobase);
It looks like you were close but maybe didn't remove the ->of_node after dev. I found the pcie-xdma-pl.c file on Xilinx's github that has these changes. Here is the link linux-xlnx/pcie-xdma-pl.c at master · Xilinx/linux-xlnx · GitHub.