P5020DS IOMMU access with PCI driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

P5020DS IOMMU access with PCI driver

1,685 Views
gulaschsuppm
Contributor I

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

Labels (1)
Tags (3)
0 Kudos
Reply
1 Reply

1,678 Views
ufedor
NXP Employee
NXP Employee

Please consider using NXP Professional Engineering Services:

https://www.nxp.com/support/support/nxp-engineering-services:SW-SUPPORT

0 Kudos
Reply