Dear NXP Support Team,
we have a proprietary PCI card connected to a P5020DS board running a Linux image.
We have a Linux driver for the PCI card working on x86 architecture following roughly these steps:
- pci_enable_device
- pci_request_regions
- pci_resource_len/start
- ioremap
We are trying to port this driver to the PPC architecture, but run into the following problems.
A ioremap it is not possible to access the "ioremapped" memory via readl. The kernel just hangs. Our suspicion is that the PAMU on the P5020 prevents us from communicating via IOMMU with the PCI device. How can we enable read access via IOMMU throught the PAMU in linux? Is there something else that we need to do to be able to access our PCI device behind the PAMU?
We use the untouched dtb from arch/powerpc/boot/dts/fsl/p5020*. I have attached the boot output and the Kernel Config.
Kind regards,
Max