Part Number: TDA4VM
Hi, experts:
linux sdk version: Version: 08.00.01.10
we have a custom board based on TDA4, which need to be configured as PCIe endpoint device.
I've followed the link
when i config like this :
cd /sys/kernel/config/pci_ep/ mkdir functions/pci_epf_test/func1 echo 0x104c > functions/pci_epf_test/func1/vendorid echo 0xb00d > functions/pci_epf_test/func1/deviceid echo 32 > functions/pci_epf_test/func1/msi_interrupts echo 2 > functions/pci_epf_test/func1/msix_interrupts ln -s functions/pci_epf_test/func1 controllers/d000000.pcie-ep/ echo 1 > controllers/d000000.pcie-ep/start
s32g can detect the endpoint device :
root@s32g254aevb:~# [ 37.754737] 003: pcieport 0000:02:01.0: pciehp: Slot(2): Card present [ 37.754754] 003: pcieport 0000:02:01.0: pciehp: Slot(2): Link Up [ 37.890618] 003: pci 0000:04:00.0: [104d:b50d] type 00 class 0xff0000 [ 37.891371] 003: pci 0000:04:00.0: reg 0x10: [mem 0x5800000000-0x58000000ff] [ 37.891497] 003: pci 0000:04:00.0: reg 0x14: [mem 0x5800000000-0x58000001ff] [ 37.891620] 003: pci 0000:04:00.0: reg 0x18: [mem 0x5800000000-0x58000003ff] [ 37.891744] 003: pci 0000:04:00.0: reg 0x1c: [mem 0x5800000000-0x5800003fff] [ 37.891868] 003: pci 0000:04:00.0: reg 0x20: [mem 0x5800000000-0x580001ffff] [ 37.891992] 003: pci 0000:04:00.0: reg 0x24: [mem 0x5800000000-0x58000fffff] [ 37.895773] 003: pci 0000:04:00.0: supports D1 [ 37.895780] 003: pci 0000:04:00.0: PME# supported from D0 D1 D3hot [ 37.895837] 003: pci 0000:04:00.0: PME# disabled [ 37.899382] 003: pci 0000:04:00.0: BAR 5: assigned [mem 0x5801600000-0x58016fffff] [ 37.899453] 003: pci 0000:04:00.0: BAR 4: assigned [mem 0x5801700000-0x580171ffff] [ 37.899507] 003: pci 0000:04:00.0: BAR 3: assigned [mem 0x5801720000-0x5801723fff] [ 37.899561] 003: pci 0000:04:00.0: BAR 2: assigned [mem 0x5801724000-0x58017243ff] [ 37.899615] 003: pci 0000:04:00.0: BAR 1: assigned [mem 0x5801724400-0x58017245ff] [ 37.899669] 003: pci 0000:04:00.0: BAR 0: assigned [mem 0x5801724600-0x58017246ff] [ 37.899727] 003: pcieport 0000:02:01.0: PCI bridge to [bus 04] [ 37.899756] 003: pcieport 0000:02:01.0: bridge window [io 0x2000-0x2fff] [ 37.899839] 003: pcieport 0000:02:01.0: bridge window [mem 0x5801600000-0x58017fffff] [ 37.899942] 003: pcieport 0000:02:01.0: bridge window [mem 0x5800600000-0x58007fffff 64bit pref]
My question is :
1.since the pci_test can only use in the host device , how to test peic ep in the ep side ?
2.how to config ep's outbound so that i can write/read from ep to rc?