I have problems in pcie interface that can't detect PCIe to SATA device(MCS99xx pcie to uart and Broadcom Corporation NetXtreme BCM5751 )).
The bus width of PCIe device is x1.
My environment setting as follow:
* HW: 816x/389x EVALUATION MODULE TMDXBEVM8168B REV C
* SW: bsp version is 04.00.00.09 and 05_00_00_11 and 5_02_02_60
kernel is (Linux-2.6.37)
1. set SW5 ---> PCIe RST = OFF / ON (no matter what i set is On or Off in SW5, the device still can't be detected.)
2 lspci (result: can't get anything)
3 cat /proc/bus/pci/devices (result: can't get anything)
4 refer to the http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/137123.aspx, but no success.
5 dmesg
egistered ti81xx_fb device
ti816x_pcie: Invoking PCI BIOS...
ti816x_pcie: Setting up Host Controller...
ti816x_pcie: Register base mapped @0xc8820000
ti816x_pcie: Setting outbound translation for 0x20000000-0x2fffffff
ti816x_pcie: Starting PCI scan...
pci_bus 0000:00: scanning bus
ti816x_pcie: Reading config[0] for device 0000:00:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:01:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:02:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:03:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:04:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:05:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:06:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:07:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:08:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:09:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0a:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0b:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0c:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0d:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0e:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:0f:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:10:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:11:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:12:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:13:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:14:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:15:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:16:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:17:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:18:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:19:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1a:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1b:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1c:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1d:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1e:00..
failed. No link/device.
ti816x_pcie: Reading config[0] for device 0000:1f:00..
failed. No link/device.
pci_bus 0000:00: fixups for bus
PCI: bus0: Fast back to back transfers enabled
pci_bus 0000:00: bus scan returning with max=00
pci_bus 0000:00: resource 0 [mem 0x20000000-0x2fffffff]
pci_bus 0000:00: resource 1 [io 0x40000000-0x402fffff]
6
root@dm816x-evm:~# devmem2 0x51001080 w 0x10110018
/dev/mem opened.
Memory mapped at address 0x40326000.
Value at address 0x51001080 (0x40326080): 0x10110018
Written 0x10110018; readback 0x10110018
root@dm816x-evm:~# devmem2 0x5100107c w 0x135411
/dev/mem opened.
Memory mapped at address 0x402bf000.
Value at address 0x5100107C (0x402bf07c): 0x135422
Written 0x135411; readback 0x135411
root@dm816x-evm:~# devmem2 0x51001710 w 0x00010120
/dev/mem opened.
Memory mapped at address 0x40294000.
Value at address 0x51001710 (0x40294710): 0x30120
Written 0x10120; readback 0x10120
root@dm816x-evm:~# devmem2 0x51001080 w 0x10110008
/dev/mem opened.
Memory mapped at address 0x40229000.
Value at address 0x51001080 (0x40229080): 0x10110018
Written 0x10110008; readback 0x10110008
root@dm816x-evm:~# devmem2 0x51000004 w 0xa00
/dev/mem opened.
Memory mapped at address 0x4012a000.
Value at address 0x51000004 (0x4012a004): 0xA07
Written 0xA00; readback 0xA00
root@dm816x-evm:~# devmem2 0x51000004 w 0xa07
/dev/mem opened.
Memory mapped at address 0x400bf000.
Value at address 0x51000004 (0x400bf004): 0xA00
Written 0xA07; readback 0xA07
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4004d000.
Value at address 0x51001728 (0x4004d728): 0x1200
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40271000.
Value at address 0x51001728 (0x40271728): 0xD500
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x401fd000.
Value at address 0x51001728 (0x401fd728): 0x9101
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4024e000.
Value at address 0x51001728 (0x4024e728): 0x6800
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4023f000.
Value at address 0x51001728 (0x4023f728): 0x800
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4010e000.
Value at address 0x51001728 (0x4010e728): 0xDC00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x400e9000.
Value at address 0x51001728 (0x400e9728): 0x6000
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4031e000.
Value at address 0x51001728 (0x4031e728): 0xF100
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40228000.
Value at address 0x51001728 (0x40228728): 0x9A00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40325000.
Value at address 0x51001728 (0x40325728): 0xE300
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4024e000.
Value at address 0x51001728 (0x4024e728): 0x2200
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40250000.
Value at address 0x51001728 (0x40250728): 0x100
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4036a000.
Value at address 0x51001728 (0x4036a728): 0x1F00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40267000.
Value at address 0x51001728 (0x40267728): 0x8000
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40225000.
Value at address 0x51001728 (0x40225728): 0xEA00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x400e2000.
Value at address 0x51001728 (0x400e2728): 0xFF01
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4025b000.
Value at address 0x51001728 (0x4025b728): 0x6C00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40217000.
Value at address 0x51001728 (0x40217728): 0x3C01
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x40233000.
Value at address 0x51001728 (0x40233728): 0xF901
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x4028c000.
Value at address 0x51001728 (0x4028c728): 0xAE00
root@dm816x-evm:~# devmem2 0x51001728
/dev/mem opened.
Memory mapped at address 0x402b2000.
Value at address 0x51001728 (0x402b2728): 0x3100
root@dm816x-evm:~#