]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00298389 pcie: let rc can access mem of ep
authorRichard Zhu <r65037@freescale.com>
Mon, 10 Feb 2014 04:34:33 +0000 (12:34 +0800)
committerRichard Zhu <r65037@freescale.com>
Thu, 13 Feb 2014 05:09:34 +0000 (13:09 +0800)
commit90c7fd0ac4540a25586db99913d01d17b970b829
tree24eff59d06030622fb201ba2513edf09e8d084bd
parentcc005a1ebc7aa2b963860359bf6ad0d239b5913d
ENGR00298389 pcie: let rc can access mem of ep

- setup one new outbound memory region at rc side, used
to let imx6 pcie rc can access the memory of imx6 pcie ep
in imx6 pcie rc ep validation system.
- set the default address of the ddr memory to be 0x4000_0000

NOTE:
- default address 0x4000_0000 of ep side would be
accessed in this demo.
Test howto:
step1:
EP side:
1.1:
echo 0x40000000 > /sys/devices/soc0/soc.1/1ffc000.pcie/ep_bar0_addr

1.2:
memtool -32 0x40000000 4
E
Reading 0x4 count starting at address 0x40000000

0x40000000:  6FE9E9F6 7583FBB9 39EAEFEA FBDCFD78

step2:
RC side:
memtool -32 0x01000000=58D454DA
memtool -32 0x01000004=7332095B

step3:
EP side:
memtool -32 0x40000000 4
E
Reading 0x4 count starting at address 0x40000000

0x40000000:  58D454DA 7332095B 39EAEFEA FBDCFD78

Signed-off-by: Richard Zhu <r65037@freescale.com>
drivers/pci/host/pci-imx6.c