I want to developent a PCIE driver on jetson tx2 platform. I found a sample file for PCIE driver(/drivers/pci/host/pci-tegra.c). after I review this file ,I found it not work.Can you give me a new PCIE driver sample file for jetson tx2?
I found that base address for PCIE is 0x1000000 for jetson tx1 in file pci-tegra.c, not 0x10000000 for jetson tx2.
I don’t know what is your point “after I review this file ,I found it not work”.
Below pcie kernel log on your tx2 is just from pci-tegra.c.
[ 7.245917] tegra-pcie 10003000.pcie-controller: 4x1, 1x1 configuration
[ 7.257187] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[ 7.268981] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
[ 7.281160] tegra-pcie 10003000.pcie-controller: probing port 2, using 1 lanes
[ 7.716784] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[ 8.156844] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[ 8.562261] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[ 8.564275] tegra-pcie 10003000.pcie-controller: link 0 down, ignoring
[ 8.564590] tegra-pcie 10003000.pcie-controller: PCI host bridge to bus 0000:00