Xilinx / dma_ip_drivers

Xilinx QDMA IP Drivers
https://xilinx.github.io/dma_ip_drivers/
581 stars 421 forks source link

using nvidia jetson with xdma init failed #126

Open xjrelc opened 3 years ago

xjrelc commented 3 years ago

env: Nvidia Xavier(jetpack 4.5 ubuntu 18.04)+Xilinx ZC706 Board(Vivado 2019.2/2016.4) driver version have tried: Xilinx XDMA Reference Driver xdma v2020.1.8/v2017.0.45

lspci -vvv message(2020/2017 is similar): 0005:01:00.0 Memory controller: Xilinx Corporation Device 7024 Subsystem: Xilinx Corporation Device 0007 Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 39 Region 0: Memory at 1f40000000 (32-bit, non-prefetchable) [size=1M] Capabilities: [40] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Capabilities: [60] Express (v2) Endpoint, MSI 00 DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <64ns, L1 unlimited ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 256 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend- LnkCap: Port #0, Speed 5GT/s, Width x4, ASPM L0s, Exit Latency L0s unlimited, L1 unlimited ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Range B, TimeoutDis-, LTR-, OBFF Not Supported DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis- Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS- Compliance De-emphasis: -6dB LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1- EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest- Capabilities: [100 v1] Device Serial Number 00-00-00-01-01-00-0a-35 Kernel modules: xdma

dmseg message(2020): [ 7.074146] xdma: loading out-of-tree module taints kernel. [ 7.077007] xdma:xdma_mod_init: Xilinx XDMA Reference Driver xdma v2020.1.8 [ 7.077016] xdma:xdma_mod_init: desc_blen_max: 0xfffffff/268435455, timeout: h2c 10 c2h 10 sec. [ 7.077585] xdma:xdma_device_open: xdma device 0005:01:00.0, 0xffffffc7c60c6000. [ 7.077616] xdma 0005:01:00.0: enabling device (0000 -> 0002) [ 7.077867] xdma:map_single_bar: BAR0 at 0x1f40000000 mapped at 0xffffff8024300000, length=1048576(/1048576) [ 7.077874] xdma:map_bars: Failed to detect XDMA config BAR [ 7.104441] xdma:probe_one: pdev 0xffffffc7c60c6000, err -22. [ 7.104622] xdma:xpdev_free: xpdev 0xffffffc7c5e72000, destroy_interfaces, xdev 0x (null). [ 7.104629] xdma:xpdev_free: xpdev 0xffffffc7c5e72000, xdev 0x (null) xdma_device_close. [ 7.104650] xdma: probe of 0005:01:00.0 failed with error -22

dmseg message(2017): [ 6.224180] xdma: loading out-of-tree module taints kernel. [ 6.225633] xdma v2017.0.45 [ 6.225904] xdma 0005:01:00.0: enabling device (0000 -> 0002) [ 6.226388] xdma: probe of 0005:01:00.0 failed with error -1