mirror of
https://github.com/torvalds/linux.git
synced 2026-06-11 16:13:03 +02:00
1. support buffer_size set by user 2. support assigned chn 3. support udma read 4. support buffer address set by userspace Need to update test_pcie and test-pcie-ep-new. New test command: 1. run ./test-pcie-ep-new 500 1024 chn_num buffer_address both on RC and EP first Release buffer use dma channel number = chn_num. if buffer_address = 0 pcie_dma_buffer_address get from DT reserved memory else pcie_dma_buffer_address = buffer_address 2. run ./test-pcie 1 1000 1024 1 chn_num on RC The last "1" means enable PCIe udma read, "0" means write. RC read from EP use dma channel number = chn_num. 3. run ./test-pcie 2 1000 1024 1 chn_num on EP EP read from RC with offset = buffer count * buffer size. 4. check version by: cat /sys/kernel/debug/pcie/pcie_trx | grep version 5. 1024 means set buffer size to 1MB. Change-Id: I7613037924659c75014d19b6c4845e096a56d295 Signed-off-by: Simon Xue <xxm@rock-chips.com> |
||
|---|---|---|
| .. | ||
| controller | ||
| endpoint | ||
| hotplug | ||
| pcie | ||
| switch | ||
| access.c | ||
| ats.c | ||
| bus.c | ||
| ecam.c | ||
| host-bridge.c | ||
| iov.c | ||
| irq.c | ||
| Kconfig | ||
| Makefile | ||
| mmap.c | ||
| msi.c | ||
| of.c | ||
| p2pdma.c | ||
| pci-acpi.c | ||
| pci-bridge-emul.c | ||
| pci-bridge-emul.h | ||
| pci-driver.c | ||
| pci-label.c | ||
| pci-mid.c | ||
| pci-pf-stub.c | ||
| pci-stub.c | ||
| pci-sysfs.c | ||
| pci.c | ||
| pci.h | ||
| probe.c | ||
| proc.c | ||
| quirks.c | ||
| remove.c | ||
| rom.c | ||
| search.c | ||
| setup-bus.c | ||
| setup-irq.c | ||
| setup-res.c | ||
| slot.c | ||
| syscall.c | ||
| vc.c | ||
| vpd.c | ||
| xen-pcifront.c | ||