Tool/software:
Hi ,
We are using AM5748 as RC and FPGA as EP , We need to send data from FPGA to AM5748 for that we need to setup inbound configuration settings in AM5748 , but we don't have inbound settings in drivers/pci/dwc/pcie-designware-host.c kernel RC driver, so in pcie-designware-host.c , Now I have added the inbound part dw_pcie_prog_inbound_atu() in dw_pcie_setup_rc() settings where I'm setting the ATU lower target address to 0x20013000 same as previous outbound configuration (taken from the device tree) and I'm configuring RC's and EP's BAR_0(via ECAM) register to 0x20400000, and then on the FPGA side we are pushing the data. But on the ARM side we are not receiving any data at 0x20400000 and also we are observing that whenever we are initiating the transaction on FPGA side ,PCIECTRL_RC_DBICS_DEV_CAS register bit[18] is setting which is Fatal Error Detected , so when I browsed related to this issue I'm seeing that this will occur when ATU is not configured properly.
So my first question is are we configuring the ATU properly ?
If no then give us reference for inbound configuration, please reply to this post ASAP.
Thanks ,
Phaneesh A Kashyap