I have written a PCIe driver for LS1046ardb and attached an NVMe based SS as PCIe device. When I read the memory region of System Memory Space where the PCIe device's memory is mapped, I can only read the NVMe controller register at offset 0x4. For the rest of the readonly fields, i get 0x0.
What is the possible reason that I can read one reg of NVMe rightly (0x3c013fff at offest 0x4) and find other wrong?
The update is that some other PCIe devices like USB Host controller and BCM575 are read correctly with the same PCIe driver (RC mode) but there are issues in the case of NVMe based SSD.
Further, the other PCIe devices that are being read correctly are one lane devices while NVMe based SSD is multi-lane (2 lanes).
Can anyone guide me what must be the reason of this strange behavior?