Hello.
I want to map inbound pcie address to Address Space One. I allocate 4kBytes for RC in BAR2. In my driver, i use pcie application registers IB_BAR0, IB_START0_LO,IB_START_HI, IB_OFFSET for address translation. So i write in IB_BAR0 = 0x2, in IB_START0_LO = 0x88200000(Base address from RC is 0x88200000), IB_START0_HI = 0 and in IB_OFFSET0 = 0x20000000 (the start address in my memory).
So, when i try to read memory from linux with devmem2 0x20000000, i get the bus error like that:
/dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x400dc000
Memory mapped at address 0x400dc000.
Bus error
But when i map pcie address to OCMC0,1 or DDR, all okey.
So, my first question. Can i map inbound pcie address in PCIe gen memory(0x20000000-0x2FFFFFFF)? And second. If yes, how to do that?