Tool/software:
Dear TI:
3.2.2.12. PCIe Backplane — Processor SDK Linux for J721e Documentation
as Backplane config, I have a issue with code :
int ntb_transport_register_client_dev(char *device_name)
{
if (list_empty(&ntb_transport_list)){
printk("ntb_transport_register_client_dev %s is null\n",device_name); // add log
return -ENODEV;
}
......
I config the EP, and on RC side, "lspci -v " is ok;
0001:01:00.0 RAM memory: Texas Instruments Device b00d
Flags: bus master, fast devsel, latency 0, IRQ 657
Memory at 19400000 (32-bit, non-prefetchable) [size=1K]
Memory at 19400400 (32-bit, non-prefetchable) [size=512]
Memory at 18200000 (32-bit, non-prefetchable) [size=2M]
Memory at 18100000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable- Count=1/4 Maskable- 64bit+
Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
Capabilities: [c0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Alternative Routing-ID Interpretation (ARI)
Capabilities: [150] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [160] Power Budgeting <?>
Capabilities: [1b8] Latency Tolerance Reporting
Capabilities: [1c0] Dynamic Power Allocation <?>
Capabilities: [200] Single Root I/O Virtualization (SR-IOV)
Capabilities: [300] Secondary PCI Express
Capabilities: [400] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [440] Process Address Space ID (PASID)
Capabilities: [4c0] Virtual Channel
Capabilities: [5c0] Address Translation Service (ATS)
Capabilities: [640] Page Request Interface (PRI)
Capabilities: [900] L1 PM Substates
Capabilities: [910] Data Link Feature <?>
Capabilities: [920] Lane Margining at the Receiver <?>
Capabilities: [9c0] Physical Layer 16.0 GT/s <?>
Capabilities: [a20] Precision Time Measurement
Kernel driver in use: ntb_hw_epf
shell log as below:
root@tda4vm-sk:/#
root@tda4vm-sk:/# lspci
0000:00:00.0 PCI bridge: Texas Instruments Device b00d
0001:00:00.0 PCI bridge: Texas Instruments Device b00d
0001:01:00.0 RAM memory: Texas Instruments Device b00d
root@tda4vm-sk:/# modprobe ntb_hw_epf
[ 45.930954] ntb_hw_epf 0001:01:00.0: enabling device (0000 -> 0002)
root@tda4vm-sk:/# modprobe ntb_transport
[ 55.830245] Software Queue-Pair Transport over NTB, version 4
root@tda4vm-sk:/# ls -al /sys/bus/ntb_transport/
total 0
drwxr-xr-x 4 root root 0 Apr 30 20:25 .
drwxr-xr-x 43 root root 0 Apr 28 17:42 ..
drwxr-xr-x 2 root root 0 Apr 30 20:25 devices
drwxr-xr-x 2 root root 0 Apr 30 20:25 drivers
-rw-r--r-- 1 root root 4096 Apr 30 20:25 drivers_autoprobe
--w------- 1 root root 4096 Apr 30 20:25 drivers_probe
--w------- 1 root root 4096 Apr 30 20:25 uevent
root@tda4vm-sk:/# ls -al /sys/bus/ntb_transport/devices/
total 0
drwxr-xr-x 2 root root 0 Apr 30 20:25 .
drwxr-xr-x 4 root root 0 Apr 30 20:25 ..
root@tda4vm-sk:/# modprobe ntb_netdev
[ 98.643257] ntb_transport_register_client_dev ntb_netdev is null
modprobe: ERROR: could not insert 'ntb_netdev': No such device